Linux监控系统linux-dash安装和使用小结
2015-05-13 15:48
555 查看
1. 概况
Linux-dash是一个低开销的、基于Web的Linux服务器监控系统。Linux-dash的界面采用了widget布局,它直观地展示了Linux服务器的当前整体概况,包括内存和磁盘使用情况、网络、安装软件、用户、运行进程等。
Linux-dash不是最先进的监控工具,它的优点在于容易部署,使用轻便。
2. 环境准备
我的操作系统环境是CentOS 6.4,已经预装了Apache 2.2.15。如果系统没有安装Apache,就需要进行安装:
# yum install -y httpd
同样,如果系统没有安装PHP,就需要进行安装:
# yum install -y php
我的PHP版本是:5.3.3。
如果后续希望从外部浏览器访问,还需要设置防火墙。
最简单方法就是直接关闭防火墙:
# service iptables stop
# chkconfig iptables off
3. 安装linux-dash
下载linux-dash源码:# cd /var/www/html
# git clone https://github.com/afaqurk/linux-dash.git
启动HTTP服务:
# service httpd start
4. 使用linux-dash
浏览器直接访问:http://10.111.121.38/linux-dash就可以查看到Linux服务器的当前整体概况了,非常方便实用。
5. 设置密码保护
因为涉及到系统敏感信息,所以最好为该页面设置密码保护。① 首先,编辑Apache配置文件,并新增如下内容:
# vi /etc/httpd/conf/httpd.conf
<Directory /var/www/html/linux-dash>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
② 接下来,在linux-dash目录下新建.htaccess文件,并新增如下内容:
# vi /var/www/html/linux-dash/.htaccess
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /var/www/html/linux-dash/.htpasswd
Require valid-user
③ 然后,为testuser这个用户设置密码:
# sudo htpasswd -c /var/www/html/linux-dash/.htpasswd testuser
④ 最后,重启HTTP服务:
# service httpd restart
再次访问linux-dash页面时,就需要输入正确的用户名和密码,才能够查看到Linux服务器的当前整体概况了。
参考资料:
1.《How To Install Linux Dash on Ubuntu 14.04》,https://www.digitalocean.com/community/tutorials/how-to-install-linux-dash-on-ubuntu-14-04相关文章推荐
- linux下系统资源监控软件Nmon的使用和安装
- Linux下安装和使用系统监控工具 Glances
- Linux如何安装使用dstat监控工具以监控系统
- 如何在CentOS/RHEL中安装基于Web的监控系统 linux-dash
- 如何在CentOS/RHEL中安装基于Web的监控系统 linux-dash
- Linux下安装使用NMON监控、分析系统性能
- 简单Linux系统监控小工具linux-dash安装与体验
- Linux下安装使用NMON监控、分析系统性能
- 在Linux中安装是使用系统性能监控软件Nmon
- Linux中以sar命令监控系统的使用教程
- Linux---Ubuntu系统安装(使用技巧)
- 监控软件Nagios的服务器端在Linux系统上的安装和配置方法
- 第二章 Linux系统安装 - VMware虚拟机安装、卸载与使用
- Linux系统下安装rz/sz命令及使用说明
- Linux下使用NMON监控、分析系统性能
- Linux下安装使用sar工具来获取系统运行状态
- Linux系统下安装rz/sz命令及使用说明
- Linux系统下安装rz/sz命令及使用说明
- 关于linux - Centos 7 系统下使用PXE网络的方式(pxe+dhcpd+tftp+httpd)安装操作系统