勉強したことのメモ

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

 - サーバー

  関連記事

linuxのシェルスクリプト

とあるサイトで自動更新で随時データベースにデータが挿入されるという機能があった。 ...

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

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

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

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

SELinuxとは? またサーバ構築作業の際に何故SELinuxを無効にする必要があるのか?

サーバ構築作業の際に大抵「SELinuxは無効化しましょう」という案内がある。そ ...

VPSのメモリ2GBでどのぐらいのPVに耐えられるのか?

VPSを分からないなりに勉強しているんだけど、実際どのぐらいのPVに耐えられるん ...