Browse Source

Update include/init_CentOS.sh

lj2007331 9 years ago
parent
commit
17f9f295d8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/init_CentOS.sh
  2. 1 1
      shadowsocks.sh

+ 1 - 1
include/init_CentOS.sh

@@ -46,7 +46,7 @@ fi
 #[ "$sendmail_yn" == 'y' ] && yum -y install sendmail && service sendmail restart
 
 # closed Unnecessary services and remove obsolete rpm package
-for Service in `chkconfig --list | grep 3:on | awk '{print $1}'`;do chkconfig --level 3 $Service off;done
+for Service in `chkconfig --list | grep 3:on | awk '{print $1}' | grep -vE 'nginx|httpd|tomcat|mysqld|php-fpm|pureftpd|redis-server|memcached|supervisord'`;do chkconfig --level 3 $Service off;done
 for Service in sshd network crond iptables messagebus irqbalance syslog rsyslog sendmail;do chkconfig --level 3 $Service on;done
 
 # Close SELINUX

+ 1 - 1
shadowsocks.sh

@@ -135,7 +135,7 @@ do
     echo
     read -p "Please input Shadowsocks port(Default: $Shadowsocks_Default_port): " Shadowsocks_port
     [ -z "$Shadowsocks_port" ] && Shadowsocks_port=$Shadowsocks_Default_port
-    if [ $Shadowsocks_port -ge 9001 >/dev/null 2>&1 -a $Shadowsocks_port -le 9099 >/dev/null 2>&1 ];then
+    if [ $Shadowsocks_port -ge 9000 >/dev/null 2>&1 -a $Shadowsocks_port -le 9100 >/dev/null 2>&1 ];then
         break
     else
         echo "${CWARNING}input error! Input range: 9001~9099${CEND}"