2019年11月23日土曜日

インストール後のswapの追加


以下のコマンドにてスワップファイツを追加
 > sudo bash
    #  cd /root
    #  fallocate -l 4G swapfile
    #  chmod 600 swapfile
    #  mkswap /root/swapfile
    #  swapon /root/swapfile
    #  swapon -s

/etc/fstabに以下を追加
/root/swapfile none swap sw 0 0


※:CentOSでは、fallocateで作成したファイルは動作しないので、以下のコマンドで
  ファイルを作成する。
  dd if=/dev/zero of=/swapfile bs=1M count=4096

2019年11月4日月曜日

ntpの設定

/etc/ntp.confの下記を変更

#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
pool 0.pool.ntp.org iburst
pool 1.pool.ntp.org iburst
pool 2.pool.ntp.org iburst
pool 3.pool.ntp.org iburst