你永远不知道下一个报错会出现在哪

uwsgi

uwsgi安装后运行

报错:no internal routing support, rebuild with pcre support
处理:
ubuntu环境下
pip uninstall uwsgi
sudo apt-get install libpcre3 libpcre3-dev
pip install uwsgi --no-cache-dircentos环境下
pip uninstall uwsgi
yum install -y pcre pcre-devel pcre-static
pip install uwsgi --no-cache-dir

转载自

nginx

nginx重启报错

nginx: [error] open() “/run/nginx.pid“ failed (2: No such file or directory)
处理:
1.执行 sudo nginx -c /etc/nginx/nginx.conf (先查看nginx安装位置,在nginx》nginx.conf位置下执行)
2.执行 nginx -s reload 重启nginx

你永远不知道下一个报错会出现在哪

uwsgi

uwsgi安装后运行

报错:no internal routing support, rebuild with pcre support
处理:
ubuntu环境下
pip uninstall uwsgi
sudo apt-get install libpcre3 libpcre3-dev
pip install uwsgi --no-cache-dircentos环境下
pip uninstall uwsgi
yum install -y pcre pcre-devel pcre-static
pip install uwsgi --no-cache-dir

转载自

nginx

nginx重启报错

nginx: [error] open() “/run/nginx.pid“ failed (2: No such file or directory)
处理:
1.执行 sudo nginx -c /etc/nginx/nginx.conf (先查看nginx安装位置,在nginx》nginx.conf位置下执行)
2.执行 nginx -s reload 重启nginx