在这里做一个 munin 的安装教材。。。
我会用 ubuntu 12.04 LTS 服务器为基础。。。
1. 安装 apache 和 munin- sudo apt-get update
- sudo apt-get install apache2
- sudo apt-get install munin munin-node
复制代码
2. 安装 munin 后,您可以从浏览器 http://127.0.0.1/munin 或 http://$hostname/IP$/munin 浏览 munin。但是,是被禁止的,因为 munin 只允许本地区域访问。您可以打开和编辑 /etc/munin/apache.conf的。
- sudo mcedit /etc/munin/apache.conf
复制代码
把 Allow from 127.0.0.1 ::1 换去 Allow from all
- Alias /munin /var/cache/munin/www
- <Directory /var/cache/munin/www>
- Order allow,deny
- # Allow from localhost 127.0.0.0/8 ::1
- Allow from all
- Options None
- # This file can be used as a .htaccess file, or a part of your apache
- # config file.
- #
- # For the .htaccess file option to work the munin www directory
- # (/var/cache/munin/www) must have "AllowOverride all" or something
- # close to that set.
- #
- # AuthUserFile /etc/munin/munin-htpasswd
- # AuthName "Munin"
- # AuthType Basic
- # require valid-user
- # This next part requires mod_expires to be enabled.
- #
- # Set the default expiration time for files to 5 minutes 10 seconds from
- # their creation (modification) time. There are probably new files by
- # that time.
- #
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault M310
- </IfModule>
- </Directory>
复制代码3. 几分钟后,你的数据图表将会出现在 munin 的网页里。
本帖最后由 hata_ph 于 6-6-2013 12:20 PM 编辑
|