我已经运行过一次nginx,但我有两个,只有一个node.js web服务器。运行结果netstat -tnlp
如下:
0.0.0.0: *
和之间有什么区别::: *
?
netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1108/sshd
tcp 0 0 127.0.0.1:27016 0.0.0.0:* LISTEN 20389/mongod
tcp 0 0 0.0.0.0:3305 0.0.0.0:* LISTEN 17224/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1139/nginx -g daemo
tcp6 0 0 :::22 :::* LISTEN 1108/sshd
tcp6 0 0 :::3002 :::* LISTEN 20567/node
tcp6 0 0 :::80 :::* LISTEN 1139/nginx -g daemo
发布于 2019-05-29 10:18:31
0.0.0.0是一个“全能”监听地址的IPv4地址。和 :::是0:0:0:0:0:0:0:0的短格式,这是IPv6中的等效地址。第三个冒号将此地址与端口号分开。
https://stackoverflow.com/questions/-100006841
复制相似问题