我通过PuTTY:sudo ufw status

,
但是Nmap扫描:
PORT STATE SERVICE
22/tcp open ssh
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-dssudo netstat -tulpn | grep 80:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1806/sshd
tcp6 0 0 :::22 :::* LISTEN 1806/sshd
udp6 0 0 /mac adress here/ :::* 1847/ntpd我是怎么打开80号港口的?
发布于 2017-08-16 21:31:48
因此,您似乎有一个防火墙规则来打开端口80,但您没有任何进程监听它。您是否实际安装了nginx、apache或其他Did服务器?我们假设webserver,因为80是http连接的默认端口。
安装完毕后,运行
sudo netstat -tulpn | grep :80您将看到nginx使用的端口,并且在到达ip时也会在浏览器中获得响应。
https://askubuntu.com/questions/946152
复制相似问题