Welcome! Log In Create A New Profile

Advanced

why nginx worker process listen in port 80, not master process?

Zhengyu Pan
July 24, 2020 09:28AM
In my node, Every network namespace has own nginx process.

when i use netstat command to get which nginx process are listening in port 80? I found that some nginx worker process are listening 80 port. Some nginx master process are listening port 80. In my understanding ,it should be that nginx master process will listen port 80? Why happens that worker process listen port 80? Is it about reload?

[root@node2 ~]# for i in `ip netns |grep lbaas| awk '{print $1}'`; do ip netns exec $i netstat -atnp |grep nginx;done
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22253/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21968/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22622/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17499/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 15567/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17568/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18643/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18736/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17328/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17766/nginx: master
















--


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

why nginx worker process listen in port 80, not master process?

Zhengyu Pan July 24, 2020 09:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready