サーバーで不要なサービスを停止する
2014/05/17
サーバーの基本的な設定で不要なサービスは停止する
というのがあったので実際に試した内容をメモ。
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 isdn 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
chkconfig yum-updatesd off
■停止前
total used free shared buffers cached
Mem: 1020228 848772 171456 0 172028 522128
-/+ buffers/cache: 154616 865612
Swap: 2097144 0 2097144
■停止後
total used free shared buffers cached
Mem: 1020228 841108 179120 0 172064 522484
-/+ buffers/cache: 146560 873668
Swap: 2097144 0 2097144
あんまり変わってない? ように見える。
ただ、単純にMemのfreeのところを見るわけじゃないらしい。
free+buffers+cachedが実質的な残りメモリーみたいなので、
179120+172064+522484=873668だから大体870MBぐらい。
■参考サイト
http://www.math.kobe-u.ac.jp/~kodama/tips-free-memory.html
http://tanaka.sakura.ad.jp/archives/001065.html
関連記事
-
Apacheのログを見やすくする(ApacheLogViewer)
サーバのリソース監視をしていると寝ている時間にロードアベレージが跳ね上がっていた ...
-
Plesk12で「SQLSTATE[42S02]: Base table~~」エラー時の対応方法
Plesk12のログインページを開くと「ERROR: Zend_Db_State ...
-
特定ディレクトリ以下のBasic認証を無効化する方法
Basic認証を設定しているサイトがあり、そちらを解除したかった。通常の場合だと ...
-
logrotate
先輩とサーバー会社とのやり取りで、 「負荷の少ない時間帯にサーバー状況がホニャラ ...
-
第4のWebサーバLiteSpeed(有料版)とOpenLightSpeed(無料版)について
あるサイトをWappalyzerで調査していた際にWebサーバがApacheやN ...