|
|
|
@ -11,12 +11,6 @@ sysName=`uname` |
|
|
|
|
install_tmp=${rootPath}/tmp/mw_install.pl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#获取信息和版本 |
|
|
|
|
# bash /www/server/mdsever-web/scripts/getos.sh |
|
|
|
|
bash ${rootPath}/scripts/getos.sh |
|
|
|
|
OSNAME=`cat ${rootPath}/data/osname.pl` |
|
|
|
|
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
|
|
|
|
|
|
|
|
|
version=8.2.x |
|
|
|
|
PHP_VER=82 |
|
|
|
|
|
|
|
|
@ -24,12 +18,7 @@ PHP_VER=82 |
|
|
|
|
Install_php() |
|
|
|
|
{ |
|
|
|
|
#------------------------ install start ------------------------------------# |
|
|
|
|
|
|
|
|
|
### centos start ################ |
|
|
|
|
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm |
|
|
|
|
yum install -y php82 php82-php-fpm |
|
|
|
|
### centos start ################ |
|
|
|
|
|
|
|
|
|
if [ "$?" == "0" ];then |
|
|
|
|
mkdir -p $serverPath/php-yum/${PHP_VER} |
|
|
|
|
fi |
|
|
|
|