Рубрики
Uncategorized

Proc open(): сбой вилки – не удается выделить память

Автор оригинала: David Wong.

1. Описание проблемы:

Когда сервер Linux использует composer для развертывания проекта Yii,” proc_open(): сбой вилки – Не удается выделить память

То есть “запрос на нехватку памяти”. Мы можем решить эту проблему, создав раздел подкачки.

2. Решение:

  • Беги первым свободный -м Посмотри на пространство
  • В среде командной строки выполните по очереди следующие три команды
dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
mkswap /var/swap.1
swapon /var/swap.1
  • Например: [вот результат моего запуска на сервере]
DD if = / dev / zero of = / var / swap. 1 BS = 1m count = 1024 // the first instruction
1024 + 0 records in // this is the returned content
1024 + 0 records out // this is the returned content
1073741824 bytes (1.1 GB) copied, 10.0607 s, 107 MB / S // this is the returned content
Mkswap / var / swap. 1 // second instruction
Setting up swapspace version 1, size = 1048572 KIB // this is the returned content
No label, UUID = f6280c41-21b4-4039-bc3e-c26284b47b0c // this is the returned content
Swapon / var / swap. 1 // the third instruction
Swapon: / var / swap. 1: Secure permissions 0644, 0600 recommended. / this is the returned content
  • Толкование:
DD copies a 1g file / var / swap. 1 from the / dev / zero device

Mkswap format / var / swap. 1

Swapon hangs the swap partition to the file system

Then enter free - m to view the memory usage information
  • Наконец, выполните обновление composer еще раз, чтобы добиться успеха

Справочный блог: http://www.zfs php hp.com/31.html