勉強したことのメモ

Webエンジニア / プログラマが勉強したことのメモ。

サーバーで不要なサービスを停止する

   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

 - サーバー

  関連記事

yumで既にインストールされているか確認する

新しくインストールする前に既に入っているか どうか確認したかった。 yum li ...

サーバーのメモリー使用状況を調べる(free)

サーバーのメモリー使用状況を調べる際は teratermでログインして、 fre ...

中国のIPアドレスをiptablesで拒否、遮断する

レンタルしているVPSの一つが最近よく落ちる。原因はどうも海外、特に中国から不正 ...

コマンドでMySQLに郵便番号データを入れる

練習としてコマンドから郵便番号データを入れた際のメモ。 --------- 1: ...

お手軽に負荷分散(DNSラウンドロビン)を行う方法

サーバ設定か何かの記事を見ていて「DNSラウンドロビン」という聞いたことのない言 ...