php - 更改 ssh 中的内存限制没有改变
问题描述
我尝试安装软件包,但出现此错误:
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^6.0 for laravel/passport
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 808607744) (tried to allocate 20480 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Repository/ComposerRepository.php on line 340
当我检查 php.ini 时,我在 cpanel 中更改了内存限制我有内存限制的新值但是当我运行此命令时
php -i | grep "memory_limit"
我得到了旧值
我怎样才能改变它?
解决方案
推荐阅读
- c# - 找不到与输入匹配的已安装模板,在线搜索匹配的模板
- c++ - 输入和输出文件流在 C++ 中究竟是如何工作的
- spring-boot - 使用 TIBCO EMS EXPLICIT_CLIENT_DUPS_OK_ACKNOWLEDGE 的 Spring JMS 确认行为
- javascript - 我可以将我的 discord 机器人的控制台日志打印到 discord.js 中的特定通道吗?
- javascript - 为什么我的 .env 变量在 Parcel 中不起作用?
- reactjs - 未调用 React redux thunk return dispatch
- python-3.x - 如何解决此错误“编码器要求其输入统一为字符串或数字。得到 ['float', 'str']”
- jenkins - Jenkins 共享库递归函数调用
- testing - 没有孩子时如何让柏树返回长度为0的孩子
- c# - 如何使用任务正确利用 I/o 绑定工作的粗粒度并发?