阿里云ECS云服务器编译安装PHP遇到virtual memory exhausted: Cannot allocate memory
2017-07-19 20:28
573 查看
阿里云编译安装php时遇到virtual memory exhausted: Cannot allocate memory
买了个服务器, 1G 的内存阿里云服务器,编译东西按说应该够了,安装相关的内容也没问题,但是编译了一阵就遇到 virtual memory exhausted: Cannot allocate memory 这个问题。
View Code
买了个服务器, 1G 的内存阿里云服务器,编译东西按说应该够了,安装相关的内容也没问题,但是编译了一阵就遇到 virtual memory exhausted: Cannot allocate memory 这个问题。
解决方法
发生该问题的原因是服务器的内存不够,从而导致编译失败。而购买的阿里云服务器,未给你分配虚拟内存,所以可以通过自行增加虚拟内存的方法予以解决:dd if=/dev/zero of=/swap bs=1024 count=1M mkswap /swap swapon /swap echo "/swap swap swap sw 0 0" >> /etc/fstab
View Code
相关文章推荐
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- 滴滴云服务器安装php的时候报错virtual memory exhausted: Cannot allocate memory make: *** [ext/fileinfo/libmagic/ap
- php编译 :virtual memory exhausted: Cannot allocate memory
- 编译安装php时遇到virtual memory exhausted: Cannot allocat
- PHP源码安装出现virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory(转)
- 编译时:virtual memory exhausted: Cannot allocate memory
- android4.4编译失败,出现“virtual memory exhausted: Cannot allocate memory”
- 编译QT程序出现virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- Linux编译时:virtual memory exhausted: Cannot allocate memory
- 编译出现错误virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory,常见于VPS