解决阿里云安装PHP5.3上遇到: virtual memory exhausted: Cannot allocate memory
时间:2015-12-08 18:18 来源:linux.it.net.cn 作者:IT
买了个服务器, 1G 的内存,编译东西按说应该够了,安装相关的内容也没问题,但是编译了一阵就遇到
virtual memory exhausted: Cannot allocate memory 这个问题。
解决方案:
# dd if=/dev/zero of=/swap bs=1024 count=1M
Format the swap file:
# mkswap /swap
Enable the swap file:
# swapon /swap
Enable swap on boot:
# echo "/swap swap swap sw 0 0" >> /etc/fstab
(责任编辑:IT)
买了个服务器, 1G 的内存,编译东西按说应该够了,安装相关的内容也没问题,但是编译了一阵就遇到 virtual memory exhausted: Cannot allocate memory 这个问题。 解决方案: # dd if=/dev/zero of=/swap bs=1024 count=1M Format the swap file: # mkswap /swap Enable the swap file: # swapon /swap Enable swap on boot: # echo "/swap swap swap sw 0 0" >> /etc/fstab (责任编辑:IT) |