netstat -an 查看端口
[root@test /]# netstat -an |grep LISTEN |grep :80
#端口可以更改为如ftp 21 ssh 22 smtp 25 pops 110
tcp 0 0 :::80 :::*
LISTEN
我用如下命令都提示80链接成功!
[root@www ~]# wget
http://localhost
--10:10:39-- http://localhost/
正在解析主机 localhost...
127.0.0.1
Connecting to localhost|127.0.0.1|:80... 已连接。
已发出 HTTP
请求,正在等待回应... 403 Forbidden
10:10:39 错误 403:Forbidden。
查看端口
最新推荐文章于 2024-01-29 10:02:17 发布