1.常见排查方法
1.nginx错误
systemctl restart nginx
tail -f /var/log/nginx/error.log
tail -f /var/log/nginx/access.log
cd /home/worker/opwf_project/uwsgi_conf
tail -f *
2.配置文件
2.端口占用冲突问题
(syl) root@dev:uwsgi_conf
kill -9 68279
uwsgi --ini uwsgi.ini
(syl) root@dev:uwsgi_conf
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/f1be0daeb4661222284cbd1e20026a8f.png)
3.nginx权限问题,无法打开vue部署文件
- 修改nginx启动用户为root
- vim /etc/nginx/nginx.conf
2020/12/11 09:08:59 [error] 4697#4697: *33 open() "/root/桌面/opwf_project/opwf/static/rest_framework/js/default.js" failed (13: Permission denied), client: 192.168.56.1, server: 192.168.56.100, request: "GET /static/rest_framework/js/default.js HTTP/1.1", host: "192.168.56.100:8888", referrer: "http://192.168.56.100:8888/user/user/"
4.uwsgi启动项目后celery_task导包失败
import sys
sys.path.insert(0, '/home/worker/opwf_project')
from celery_task import tasks
5.配置文件写错了
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/39eb825454f14a5252ddba0638fcb8fe.png)