CentOS 7 端口被 tcp6 监听 改为 tcp 监听

今天在虚拟机上装了centos7 配置好apache后,输入

netstat -tnpl | grep 80

发现80端口在tcp6上,尴尬如下局面

    netstat -tnpl | grep 80
    tcp6        0     80              0.0.0.0:*               LISTEN      2937/httpd

经过一番搜索,在apache官网发现了最简单实用的方法:修改apache文件
将 Listen 80 改为:Listen 0.0.0.0:80

上一篇 Windows 10 LSTC 企业精简版 如何开启网络共享并查找网络计算机 实现连接/共享打印机
下一篇 CentOS 7 服务器搭建代理服务器IP