uwsgi_params不在nginx中

首先我通过apt-get安装nginxuwsgi

而且,我将这行添加到nginx conf文件(/etc/nginx/conf.d/default.conf)中,如下面的行;

server { listen 80; server_name <replace with your hostname>; #Replace paths for real deployments... access_log /tmp/access.log; error_log /tmp/error.log; location / { include uwsgi_params; uwsgi_pass 127.0.0.1:8889; } } 

我有一个错误;

 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文件中(你也可以select你附近的镜像):

 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更新

然后;

apt-get install nginx-full