ssserver with ss

脚本练习:判断

需求:ubuntu14.04 32 

#!/bin/bash

#-----------------------------------------------
#desc    install *** with server speeder
#Author zhuyu
#version 1.0
#-----------------------------------------------

echo 'root:Qqwe1234' | chpasswd
KER=`uname -r`

if [ $KER = "3.13.0-29-generic" ] ; then

#install server speeder ***
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
apt-get  install python-pip -y
pip install ***
ssserver -p 443 -k installed -m table --fast-open -d start
exit 0

else
#change kernal and reboot
apt-get install linux-headers-3.13.0-29-generic linux-image-3.13.0-29-generic -y
sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.13.0-29-generic"/g'  /etc/default/grub
update-grub
reboot
fi

 https://files.cnblogs.com/files/feral/ss.sh

posted @ 2017-03-22 14:18  feral  阅读(194)  评论(1)    收藏  举报