分类: 系统运维
2006-03-01 15:43:06
--output=/usr/local/httpd/htdocs/mrtg/index.html \
--title='Traffic Analysis' \
六.编辑/usr/local/httpd/conf/httpd.conf加入目录授权
/usr/local/httpd/htdocs/mrtg/>
AllowOverride AuthConfig
七.编写授权文件:
#vi /usr/local/httpd/htdocs/mrtg/.htaccess
AuthUserFile /usr/local/httpd/htdocs/mrtg/.htpasswd ;1
AuthGroupFile /usr/local/httpd/htdocs/mrtg/.htgroup ;2
AuthType Basic ;3
AuthName Secure ;4
Require group staff ;5
Require valid-user ;6
说明:用户验证在.htpaccess中写入1346语句
组验证在.htpaccess中写入2345语句
#htpasswd -c /usr/local/httpd/htdocs/mrtg/.htpasswd user
#vi .htgroup
Jerry:staff admin
Research:jerry zhang
八.测试mrtg
/usr/local/sbin/snmpd restart
/usr/local/httpd/bin/apachectl restart
九.写入计划任务 #crontab -e