首先,我通过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文件中(您也可以选择附近的镜像):
原文链接:https://www.f2er.com/nginx/435243.htmldeb 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