This commit is contained in:
JackLee_CN 2022-11-07 12:19:32 +08:00
parent 0f89d18edd
commit 623589daa9
2 changed files with 7 additions and 7 deletions

View File

@ -37,12 +37,12 @@ Install()
mkdir -p /opt/onmp
# 获取onmp脚本
curl -kfsSL http://git.axibug.com/JackLee/ONMP/raw/branch/master/onmp.sh > /opt/onmp/onmp.sh
curl -kfsSL https://raw.githubusercontent.com/monlor/ONMP/master/onmp.sh > /opt/onmp/onmp.sh
# curl -kfsSL http://192.168.4.237:4000/onmp.sh > /opt/onmp/onmp.sh
chmod +x /opt/onmp/onmp.sh
# 获取php探针文件
curl -kfsSL http://git.axibug.com/JackLee/ONMP/raw/branch/master/tz.php > /opt/onmp/tz.php
curl -kfsSL https://raw.githubusercontent.com/WuSiYu/PHP-Probe/master/tz.php > /opt/onmp/tz.php
/opt/onmp/onmp.sh
}
@ -50,7 +50,7 @@ Install()
Updata()
{
rm -rf /opt/onmp/onmp.sh
curl -kfsSL http://git.axibug.com/JackLee/ONMP/raw/branch/master/onmp.sh > /opt/onmp/onmp.sh
curl -kfsSL https://raw.githubusercontent.com/monlor/ONMP/master/onmp.sh > /opt/onmp/onmp.sh
# curl -kfsSL http://192.168.4.237:4000/onmp.sh > /opt/onmp/onmp.sh
chmod +x /opt/onmp/onmp.sh
/opt/onmp/onmp.sh renewsh > /dev/null 2>&1

View File

@ -7,7 +7,7 @@
# 软件包列表
pkglist="wget wget-ssl unzip grep sed tar ca-certificates coreutils-whoami php8 php8-cgi php8-cli php8-fastcgi php8-fpm php8-mod-mysqli php8-mod-pdo php8-mod-pdo-mysql nginx-extras mariadb-server mariadb-server-extra mariadb-client mariadb-client-extra"
phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exif php8-mod-fileinfo php8-mod-ftp php8-mod-gd php8-mod-gettext php8-mod-gmp php8-mod-iconv php8-mod-intl php8-mod-ldap php8-mod-session php8-mod-mbstring php8-mod-opcache php8-mod-openssl php8-mod-pcntl php8-mod-phar php8-pecl-redis php8-mod-session php8-mod-shmop php8-mod-simplexml php8-mod-snmp php8-mod-soap php8-mod-sockets php8-mod-sqlite3 php8-mod-sysvmsg php8-mod-sysvsem php8-mod-sysvshm php8-mod-tokenizer php8-mod-xml php8-mod-xmlreader php8-mod-xmlwriter php8-mod-zip php8-pecl-dio php8-pecl-http php8-pecl-event php8-pecl-raphf redis snmpd snmp-mibs snmp-utils zoneinfo-core zoneinfo-asia"
phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exif php8-mod-fileinfo php8-mod-ftp php8-mod-gd php8-mod-gettext php8-mod-gmp php8-mod-hash php8-mod-iconv php8-mod-intl php8-mod-json php8-mod-ldap php8-mod-session php8-mod-mbstring php8-mod-opcache php8-mod-openssl php8-mod-pcntl php8-mod-phar php8-pecl-redis php8-mod-session php8-mod-shmop php8-mod-simplexml php8-mod-snmp php8-mod-soap php8-mod-sockets php8-mod-sqlite3 php8-mod-sysvmsg php8-mod-sysvsem php8-mod-sysvshm php8-mod-tokenizer php8-mod-xml php8-mod-xmlreader php8-mod-xmlwriter php8-mod-zip php8-pecl-dio php8-pecl-http php8-pecl-libevent php8-pecl-propro php8-pecl-raphf redis snmpd snmp-mibs snmp-utils zoneinfo-core zoneinfo-asia"
#支持小米路由Monlor Tools工具箱
alias opkg=/opt/bin/opkg
@ -613,14 +613,14 @@ onmp_restart()
/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/S80nginx stop > /dev/null 2>&1
killall -9 nginx mysqld php8-fpm > /dev/null 2>&1
killall -9 nginx mysqld php-fpm > /dev/null 2>&1
sleep 3
/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/S80nginx start > /dev/null 2>&1
sleep 3
num=0
for PROC in 'nginx' 'php8-fpm' 'mysqld'; do
for PROC in 'nginx' 'php-fpm' 'mysqld'; do
if [ -n "`pidof $PROC`" ]; then
echo $PROC "启动成功";
else