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

版权声明:
作者:三炮不吃鱼
链接:https://www.qkeke.com/archives/852.html
来源:小可博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
CentOS 7 端口被 tcp6 监听 改为 tcp 监听
今天在虚拟机上装了centos7 配置好apache后,输入 netstat -tnpl | grep 80 发现80端口在tcp6上,尴尬如下局面 netstat -tnpl | grep 80 tcp6 ……
<<上一篇
下一篇>>