Warning: Undefined array key "string_value" in /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858
宝塔计划任务定期释放PHP内存设置 - 陆伍博客 - 你的互联网资源库 /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858
php,ETC,宝塔面板,fpm" />
Warning: Undefined array key "string_value" in /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858
/www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858
php,ETC,宝塔面板,fpm" />

宝塔计划任务定期释放PHP内存设置

陆伍
6天前发布 /正在检测是否收录...

Warning: Undefined array key "string_value" in /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858
广告 广告 广告 广告 广告 广告 广告 广告 广告 广告

Warning: Undefined array key "string_value" in /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858

Warning: Undefined array key "string_value" in /www/wwwroot/65gw.com/var/Widget/Base/Contents.php on line 858

教程说明

在计划任务中添加任务,选择周期,如每周一 3时30分执行

选执行Shell脚本,粘贴以下Shell脚本
if [ -f /etc/init.d/php-fpm-52 ];then

service php-fpm-52 reload

fi

if [ -f /etc/init.d/php-fpm-53 ];then

service php-fpm-53 reload

fi

if [ -f /etc/init.d/php-fpm-54 ];then

service php-fpm-54 reload

fi

if [ -f /etc/init.d/php-fpm-55 ];then

service php-fpm-55 reload

fi

if [ -f /etc/init.d/php-fpm-56 ];then

service php-fpm-56 reload

fi

if [ -f /etc/init.d/php-fpm-70 ];then

service php-fpm-70 reload

fi
myDate=date +"%Y-%m-%d %H:%M:$S"
echo "★[$myDate] PHP内存回收成功!"
echo '------------------------------------------------------------------------------';

喜欢就支持一下吧
点赞 0 分享 赞赏
评论
当前页面的评论已关闭
广告