Installation configuration of the dash Web Monitoring system for Linux system

Source: Internet
Author: User
Tags fpm disk usage node server git clone

Linux-dash is a lightweight web-based monitoring panel designed for Linux. This program displays a variety of system properties in real time, such as CPU load, RAM usage, disk usage, speed, network connectivity, RX/TX bandwidth, logged-in users, running processes, and so on. It does not store long-term statistics. Because it has no back-end database. It supports PHP, Node.js, and go for web display. Here the PHP platform for the demonstration as an example, a simple understanding of its installation and use.

First, install Nginx and PHP

1, yum source installation related software

Yum install nginx git php-common php-fpm
Nginx does not exist in the default Redhat/centos source, using a Third-party source Epel

2. Clone Linux-dash Package

git clone https://github.com/afaqurk/linux-dash.git
sudo cp-r linux-dash//var/www/
sudo chown-r www:www/var/www

Second, the configuration

1, nginx Configuration

Now we're going to configure Linux-dash in the Nginx. We created the following/etc/nginx/conf.d/linuxdash.conf as follows:

# vim/etc/nginx/conf.d/linuxdash.conf
server {
Listen 80;
server_name www.111cn.net;
root/var/www;
Index index.php index.html index.htm;
Location/{
Try_files $uri $uri//index.php $args;
}
Location ~* ^.+\. (ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar| MID|MIDI|WAV|BMP|RTF) $ {
Access_log off;
Log_not_found off;
Expires Max;
}
Location ~ \.php$ {
Fastcgi_index index.php;
Fastcgi_keep_conn on;
Include Fastcgi_params;
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_param script_filename $document _root$fastcgi_script_name;
}
}

2, PHP-FPM Configuration

Make sure that the following "Listen", "User" and "group" fields are set. You can keep the other configurations unchanged.

# vim/etc/php-fpm.d/www.conf
......
Listen =127.0.0.1:9000
user = www
Group= www
......
3. Configure Services

Reboot the Nginx and PHP-FPM service and configure it to boot from.

Service Nginx Restart
Service PHP-FPM Restart
Chkconfig Nginx on
Chkconfig PHP-FPM on

Third, the use

You can now enter http://linux-dash/in the browser to access Linux-dash. I am here to http://www.111cn.net/, the specific effect is as follows (click the picture to see larger image):

Linux-dash

More can view the demo page.

Iv. Other

1, other web display platform

In addition to the PHP web based display, it also supports the node.js, go way display, see the Linux-dash git page, using the following methods:

#node. JS Platform
NPM Install
Node server
#go平台下
Go Run index.go
Use the Go binary method
Go build &&/server-h

Note: From its source pack, it is already considering a Python based Web presentation that can view python-server.py files, but runs the view using the Python python-server.py file http://localhost : 8081, found unable to check the normal (based on Redhat6 python2.6).

2. Overview

Linux-dash because it is based on a database-free way to display, its own foreground display depends on the performance of the host, through the Server/moudle script file to obtain the appropriate data after the show in the foreground, so the speed is not fast. And can not view historical data, relatively less chicken. On the one hand, the procedure is relatively concise, some things are still worth our reference.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.