Ubuntu Nginx地址端口80已在使用中
我刚刚干净地安装了Nginx,因为端口0.0.0.0:80和[:]:80已经在使用中,我遇到了问题。现在我仍然有同样的问题,我真的需要你的帮助,在尝试了很多事情之后。你应该知道,我只习惯于关注论坛,但当涉及到调试时,我完全不适合 我能给你的是把手,以帮助你了解实际问题是什么 我的Ubuntu Nginx地址端口80已在使用中,ubuntu,nginx,ubuntu-18.04,port80,Ubuntu,Nginx,Ubuntu 18.04,Port80,我刚刚干净地安装了Nginx,因为端口0.0.0.0:80和[:]:80已经在使用中,我遇到了问题。现在我仍然有同样的问题,我真的需要你的帮助,在尝试了很多事情之后。你应该知道,我只习惯于关注论坛,但当涉及到调试时,我完全不适合 我能给你的是把手,以帮助你了解实际问题是什么 我的nginx版本是1.17.3 安装在Ubuntu 18.04服务器上(DigitalOcean) Nginx-t提供了以下信息: nginx: the configuration file /etc/nginx/ngin
nginx
版本是1.17.3
安装在Ubuntu 18.04服务器上(DigitalOcean)
Nginx-t
提供了以下信息:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
systemctl status nginx
给出了一个关于找不到的PID文件的错误。其余的似乎都很好,但我不能判断这是否是一个坏兆头的实际问题
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-08-29 14:10:18 UTC; 23min ago
Docs: http://nginx.org/en/docs/
Process: 2307 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 2310 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 2320 (nginx)
Tasks: 2 (limit: 504)
CGroup: /system.slice/nginx.service
├─2320 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
└─2322 nginx: worker process
wp-rest-api-ams-jeromejero systemd[1]: Starting nginx - high performance web server...
wp-rest-api-ams-jeromejero systemd[1]: nginx.service: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory
wp-rest-api-ams-jeromejero systemd[1]: Started nginx - high performance web server.
现在来展示我想要解决的实际问题:nginx
给出了以下内容。我知道有很多类似的问题,但都没有帮助
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
现在检查这个端口上的实际内容:sudo netstat-tlpn | grep:80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2083/nginx: master
tcp6 0 0 :::80 :::* LISTEN 2083/nginx: master
如果有人能对此有新的见解,那就太好了。可能会有所帮助you@WillM. 杀死港口无助于我以前的尝试。又试了一次,但运气不好。可能会有帮助you@WillM. 杀死港口无助于我以前的尝试。又试了一次,但运气不好。