背景
我正试图在一个高寒linux服务器上运行一个nginx /php 7站点。
问题
当我导航到它时,不会出现错误。证书很好。在/var/log/access.log .log文件中,我看到一个GET请求击中了站点。但是..。我在/etc/nginx/conf.d中定义的网站/应用程序没有加载/触发。应该提示我输入一个登录页面。以下是各种文物:
我查过的
nginx在跑也在听。php也在运行和监听。
mywww:/etc/nginx/conf.d# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Sen
服务器是Ubuntu13.04(GNU/Linux3.9.3-x86_64-linode33 x86_64)。
nginx是nginx/1.2.6。
我已经做了好几个小时了,这是我得到的,也是我所做的。
tail -f /usr/local/nginx/logs/error.log
2013/06/18 21:35:03 [crit] 3427#0: accept4() failed (24: Too many open files)
2013/06/18 21:35:04 [crit] 3427#0: accept4() failed (24: Too many open files)
20
我在服务器上运行一个Symfony网站,使用配置了Let's Encrypt的Nginx。当我启动服务器(总是使用sudo service nginx start / restart)时,一切都很顺利。
但每三个月,我注意到网站已经关闭。当我检查日志时,总是一样的:
2018/12/23 00:23:53 [notice] 22167#22167: signal process started
2018/12/23 00:23:53 [error] 22167#22167: open() "/run/nginx.pid" failed (2: No such file
我在一个新服务器上安装了Ubuntu18.04Nginx主线,当前版本为nginx/1.15.6。
无论我如何尝试重新加载nginx,它都不会出现错误,但是它不能工作,配置不会重新加载:
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
#
# service nginx reload
# /etc/init.d/nginx reload
[ ok ] Rel
如何卸载Ubuntu 11.04上passenger安装过程中安装的nginx?
我应该直接使用gem uninstall passenger吗?这也会移除nginx吗?
这是我在运行apt-get remove时看到的内容
sudo apt-get remove nginx-common nginx-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
**Package nginx-common is not installed, so not
在尝试运行sudo apt install nginx时,我得到了一个非常有用的错误:
Failed to start a high performance web server and a reverse proxy server.
当我运行sudo nginx -t时,我得到:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
因此,我不知道如何调试或找出我的nginx有什么问题
我刚刚使用Linux (14.04)、Nginx、PHP5-FPM (用于phpMyAdmin)、MySQL、客运,将Capistrano部署到服务器上。
一切都很好,但当我尝试从浏览器访问rails应用程序时,会出现错误。我去查看了Log,得到了以下信息:
App 15973 stdout:
App 15973 stderr: [passenger_native_support.so] trying to compile for the current user (deploy) and Ruby interpreter...
App 15973 stderr: (set PA