我已经使用nginx几个月了,没有问题,但在升级到Mac OS X 10.9 Mavericks后,当我尝试启动nginx时,我得到了以下信息:
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [eme
我无法使用service nginx {signal}启动nginx。
root# service nginx status
* /usr/sbin/nginx is not running
root# service nginx start
root# service nginx status
* /usr/sbin/nginx is not running
root# ls -al /run/*.pid
-rw-r--r-- 1 root root 5 Jul 23 17:32 /run/acpid.pid
root# /etc/init.d/nginx restart
*
你好,我有一个安装了nginx流的服务器,我确实停止了nginx,然后重新加载了它,但它显示了下面的错误,并且没有启动:
nginx -s stop
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
我做了下面的命令,但什么也没做:
sudo nginx
nginx: [emerg] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or dir
我正在设置一个新的服务器。我选择的http-Server是NGINX。我想添加域audi-freunde-einbeck.de作为虚拟主机。我已经有2个其他域名在那里,它工作得很好,但当我尝试添加上面提到的域名,并启动服务器,它给我Job failed. See system journal and 'systemctl status' for details.我认为这是因为破折号,所以我尝试了各种其他域名有和没有连字符,但没有运气。同样的错误。这可能是什么原因造成的?我也试过重启,我真的不知所措。任何帮助都将不胜感激。
我试了一下,发现,当我只放入一个域名时,它就能工作。但是
我在Ubuntu18.10上,运行在vmware下,无法启动nginx服务--我得到了错误"nginx.service:无法打开PID文件/run/nginx“。
我已经编译了nginx的来源使用乘客。它在一台机器上运行正常,但是在我的vm中尝试它,我无法启动nginx服务。当它不能打开PID文件(或者创建它?)时,会出现上述错误。我已经完成了systemctl启用和启动,并且它挂起。
我使用/etc/sytemd/system/nginx.service脚本如下:
[Unit]
Description=The NGINX HTTP and reverse proxy server
A
我在一个共享主机上,有权继承nginx根安装并重写它的配置文件(注意:我不想在我的主目录中编译我自己的nginx )。
我编写了一个开始/重新加载/停止脚本,这个脚本工作得很好,但是我一直在下面看到错误
启动脚本
#!/bin/bash
# Set this to your nginx configuration file and PID
CONFIG=~/nginx/nginx.conf
PIDFILE=~/nginx/nginx.pid
# Do not change anything below unless you know what you do
DAEMON=/usr/l
我开始在水平上看我的error.log文件:警告.这可能是个愚蠢的想法,它会让我的服务器崩溃,因为我发现任何错误都会发生,但是嘿,我们是书呆子,这就是我们在这里的原因。
我注意到每次重新启动服务器时都会弹出一个警告和一个紧急情况,如下所示:
[warn] 8041#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
[emerg] 8041#0: open() "
有没有办法让nginx在windows 2003服务器上的端口80上运行?http.sys服务似乎运行在端口80上,这是web服务器在windows上运行的新的“首选方式”,但是nginx和apache还没有使用它。有什么简单的方法来阻止这一切吗?
当我尝试绑定到port80时,我得到以下信息:
nginx:埃默格 bind()到0.0.0.0:80失败(10013:尝试以其访问权限禁止的方式访问套接字)
netstat显示
Proto Local Address Foreign Address State PID
TCP 0.0.0
因为某种原因我不能启动nginx。
服务器是OpenSUSE;我完成了以下操作:
安装http://nginx.org/download/nginx-1.0.5.tar.gz
解压文件夹
运行/配置
制作
制造安装
nginx已经被提取到/usr/local/ nginx /sbin,在这里我可以看到nginx。但是当我试图运行任何命令时,它会说“命令没有找到”。
在运行时。/配置它说;
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using system zli
我刚在nginx状态下发现了一个错误。此错误不会阻止任何事情。这不会给我带来问题。一切都正常启动了。Nginx -t没有返回任何语法错误。
我只在nginx状态销售中看到。服务状态。或Systemctl状态nginx
错误:
systemctl status nginx
* nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
使用Salt我应用了安装和运行NGINX (1.14.0-0ubuntu1.7)作为服务的状态。服务的状态是活动的,但systemctl reload nginx一直失败,因此无法应用更新的配置。
完整日志:
systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after reload: No such file or directory
systemd[1]: Reloaded A high performance web server and a reverse proxy server.
sys
我想增加DirectAdmin上安装的Nginx中的worker_process,然后打开这个文件:
nano /etc/nginx/nginx.conf
但是它没有Worker_process,下面是所有代码:
#user nginx;
# The number of worker processes is changed automatically by CustomBuild, according to the number of CPU cores, if it's set to "1"
pid /var/run/nginx.pid;
#error_lo
#!/bin/bash
date=$(date +"%Y-%m-%d %H:%M:%S")
getpid=$(pgrep nginx | wc -l
if [ "$getpid" > 0 ]
then
echo 'Nginx is Fine, It is Running at' $date
else
echo "Error on Nginx and stoped at" $date
sudo fuser -k 443/tcp
sudo service nginx start
sudo service
我已经安装了nginx和hhvm,并在ubuntu上作为进程运行。这些信息抄录在下面。我在/usr/share/ nginx /html中有一个index.php文件(由nginx指向),但是当我试图访问nginx提供的站点时,我会得到以下有关hhvm的错误:
/var/log/nginx/error.log
2016/10/04 12:03:05 [crit] 12443#0: *1 connect() to unix:/var/run/hhvm/hhvm.sock failed (2: No such file or directory) while connecting to upstr