サーバー完成図書用のメモ

WEBサーバーとかFTPサーバーとかが何入っているかさらっと確認するスクリプト

#!/bin/sh

TMP_FILE=`mktemp`
rpm -qa > $TMP_FILE

echo "[web server]"

cat $TMP_FILE | grep httpd
cat $TMP_FILE | grep nginx

echo ""
echo "[php]"

cat $TMP_FILE| grep php

echo ""
echo "[perl]"

cat $TMP_FILE | grep "perl-5"

echo ""
echo "[MySQL]"

cat $TMP_FILE | grep mysql
cat $TMP_FILE | grep Percona

echo ""
echo "[mail server]"

cat $TMP_FILE | grep sendmail
cat $TMP_FILE | grep postfix
cat $TMP_FILE | grep exim

echo ""
echo "[ftp server]"

cat $TMP_FILE | grep vsftpd
cat $TMP_FILE | grep proftpd

rm -f $TMP_FILE