解决报错:fatal error: allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) i

时间:2025-04-11 07:59:20
我的机子上是nginx,使用sudo systemctl restart nginx重启nginx(如果你的机子上是apache就重启apache),然后查看nginx的状态:sudo systemctl status nginx
具体重启步骤为:
(1)使用sudo netstat -tulnp | grep :80命令查看80端口监听的服务,我的机子上显示的80端口是nginx
(2)查看所有nginx相关的进程:ps -aux | grep nginx
(3)杀死所有相关进程:sudo kill -9 PID,比如我要杀死:sudo kill -9 15319 3493 3494 3495