yasutomogのブログ

Software Engineerの雑記

さくらのVPSを借りたときのCentOSの初期設定3

作業内容

  • 不要なサービスの停止
    chkconfig auditd off
    chkconfig autofs off
    chkconfig avahi-daemon off
    chkconfig bluetooth off
    chkconfig cups off
    chkconfig firstboot off
    chkconfig gpm off
    chkconfig haldaemon off
    chkconfig hidd off
    chkconfig kudzu off
    chkconfig lvm2-monitor off
    chkconfig mcstrans off
    chkconfig mdmonitor off
    chkconfig messagebus off
    chkconfig netfs off
    chkconfig nfslock off
    chkconfig pcscd off
    chkconfig portmap off
    chkconfig rawdevices off
    chkconfig restorecond off
    chkconfig rpcgssd off
    chkconfig rpcidmapd off
    chkconfig smartd off
    chkconfig xfs off
     
  • 不要なコンソールの無効化
    /etc/inittabを変更しようとしたが、既にコメントアウトされていた。
    # Run gettys in standard runlevels
    1:2345:respawn:/sbin/mingetty tty1
    # 2:2345:respawn:/sbin/mingetty tty2
    # 3:2345:respawn:/sbin/mingetty tty3
    # 4:2345:respawn:/sbin/mingetty tty4
    # 5:2345:respawn:/sbin/mingetty tty5
    # 6:2345:respawn:/sbin/mingetty tty6
     
  • SELINUXの無効化
    /etc/sysconfig/selinuxを変更しようとしたが、既にコメントアウトされていた。
    SELINUX=disabled 
     

 参考にしたサイト