LoginSignup
0
0

More than 5 years have passed since last update.

プログラムが突然落ちる(swap未設定)

Posted at

最小構成で使っていると、SWAP領域が設定されていないため、起動したプログラムが、カーネルによって強制的に落とされる。

SWAPを設定する

領域確保
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
スワップ作成
sudo mkswap /swapfile
スワップ有効化
sudo swapon /swapfile
起動時に自動有効
echo -e "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0