Python Gunicorn和Supervisor错误文件没有可执行权限
我正在尝试运行此命令:Python Gunicorn和Supervisor错误文件没有可执行权限,python,django,gunicorn,supervisord,Python,Django,Gunicorn,Supervisord,我正在尝试运行此命令: sudo supervisorctl start gunicorn_process 在Ubuntu上,我遇到了以下错误: 如您所见,文件“确实”具有可执行权限 gunicorn\u过程文件: [program:gunicorn_process] command=/srv/domain wsgi:application directory=/srv/domain user=root 命令指令需要一个可执行的命令,由主管运行 你说你想跑 gunicorn wsgi:ap
sudo supervisorctl start gunicorn_process
在Ubuntu上,我遇到了以下错误:
如您所见,文件“确实”具有可执行权限
gunicorn\u过程文件:
[program:gunicorn_process]
command=/srv/domain wsgi:application
directory=/srv/domain
user=root
命令
指令需要一个可执行的命令,由主管运行
你说你想跑
gunicorn wsgi:application
然后设置您的配置,如下所示:
[program:gunicorn_process]
command=gunicorn wsgi:application
directory=/srv/domain
user=root
需要考虑两件事:
命令
指令,以包含gunicorn
可执行文件的完整路径。执行哪个gunicorn
以找出它存在的位置。例如:command=/usr/bin/gunicorn wsgi:application
使文件可执行:
sudochmodu+xgunicorn\u进程
您的命令看起来很时髦。/srv/domain
是目录还是可执行命令?@msvalkon是directory@Spike那么应用程序是什么呢?你能从/srv/domain
运行wsgi:application
吗?@msvalkon运行这个我能“gunicorn wsgi:application”