安装宝塔前

echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf

vi /etc/yum/pluginconf.d/fastestmirror.conf

enable=0  #将1改为0


安装宝塔

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh

install.sh


安装宝塔后

#防火墙设置
firewall-cmd --permanent --zone=public --add-port=8080/tcp

firewall-cmd --reload

#端口更改
echo '8080' > /www/server/panel/data/port.pl && /etc/init.d/bt restart

echo '::' > /www/server/panel/data/ipv6.pl && /etc/init.d/bt restart