关于项目部署,在完成uwsgi配置uwsgi.ini文件之前可以通过IP:端口访问网站,在编辑完uwsgi.ini文件后,网站无法访问,搞不懂为什么……
执行下列语句后没有进程显示
uwsgi -i uwsgi.ini
执行uwsgi的测试及进程:uwsgi --http :8000 --module BxOnline.uwsgi
uwsgi.ini中的代码:
# mysite_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /root/BxOnline
# Django's wsgi file
module = BxOnline.wsgi
# the virtualenv (full path)
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# the socket (use the full path to be safe
socket = 127.0.0.1:8000
# ... with appropriate permissions - may be needed
# chmod-socket = 664
# clear environment on exit
vacuum = true
virtualenv = /root/.virtualenvs/bxonline
logto = /tmp/mylog.log