1-修改PHP7为PHP8
2-删除过时的PHP库 3-修改生成onmp的启动检测php-fpm为php8-fpm
This commit is contained in:
parent
d745acc539
commit
946e66c166
4
onmp.sh
4
onmp.sh
@ -613,14 +613,14 @@ onmp_restart()
|
|||||||
/opt/etc/init.d/S70mysqld stop > /dev/null 2>&1
|
/opt/etc/init.d/S70mysqld stop > /dev/null 2>&1
|
||||||
/opt/etc/init.d/S79php8-fpm stop > /dev/null 2>&1
|
/opt/etc/init.d/S79php8-fpm stop > /dev/null 2>&1
|
||||||
/opt/etc/init.d/S80nginx stop > /dev/null 2>&1
|
/opt/etc/init.d/S80nginx stop > /dev/null 2>&1
|
||||||
killall -9 nginx mysqld php-fpm > /dev/null 2>&1
|
killall -9 nginx mysqld php8-fpm > /dev/null 2>&1
|
||||||
sleep 3
|
sleep 3
|
||||||
/opt/etc/init.d/S70mysqld start > /dev/null 2>&1
|
/opt/etc/init.d/S70mysqld start > /dev/null 2>&1
|
||||||
/opt/etc/init.d/S79php8-fpm start > /dev/null 2>&1
|
/opt/etc/init.d/S79php8-fpm start > /dev/null 2>&1
|
||||||
/opt/etc/init.d/S80nginx start > /dev/null 2>&1
|
/opt/etc/init.d/S80nginx start > /dev/null 2>&1
|
||||||
sleep 3
|
sleep 3
|
||||||
num=0
|
num=0
|
||||||
for PROC in 'nginx' 'php-fpm' 'mysqld'; do
|
for PROC in 'nginx' 'php8-fpm' 'mysqld'; do
|
||||||
if [ -n "`pidof $PROC`" ]; then
|
if [ -n "`pidof $PROC`" ]; then
|
||||||
echo $PROC "启动成功";
|
echo $PROC "启动成功";
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user