bookstore
bookstore copied to clipboard
nohup gunicorn -w 3 -b 0.0.0.0:8000 bookstore.wsgi:application &
部分css和js找不到 浏览器默认加的端口加路径 我换成nohup gunicorn -w 3 -b 0.0.0.0:80 bookstore.wsgi:application &
把nginx配置文件中的server_name改成127.0.0.1;location / 里的proxy_pass改成http://127.0.0.1:8000;就可以了。然后gunicorn启动命令 nohup gunicorn -w 3 -b 127.0.0.1:8000 bookstore.wsgi:application &,浏览器输入127.0.0.1就可以访问了。