uwsgi_params不在nginx中

前端之家收集整理的这篇文章主要介绍了uwsgi_params不在nginx中前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

首先,我通过apt-get设置Nginx和uwsgi.

并且,我将行添加Nginx conf文件(/etc/Nginx/conf.d/default.conf),如下所示;

server {

 listen 80;
 server_name 

我有一个错误;

Starting Nginx: [emerg]: open() "/etc/Nginx/uwsgi_params" Failed (2: No such file or directory) in /etc/Nginx/conf.d/default.conf:11
configuration file /etc/Nginx/Nginx.conf test Failed

如果我从uwsgi的源代码添加uwsgi_params文件;我有一个简单的错误.

谢谢

最佳答案
将这两行添加到/etc/apt/sources.list文件中(您也可以选择附近的镜像):

deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

(可选)如果要在Debian 6.0“Squeeze”上安装PHP 5.4,也可以添加以下两行:

deb http://packages.dotdeb.org squeeze-PHP54 all
deb-src http://packages.dotdeb.org squeeze-PHP54 all

然后获取适当的GnuPG密钥

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -

运行apt-get update

然后;

apt-get install Nginx-full

猜你在找的Nginx相关文章