简体   繁体   English

php 5.6中的memory_limit是否有任何值范围限制?

[英]Is there any value range limit for memory_limit in php 5.6?

we have a UAT environment running with nginx and php-fpm. 我们有一个运行Nginx和php-fpm的UAT环境。 I was trying to increase the memory_limit to 2GB by changing the php.ini, .htaccess 我试图通过更改php.ini,.htaccess将memory_limit增加到2GB

After restarting the nginx and php-fpm, checked the phpinfo() and seeing that those changes are not taking affect on the environment. 重新启动nginx和php-fpm后,检查phpinfo()并查看这些更改对环境没有影响。

May I know the reason for this? 我可以知道原因吗?

更好地将配置放在这里,如我所测试的,一切正常,当我设置限制2G时,在回显信息时显示2G,重新启动所需的php服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM