页面显示报错如下:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /data/nginx/html/zabbix/include/db.inc.php on line 596

[root@SRC111 ~]# cd /data/php/
[root@SRC111 php]# find ./ -name php.ini
./lib/php.ini
[root@SRC111 php]# vim ./lib/php.ini 
#查找到memory_limit = 128M这一行,将128M改大点。
memory_limit = 2048M
[root@SRC111 php]# ps -ef|grep php
www      24655 26493  1 09:49 ?        00:00:03 php-fpm: pool www
www      24779 26493  0 09:49 ?        00:00:02 php-fpm: pool www
www      25142 26493  0 09:50 ?        00:00:01 php-fpm: pool www
root     26244 25836  0 09:54 pts/0    00:00:00 grep --color=auto php
root     26493     1  0 Apr17 ?        00:00:15 php-fpm: master process (/data/php/etc/php-fpm.conf)

[root@SRC111 php]# systemctl status php-fpm
● php-fpm.service - PHP-FPM Control Service
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
   Active: active (exited) since Fri 2020-04-17 16:19:28 CST; 1 weeks 2 days ago
 Main PID: 26484 (code=exited, status=0/SUCCESS)
    Tasks: 4
   CGroup: /system.slice/php-fpm.service
           ├─24655 php-fpm: pool www
           ├─24779 php-fpm: pool www
           ├─25142 php-fpm: pool www
           └─26493 php-fpm: master process (/data/php/etc/php-fpm.conf)

Apr 17 16:19:28 SRC024049 systemd[1]: Started PHP-FPM Control Service.
[root@SRC111 php]# systemctl restart  php-fpm

最后修改:2020 年 04 月 28 日 05 : 56 PM
如果觉得我的文章对你有用,请随意赞赏