Centos7 DD重装系统 安装不绑定宝塔教程
重装系统
wget –no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh ‘https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh’ && chmod a+x ~/Network-Reinstall-System-Modify.sh && bash ~/Network-Reinstall-System-Modify.sh -UI_Options
选项1
密码
Pwd@CentOS
开启防火墙
查看状态
systemctl status firewalld
打开防火墙
systemctl start firewall
开启1022 以及常用端口以及后面默认的宝塔面板窗口 这里是777
firewall-cmd –add-port=80/tcp –permanent && firewall-cmd –reload
firewall-cmd –add-port=443/tcp –permanent && firewall-cmd –reoad
firewall-cmd –add-port=1022/tcp –permanent && firewall-cmd –reload
firewall-cmd –add-port=25/tcp –permanent && firewall-cmd –reload
firewall-cmd –add-port=777/tcp –permanent && firewall-cmd –reload
查看防火墙规则
firewall–cmd —list–all
修改默认SSH登录端口为1022
sed -i 's|^#Port 22|Port 1022|' /etc/ssh/sshd_config
systemctl restart sshd 安装宝塔7.9 记得回头关闭升级 https://ghproxy.com 国内机 curl -sSO https://ghproxy.com/https://raw.githubusercontent.com/ztkink/bthappy/main/install_panel.sh && bash install_panel.sh 国外机 curl -sSO https://raw.githubusercontent.com/ztkink/bthappy/main/install_panel.sh && bash install_panel.sh