开启服务过程

每次开机重启服务时,需清除以往进程,然后重启

1.杀死进程

[root@lxh ~]# killall -9 uwsgi
[root@lxh ~]# killall -9 nginx

2.开启uwsgi和nginx

[root@lxh ~]# cd /var/www/myapp            #这是你项目的位置
[root@lxh myapp]# uwsgi -x 'myapp.xml' 
[uWSGI] parsing config file myapp.xml
[root@lxh myapp]# /usr/local/nginx/sbin/nginx

 

posted @ 2018-11-22 09:07  gdxhh  阅读(157)  评论(0)    收藏  举报