From ccf00d17f659e740eba60bec768ea5405614deb4 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 29 Nov 2019 17:41:55 +0800 Subject: [PATCH] up --- plugins/php/versions/74/seaslog.sh | 100 ---------------------------- plugins/php/versions/74/solr.sh | 99 ---------------------------- plugins/php/versions/74/yac.sh | 90 ------------------------- plugins/php/versions/74/yaf.sh | 99 ---------------------------- plugins/php/versions/74/yar.sh | 102 ----------------------------- plugins/php/versions/phplib.conf | 9 ++- 6 files changed, 4 insertions(+), 495 deletions(-) delete mode 100755 plugins/php/versions/74/seaslog.sh delete mode 100755 plugins/php/versions/74/solr.sh delete mode 100755 plugins/php/versions/74/yac.sh delete mode 100755 plugins/php/versions/74/yaf.sh delete mode 100755 plugins/php/versions/74/yar.sh diff --git a/plugins/php/versions/74/seaslog.sh b/plugins/php/versions/74/seaslog.sh deleted file mode 100755 index 800f27ce6..000000000 --- a/plugins/php/versions/74/seaslog.sh +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` - -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") -sourcePath=${serverPath}/source/php - -LIBNAME=SeasLog -LIBV=2.0.2 -sysName=`uname` -actionType=$1 -version=$2 - -extDir=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/ - -Install_lib() -{ - isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` - if [ "${isInstall}" != "" ];then - echo "php$version 已安装${LIBNAME},请选择其它版本!" - return - fi - - extFile=$extDir${LIBNAME}.so - if [ ! -f "$extFile" ];then - - php_lib=$sourcePath/php_lib - mkdir -p $php_lib - - if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - fi - - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} - $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make && make install - - cd $php_lib - rm -rf ${LIBNAME}-* - fi - sleep 1 - if [ ! -f "$extFile" ];then - echo "ERROR!" - return - fi - - _LIBNAME=$(echo $LIBNAME | tr '[A-Z]' '[a-z]') - echo "" >> $serverPath/php/$version/etc/php.ini - echo "[${_LIBNAME}]" >> $serverPath/php/$version/etc/php.ini - echo "extension=${_LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - - $serverPath/php/init.d/php$version reload - echo '===========================================================' - echo 'successful!' -} - - -Uninstall_lib() -{ - if [ ! -f "$serverPath/php/$version/bin/php-config" ];then - echo "php$version 未安装,请选择其它版本!" - return - fi - - extFile=$extDir${LIBNAME}.so - if [ ! -f "$extFile" ];then - echo "php-$version 未安装${LIBNAME},请选择其它版本!" - echo "php-$version not install ${LIBNAME}, Plese select other version!" - return - fi - _LIBNAME=$(echo $LIBNAME | tr '[A-Z]' '[a-z]') - sed -i '_bak' "/${_LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${_LIBNAME}/d" $serverPath/php/$version/etc/php.ini - - rm -f $extFile - $serverPath/php/init.d/php$version reload - echo '===============================================' - echo 'successful!' -} - - - -if [ "$actionType" == 'install' ];then - Install_lib -elif [ "$actionType" == 'uninstall' ];then - Uninstall_lib -fi \ No newline at end of file diff --git a/plugins/php/versions/74/solr.sh b/plugins/php/versions/74/solr.sh deleted file mode 100755 index 40bd95aa1..000000000 --- a/plugins/php/versions/74/solr.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` - -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") -sourcePath=${serverPath}/source/php - -LIBNAME=solr -LIBV=2.4.0 -sysName=`uname` -actionType=$1 -version=$2 - -extDir=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/ - -Install_lib() -{ - isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` - if [ "${isInstall}" != "" ];then - echo "php$version 已安装${LIBNAME},请选择其它版本!" - return - fi - - extFile=$extDir${LIBNAME}.so - if [ ! -f "$extFile" ];then - - php_lib=$sourcePath/php_lib - mkdir -p $php_lib - - if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - fi - - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} - $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS - make && make install - - cd $php_lib - rm -rf ${LIBNAME}-* - fi - sleep 1 - if [ ! -f "$extFile" ];then - echo "ERROR!" - return - fi - - echo "" >> $serverPath/php/$version/etc/php.ini - echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini - echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - - $serverPath/php/init.d/php$version reload - echo '===========================================================' - echo 'successful!' -} - - -Uninstall_lib() -{ - if [ ! -f "$serverPath/php/$version/bin/php-config" ];then - echo "php$version 未安装,请选择其它版本!" - return - fi - - extFile=$extDir${LIBNAME}.so - if [ ! -f "$extFile" ];then - echo "php$version 未安装${LIBNAME},请选择其它版本!" - echo "php-$vphp not install memcache, Plese select other version!" - return - fi - - sed -i '_bak' "/${LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}/d" $serverPath/php/$version/etc/php.ini - - rm -f $extFile - $serverPath/php/init.d/php$version reload - echo '===============================================' - echo 'successful!' -} - - - -if [ "$actionType" == 'install' ];then - Install_lib -elif [ "$actionType" == 'uninstall' ];then - Uninstall_lib -fi \ No newline at end of file diff --git a/plugins/php/versions/74/yac.sh b/plugins/php/versions/74/yac.sh deleted file mode 100755 index 105330f55..000000000 --- a/plugins/php/versions/74/yac.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` - -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") -sourcePath=${serverPath}/source/php - -actionType=$1 -version=$2 - -LIBNAME=yac -LIBV=2.0.2 -extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/${LIBNAME}.so - -Install_lib() -{ - - isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` - if [ "${isInstall}" != "" ];then - echo "php-$version 已安装${LIBNAME},请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - - php_lib=$sourcePath/php_lib - - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} - - $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make && make install && make clean - cd .. - rm -rf yaf-* - rm -f package.xml - fi - - if [ ! -f "$extFile" ];then - echo "ERROR!" - return; - fi - - echo "" >> $serverPath/php/$version/etc/php.ini - echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini - echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - echo "${LIBNAME}.use_namespace=1" >> $serverPath/php/$version/etc/php.ini - - $serverPath/php/init.d/php$version reload - echo '===========================================================' - echo 'successful!' -} - -Uninstall_lib() -{ - if [ ! -f "$serverPath/php/$version/bin/php-config" ];then - echo "php$version 未安装,请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - echo "php$version 未安装yaf,请选择其它版本!" - return - fi - - echo $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/\[${LIBNAME}\]/d" $serverPath/php/$version/etc/php.ini - - rm -f $extFile - $serverPath/php/init.d/php$version reload - echo '===============================================' - echo 'successful!' -} - - -if [ "$actionType" == 'install' ];then - Install_lib -elif [ "$actionType" == 'uninstall' ];then - Uninstall_lib -fi \ No newline at end of file diff --git a/plugins/php/versions/74/yaf.sh b/plugins/php/versions/74/yaf.sh deleted file mode 100755 index a69d4ebf9..000000000 --- a/plugins/php/versions/74/yaf.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` - -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") -sourcePath=${serverPath}/source/php - - - -actionType=$1 -version=$2 - -LIBNAME=yaf -LIBV='2.3.5' -if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ] || [ "$version" = '73' ];then - LIBV='3.0.7'; -fi -extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/${LIBNAME}.so - -Install_lib() -{ - - isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` - if [ "${isInstall}" != "" ];then - echo "php-$version 已安装${LIBNAME},请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - - - - php_lib=$sourcePath/php_lib - - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} - - $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make && make install - cd .. - rm -rf ${LIBNAME}-* - rm -f package.xml - fi - - if [ ! -f "$extFile" ];then - echo "ERROR!" - return; - fi - - echo "" >> $serverPath/php/$version/etc/php.ini - echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini - echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - echo "${LIBNAME}.use_namespace=1" >> $serverPath/php/$version/etc/php.ini - - $serverPath/php/init.d/php$version reload - echo '===========================================================' - echo 'successful!' -} - - -Uninstall_lib() -{ - if [ ! -f "$serverPath/php/$version/bin/php-config" ];then - echo "php-$version 未安装,请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - echo "php-$version 未安装${LIBNAME},请选择其它版本!" - return - fi - - echo $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}.use_namespace/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/\[${LIBNAME}\]/d" $serverPath/php/$version/etc/php.ini - - rm -f $extFile - $serverPath/php/init.d/php$version reload - echo '===============================================' - echo 'successful!' -} - - -if [ "$actionType" == 'install' ];then - Install_lib -elif [ "$actionType" == 'uninstall' ];then - Uninstall_lib -fi \ No newline at end of file diff --git a/plugins/php/versions/74/yar.sh b/plugins/php/versions/74/yar.sh deleted file mode 100755 index ad9bc6aad..000000000 --- a/plugins/php/versions/74/yar.sh +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` - -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") -sourcePath=${serverPath}/source/php - - -LIBNAME=yar -LIBV=1.2.5 - -actionType=$1 -version=$2 -extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/${LIBNAME}.so - -if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ] || [ "$version" = '73' ];then - LIBV='2.0.5' -fi - -Install_lib() -{ - - isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` - if [ "${isInstall}" != "" ];then - echo "php-$version 已安装${LIBNAME},请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - - - php_lib=$sourcePath/php_lib - - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} - - $serverPath/php/$version/bin/phpize - echo "./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --with-curl=$serverPath/php/curl" - ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --with-curl=$serverPath/lib/curl - make && make install - cd .. - rm -rf ${LIBNAME}-* - rm -f package.xml - fi - - if [ ! -f "$extFile" ];then - echo "ERROR!" - return; - fi - - echo "" >> $serverPath/php/$version/etc/php.ini - echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini - echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - echo "${LIBNAME}.expose_info=false" >> $serverPath/php/$version/etc/php.ini - - $serverPath/php/init.d/php$version reload - echo '===========================================================' - echo 'successful!' -} - - -Uninstall_lib() -{ - if [ ! -f "$serverPath/php/$version/bin/php-config" ];then - echo "php$version 未安装,请选择其它版本!" - return - fi - - if [ ! -f "$extFile" ];then - echo "php-$version 未安装${LIBNAME},请选择其它版本!" - echo "php-$version not install ${LIBNAME}, Plese select other version!" - return - fi - - echo $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/${LIBNAME}.use_namespace/d" $serverPath/php/$version/etc/php.ini - sed -i '_bak' "/\[${LIBNAME}\]/d" $serverPath/php/$version/etc/php.ini - - rm -f $extFile - $serverPath/php/init.d/php$version reload - echo '===============================================' - echo 'successful!' -} - - -if [ "$actionType" == 'install' ];then - Install_lib -elif [ "$actionType" == 'uninstall' ];then - Uninstall_lib -fi \ No newline at end of file diff --git a/plugins/php/versions/phplib.conf b/plugins/php/versions/phplib.conf index 391a0f941..8790c1936 100755 --- a/plugins/php/versions/phplib.conf +++ b/plugins/php/versions/phplib.conf @@ -204,7 +204,8 @@ "56", "70", "71", - "72" + "72", + "73" ], "type": "框架", "msg": "Yaf是一个C语言编写的PHP框架", @@ -277,8 +278,7 @@ "70", "71", "72", - "73", - "74" + "73" ], "type": "大数据", "msg": "SOLR全文搜索服务", @@ -295,8 +295,7 @@ "70", "71", "72", - "73", - "74" + "73" ], "type": "日志", "msg": "SeasLog高性能日志记录",