![netstat 没有列出 apache IPv4 监听套接字](https://linux22.com/image/1142194/netstat%20%E6%B2%A1%E6%9C%89%E5%88%97%E5%87%BA%20apache%20IPv4%20%E7%9B%91%E5%90%AC%E5%A5%97%E6%8E%A5%E5%AD%97.png)
我的 Apache 正在监听 *.80 和 *.443 连接。并且运行正常:
** root@syslog-ng ** /etc ** Mon Nov 07 13:33:51
# telnet 127.0.0.1 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Modified from the Debian original for Ubuntu
Last updated: 2014-03-19
See: https://launchpad.net/bugs/1288690
-->
...
为什么监听套接字只显示为 tcp6?
** root@syslog-ng ** /etc ** Mon Nov 07 14:18:51
# netstat -nat | grep LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:5432 :::* LISTEN
tcp6 0 0 :::25 :::* LISTEN
tcp6 0 0 ::1:6010 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
Ubuntu version: 3.13.0-100-generic #147-Ubuntu SMP
apache version: 2.4.7 (Ubuntu)