Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Web-based monitoring system linux-dash in CentOS/RHEL

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to install Web-based monitoring system linux-dash in CentOS/RHEL". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to install the Web-based monitoring system linux-dash in CentOS/RHEL.

Installation

First of all, we need to enable the EPEL warehouse.

Next, we need to install nginx with the following command.

Sudo yum install nginx

Install php-fpm components

Sudo yum install git php-common php-fpm

Now we will configure Linux-dash in nginx. We create / etc/nginx/conf.d/linuxdash.conf as follows.

Sudo vim / etc/nginx/conf.d/linuxdash.confserver {server_name $domain_name; listen 8080; root / var/www; index index.html index.php; access_log / var/log/nginx/access.log; error_log / var/log/nginx/error.log; location ~ *\. (?: xml | ogg | mp3 | mp4 | ogv | svg | svgz | eot | otf | woff | css | js | jpg | jpeg | gif | png) ${try_files $uri = 404; expires max; access_log off; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate" } location / linux-dash {index index.html index.php;} # PHP-FPM via sockets location ~\ .php (/ | $) {fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_split_path_info ^ (. +?\ .php) (/. *) $; fastcgi_pass unix:/var/run/php-fpm.sock; if (!-f $document_root$fastcgi_script_name) {return 404;} try_files $uri $uri/ / index.php?$args; include fastcgi_params;}}

The next step is to configure php-fpm. Open / etc/php-fpm.d/www.conf with an editor.

Sudo vim / etc/php-fpm.d/www.conf

Make sure the "listen", "user" and "group" fields are set as follows. You can leave the other configurations unchanged.

. . Nginx = / var/run/php-fpm.sockuser = nginxgroup = nginx. . .

Now we are going to download and install linux-dash in / var/www.

Git clone https://github.com/afaqurk/linux-dash.gitsudo cp-r linux-dash/ / var/www/sudo chown-R nginx:nginx / var/www

Next, restart Nginx and php-fpm.

Sudo service nginx restartsudo service php-fpm restart

Set nginx and php-fpm to boot automatically.

Sudo chkconfig nginx onsudo chkconfig php-fpm on

In this example, we configure linux-dash using TCP port 8080. Therefore, make sure that the firewall does not block the 8080 TCP port.

Monitoring Linux Server with linux-dash

You can now access Linux-dash by typing http://:8080/linux-dash/ in your browser.

The web panel contains different components, each showing unique system properties. You can customize the appearance of the web panel or turn off some components.

At this point, I believe you have a deeper understanding of "how to install Web-based monitoring system linux-dash in CentOS/RHEL". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report