~~
nginx
安裝 sudo apt-get install nginx
所有的配置文件都在/etc/nignx裏面
進入/etc/nignx/conf.f目錄後,配置default.conf文件
~~
sudo /etc/init.d/nginx restart // 重啓
sudo /etc/init.d/nginx start 開啓
sudo /etc/init.d/nginx stop 關閉
#Uwsgi
配置 demoapp_uwsgi.ini文件
sudo pkill -f uwsgi -9
supervisor
sudo supervisord -c /etc/supervisor/supervisord.conf
supervisord -c supervisor.conf 通過配置文件啓動supervisor
supervisorctl -c supervisor.conf status 察看supervisor的狀態
supervisorctl -c supervisor.conf reload 重新載入 配置文件
sudo supervisorctl stop all
sudo supervisorctl update
sudo supervisorctl reload
報錯解決
Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
sudo unlink /var/run/supervisor.sock
phantomJS 環境變量配置
sudo nano /etc/profile
添加export PATH=${PATH}:/usr/local/src/phantomjs/bin/
sudo source /etc/profile