勉強したことのメモ

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

 - サーバー

  関連記事

htaccessを置いてあるフォルダのファイルを参照

曖昧だけどhtaccessでベーシック認証とかIP制限かかってる フォルダ内のプ ...

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

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

OpenLiteSpeedにvsftpdを導入しFTPクライアントソフトから接続する方法

先日Almalinux8系に1-Click InstallでOpenLiteSp ...

Sysstat Graphical Viewerにロードアベレージを追加

sysstatの各種情報をグラフ表示するSysstat Graphical Vi ...

サーバー監視レポートメールを受信する(Logwatch)

サーバーの各種ログを整形してメールで送ってくれる Logwatchというものがあ ...