星尘@小A 发表于 2019-2-19 15:56:18


小混混 发表于 2019-2-19 15:56

参考一下
https://www.70ol.com/95.html
好像不是这个问题

# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address         Foreign Address         State       PID/Program name   
tcp      0      0 0.0.0.0:21            0.0.0.0:*               LISTEN      697/pure-ftpd (SERV
tcp      0      0 0.0.0.0:22            0.0.0.0:*               LISTEN      425/sshd            
tcp      0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      491/python         
tcp      0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1193/master         
tcp      0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1074/mysqld         
tcp      0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/init            
tcp      0      0 0.0.0.0:80            0.0.0.0:*               LISTEN      426/httpd         
tcp6       0      0 :::21                   :::*                  LISTEN      697/pure-ftpd (SERV
tcp6       0      0 :::22                   :::*                  LISTEN      425/sshd            
tcp6       0      0 ::1:25                  :::*                  LISTEN      1193/master   

dalaoa 发表于 2019-2-19 15:58:50

我觉得是防火墙没关 试试 service iptables stop

ji2318945 发表于 2019-2-19 15:52:00

那就是防火墙没开这个端口肯定是这个原因了

星尘@小A 发表于 2019-2-19 15:52:55


星尘@小A 发表于 2019-2-19 16:04

我觉得是防火墙没关 试试 service iptables stop
这个我第一个就已经排除了 全关了
020.gif

ji2318945 发表于 2019-2-19 15:50:00


ji2318945 发表于 2019-2-19 16:06

这个我第一个就已经排除了 全关了
抱歉 centos7用这个 service firewalld stop

ji2318945 发表于 2019-2-19 16:02:57


星尘@小A 发表于 2019-2-19 16:08

抱歉 centos7用这个 service firewalld stop
systemctl stop firewalld.service
systemctl disable firewalld.service
全用了

Benson 发表于 2019-2-19 15:56:00

会不会是我宝塔用的是破解版的问题
006.gif

tonyma 发表于 2019-2-19 16:04:31

开启防火墙
systemctl start firewalld.service
添加端口
firewall-cmd --zone=public --add-port=8888/tcp --permanent
重载防火墙
firewall-cmd --reload
systemctl restart firewalld.service

centos7要手动添加端口才行,直接关掉端口也不会通
页: 1 [2]
查看完整版本: 可以ping通,可以上ssh,但是无法打开宝塔