端口講解:
防火牆開啓,開機啓動,狀態,停止,開機關閉
systemctl [start | enable | status | stop | disable] firewalld.service
查看防火牆狀態:
firewall-cmd --state
開80端口命令:
firewall-cmd --zone=public --add-port=80/tcp --permanent
註釋:
--zone #作用域
--add-port=80/tcp #添加端口,格式爲:端口/通訊協議
--permanent #永久生效
重新載入:
firewall-cmd --reload
查看開啓的端口:
firewall-cmd --list-ports
centos7.X下安裝
1.首先使用xshell工具以root用戶連接服務器
2.輸入以下安裝命令會進行自動安裝
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
3.安裝完成後會出現以下界面
Bt-Panel-URL: http://*.*.*.*:8888
username: **********
password: **********
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
4.瀏覽器輸入 http://xx.xx.xx.xx:8888 輸入用戶名和密碼登錄.
本地虛機搭建的寶塔:http://xxx.xxx.xxx.xxx:8888/xxxxxxxx
阿里雲搭建的寶塔:http://xxx.xxx.xxx.xxx:8888
本地虛機搭建的寶塔,IP地址不是提示的IP,而是自己虛機配置的IP地址
阿里雲搭建的寶塔,直接用提示的IP地址即可(阿里雲的需要在"安全組規則"中添加端口)