|
|
|
@ -15,7 +15,6 @@ function sync_time() {
@@ -15,7 +15,6 @@ function sync_time() {
|
|
|
|
|
echo "*/20 * * * * ${ntpd} pool.ntp.org > /dev/null 2>&1" >> /var/spool/cron/root |
|
|
|
|
systemctl reload crond |
|
|
|
|
echo "同步成功,当前时间:" `date` |
|
|
|
|
sleep 5 |
|
|
|
|
} |
|
|
|
|
#修改SSH端口 |
|
|
|
|
function change_port() { |
|
|
|
@ -30,7 +29,6 @@ function change_port() {
@@ -30,7 +29,6 @@ function change_port() {
|
|
|
|
|
firewall-cmd --zone=public --add-port=1993/tcp --permanent |
|
|
|
|
firewall-cmd --reload |
|
|
|
|
echo 'SSH端口修改完毕......' |
|
|
|
|
sleep 5 |
|
|
|
|
} |
|
|
|
|
#安装BBR |
|
|
|
|
function insrall_bbr() { |
|
|
|
@ -52,13 +50,9 @@ function insrall_bbr() {
@@ -52,13 +50,9 @@ function insrall_bbr() {
|
|
|
|
|
#清理工作 |
|
|
|
|
rm -rf RPM-GPG-KEY-elrepo.org bbr.sh |
|
|
|
|
echo 'BBR安装完毕,10s后重启...' |
|
|
|
|
sleep 10 |
|
|
|
|
#重启服务器 |
|
|
|
|
reboot |
|
|
|
|
sleep 5 |
|
|
|
|
} |
|
|
|
|
sync_time |
|
|
|
|
sleep 5 |
|
|
|
|
change_port |
|
|
|
|
sleep 5 |
|
|
|
|
insrall_bbr |