You are not logged in.

#1 2021-12-27 03:13:25

malacology
Member
Registered: 2021-04-24
Posts: 152

[solved] 80 port is occupied

[root@bioarchlinux conf.d]# systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
[root@bioarchlinux conf.d]# netstat -anp|grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      251/nginx: master p 
unix  8      [ ]         DGRAM                    11880    1/init               /run/systemd/journal/socket
unix  2      [ ]         DGRAM                    33580    12020/systemd 

and the log

Dec 27 03:11:51 bioarchlinux systemd[1]: Starting A high performance web server and a reverse proxy server...
░░ Subject: A start job for unit nginx.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit nginx.service has begun execution.
░░ 
░░ The job identifier is 1104.
Dec 27 03:11:51 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 27 03:11:52 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 27 03:11:52 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 27 03:11:53 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 27 03:11:53 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 27 03:11:54 bioarchlinux nginx[20017]: 2021/12/27 03:11:51 [emerg] 20017#20017: still could not bind()
Dec 27 03:11:54 bioarchlinux systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit nginx.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Dec 27 03:11:54 bioarchlinux systemd[1]: nginx.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit nginx.service has entered the 'failed' state with result 'exit-code'.
Dec 27 03:11:54 bioarchlinux systemd[1]: Failed to start A high performance web server and a reverse proxy server.
░░ Subject: A start job for unit nginx.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit nginx.service has finished with a failure.
░░ 
░░ The job identifier is 1104 and the job result is failed.

Last edited by malacology (2021-12-27 14:11:26)


Don't speak to silly man. Keep Minimalism.

Offline

#2 2021-12-27 08:22:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [solved] 80 port is occupied

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      251/nginx: master p 

Well, there's a running nginx already?

Offline

#3 2021-12-27 13:54:18

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [solved] 80 port is occupied

No, nginx stop


Don't speak to silly man. Keep Minimalism.

Offline

#4 2021-12-27 13:57:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [solved] 80 port is occupied

Your netstat disagrees…

ps aux | grep nginx

Offline

#5 2021-12-27 14:10:54

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [solved] 80 port is occupied

I know, I need to reboot, after reboot, it works.

Last edited by malacology (2021-12-27 14:11:11)


Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB