> 做站经验技巧 > Nginx配置伪静态规则报错:Cannot allocate memory

Nginx配置伪静态规则报错:Cannot allocate memory

配置Nginx伪静态规则报错,错误如下:

ERROR:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 1073741824) failed (12: Cannot allocate memory)
nginx: [alert] munmap(FFFFFFFFFFFFFFFF, 1073741824) failed (22: Invalid argument)
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

Nginx报此错误的问题出现的原因:

错误的规则、或者网站的nginx配置出错,导致出现此错误。

解决的办法:

重启服务器,准确说重启php即可。

Nginx配置伪静态规则报错:Cannot allocate memory:等您坐沙发呢!

发表评论

表情
还能输入210个字