During the test of Nginx functionality today, the following problems occurred:
Nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7091 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7092 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:1935 failed (98: Address already in use)
Nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7091 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7092 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:1935 failed (98: Address already in use)
The reason is:
During the test, turn off the port number of RTMP,./kill -9 PID (RTMP :1935)
Results in starting the Nginx,./Nginx – c/usr/local/Nginx/conf/Nginx. Conf
The above error occurs
The result process is as follows:
First use lsof – I :80 to see what program is using port 80. Lsof returns the following:
[root@localhost sbin]# lsof – I :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 63170 root 9u IPv4 14243472 0t0 TCP *: HTTP (LISTEN)
Close process: Kill -9 63170
Restart the Nginx: [root @ localhost sbin] #./Nginx – c/usr/local/Nginx/conf/Nginx. Conf
Problem solving
Read More:
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- [exception] address already in use: bind
- What should be paid attention to in socket programming — bind socket error: address already in use
- Error: transport error 202: bind failed: address already in use
- Eclipse port occupied( java.net.BindException : address already in use: bind) solution
- Failed to set up listener: socketexception: address already in use
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- How to solve oserror: [errno 98] address already in use and kill the python3 process
- Error: listen eadrinuse: address already in use
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- docker Error creating default “bridge“ network: failed to allocate gateway Address already in use
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- [Tomcat] an error is reported when Tomcat starts ERROR:transport error 202:bind failed:Address already
- Nginx start error: job for nginx.service failed because the control process exited with error code
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- Error starting userland proxy: listen TCP 0.0.0.0:9000: Listen: address already in use
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- Tomcat start error ERROR:transport error 202:bind failed:Address already
- Error running ‘Tomcat 9‘: Address localhost:1099 is already in use
- JMeter: java.net.bindexception: address already in use: connect solution