勉強したことのメモ

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

 - サーバー

  関連記事

glibcライブラリの脆弱性とアップデート方法

レンタルしているサーバのアナウンスで「glibcライブラリの脆弱性」云々というの ...

suとsu -の違い

スーパーユーザーになる際にsuだけ打っていたけど su -の方がいろいろ出来るか ...

WordPressのサーバー移行で気付いた点

あるWordPressを置いているサーバーのリソースが苦しくなってきたので、新た ...

サーバー監視はNew Relicが楽に導入できて便利

サーバー監視はNew Relicが楽に導入できて便利だった。メモリ使用率やCPU ...

FTP接続する際のユーザー及びグループ設定についてのメモ

共用のレンタルサーバーを使用する時には気にならないが、VPSや専用サーバーを使う ...