日记 [2007年02月01日]webmin安装

mkdir /var/www/html/qmailmrtg
wget [url]http://shupp.org/software/qmailmrtg7-4.2.tar.gz[/url]
wget [url]http://shupp.org/patches/qmailmrtg7-4.2-cfg.patch[/url]
tar xzvf tar/qmailmrtg7-4.2.tar.gz
cd qmailmrtg7-4.2
patch -p0 < ../qmailmrtg7-4.2-cfg.patch
make
make install
Edit qmail.mrtg.cfg and change all instances of FQDN to your hostname
cp qmail.mrtg.cfg /etc/
indexmaker --section=title /etc/qmail.mrtg.cfg > /var/www/html/qmailmrtg/index.html
# 运行三次mrtg,前两次会报错
env LANG=C mrtg /etc/qmail.mrtg.cfg
env LANG=C mrtg /etc/qmail.mrtg.cfg
env LANG=C mrtg /etc/qmail.mrtg.cfg
# 增加到计划任务crontab
0-55/5 * * * * env LANG=C /usr/bin/mrtg /etc/qmail.mrtg.cfg > /dev/

你可能感兴趣的:(职场,休闲,webmin)