开放Centos7端口

Centos7下安装完宝塔面板,给的登录地址无法进入。

If you cannot access the panel, release the following port (8888|888|80|443|20|21) in the security group

这是Centos7默认没有开放这些端口,需要开放这些端口才能进入登录地址;

firewall-cmd --zone=public --add-port=8888/tcp --permanent

重新载入:

firewall-cmd --reload

查看开启的端口:

firewall-cmd --list-ports

关于Centos开启防火墙及特定端口,可以访问:https://blog.csdn.net/zll_0405/article/details/81208606

这篇博客写的很详细。

猜你喜欢

转载自blog.csdn.net/M82_A1/article/details/91410136