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
共有 0 条评论