Browse Source

Fix issues for some software show openssl warning

lj2007331@gmail.com 7 years ago
parent
commit
c273153a51
4 changed files with 10 additions and 13 deletions
  1. 3 3
      addons.sh
  2. 6 6
      include/init_CentOS.sh
  3. 0 3
      include/openssl.sh
  4. 1 1
      versions.txt

+ 3 - 3
addons.sh

@@ -427,9 +427,9 @@ What Are You Doing?
             tar xzf swoole-${swoole_ver}.tgz
             pushd swoole-${swoole_ver}
           else
-            src_url=https://pecl.php.net/get/swoole-1.10.3.tgz && Download_src
-            tar xzf swoole-1.10.3.tgz
-            pushd swoole-1.10.3
+            src_url=https://pecl.php.net/get/swoole-1.10.4.tgz && Download_src
+            tar xzf swoole-1.10.4.tgz
+            pushd swoole-1.10.4
           fi
           ${php_install_dir}/bin/phpize
           ./configure --with-php-config=${php_install_dir}/bin/php-config

+ 6 - 6
include/init_CentOS.sh

@@ -10,7 +10,7 @@
 
 # closed Unnecessary services and remove obsolete rpm package
 [ "${CentOS_ver}" == '7' ] && [ "$(systemctl is-active NetworkManager.service)" == 'active' ] && NM_flag=1
-for Service in $(chkconfig --list | grep 3:on | awk '{print $1}' | grep -vE 'nginx|httpd|tomcat|mysqld|php-fpm|pureftpd|redis-server|memcached|supervisord|aegis|NetworkManager|iptables');do chkconfig --level 3 ${Service} off;done
+for Service in $(chkconfig --list | grep 3:on | awk '{print $1}' | grep -viE 'nginx|httpd|tomcat|mysqld|php-fpm|pureftpd|redis-server|memcached|supervisord|aegis|NetworkManager|iptables|cloud');do chkconfig --level 3 ${Service} off;done
 [ "${NM_flag}" == '1' ] && systemctl enable NetworkManager.service
 for Service in sshd network crond messagebus irqbalance syslog rsyslog;do chkconfig --level 3 ${Service} on;done
 
@@ -43,10 +43,10 @@ EOF
 sed -i '/^# End of file/,$d' /etc/security/limits.conf
 cat >> /etc/security/limits.conf <<EOF
 # End of file
-* soft nproc 65535
-* hard nproc 65535
-* soft nofile 65535
-* hard nofile 65535
+* soft nproc 1000000 
+* hard nproc 1000000 
+* soft nofile 1000000 
+* hard nofile 1000000 
 EOF
 
 # /etc/hosts
@@ -71,7 +71,7 @@ echo options nf_conntrack hashsize=131072 > /etc/modprobe.d/nf_conntrack.conf
 # /etc/sysctl.conf
 [ ! -e "/etc/sysctl.conf_bk" ] && /bin/mv /etc/sysctl.conf{,_bk}
 cat > /etc/sysctl.conf << EOF
-fs.file-max=65535
+fs.file-max=1000000
 net.ipv4.tcp_max_tw_buckets = 6000
 net.ipv4.tcp_sack = 1
 net.ipv4.tcp_window_scaling = 1

+ 0 - 3
include/openssl.sh

@@ -17,9 +17,6 @@ Install_openSSL102() {
     make clean
     ./config --prefix=${openssl_install_dir} -fPIC shared zlib-dynamic
     make -j ${THREAD} && make install
-    [ -z "`grep ^'export PATH=' /etc/profile`" ] && echo "export PATH=${openssl_install_dir}/bin:\$PATH" >> /etc/profile
-    [ -n "`grep ^'export PATH=' /etc/profile`" -a -z "`grep ${openssl_install_dir} /etc/profile`" ] && sed -i "s@^export PATH=\(.*\)@export PATH=${openssl_install_dir}/bin:\1@" /etc/profile
-    . /etc/profile
     popd
     if [ -f "${openssl_install_dir}/lib/libcrypto.a" ]; then
       echo "${CSUCCESS}openssl-1.0.2 module installed successfully! ${CEND}"

+ 1 - 1
versions.txt

@@ -69,7 +69,7 @@ xcache_ver=3.2.0
 apcu_ver=4.0.11
 apcu_for_php7_ver=5.1.11
 eaccelerator_ver=0.9.6.1
-swoole_ver=2.1.1
+swoole_ver=2.1.2
 xdebug_ver=2.6.0
 
 # Ftp