您当前的位置: 首页 >  linux

江湖有缘

暂无认证

  • 0浏览

    0关注

    446博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Linux系统轻量级监控工具Linux dash的安装方法

江湖有缘 发布时间:2022-05-19 23:54:45 ,浏览量:0

Linux系统监控工具Linux dash的安装方法
  • 一、Linux dash介绍
  • 二、初始环境安装
    • 1.系统版本
    • 2.安装apche
    • 3.安装python
    • 4.防火墙与selinux配置
      • ①selinux关闭
      • ②防火墙配置
  • 三、下载linux dash
    • 1.下载软件包
    • 2.重启httpd
  • 四、使用python方法启动程序
    • 1.进入index.py所在目录
    • 2.后台启动程序
    • 3.查看后台任务
  • 五、web界面访问
  • 六、配置账户
    • 1.httpd配置文件新增配置
    • 2.新增.htaccess文件
    • 3.设置用户密码
    • 4.重启服务
  • 七、重启登录web

一、Linux dash介绍

Linux-dash是一个低开销的、基于Web的Linux服务器监控系统

二、初始环境安装 1.系统版本
[root@server-01 ~]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"


2.安装apche
yum -y install httpd  安装apache
systemctl enable --now httpd 开启服务

3.安装python
yum -y intsall python php php-fpm 
4.防火墙与selinux配置 ①selinux关闭
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
②防火墙配置
systemctl stop firewalld.service

centos6老版本关闭

# service iptables stop
# chkconfig iptables off
三、下载linux dash 1.下载软件包
cd /var/www/html
git clone https://github.com/afaqurk/linux-dash.git



2.重启httpd
systemctl restart httpd
四、使用python方法启动程序 1.进入index.py所在目录
cd  /var/www/html/linux-dash/app/server
2.后台启动程序
nohup python index.py &
3.查看后台任务
[root@192 server]# jobs
[1]+  Running                 nohup python index.py &
[root@192 server]# 

五、web界面访问

在这里插入图片描述

六、配置账户 1.httpd配置文件新增配置
[root@192 server]# vi /etc/httpd/conf.d/dash.conf
[root@192 server]# cat /etc/httpd/conf.d/dash.conf


Options FollowSymLinks

AllowOverride All

Order allow,deny

allow from all



2.新增.htaccess文件
vi /var/www/html/linux-dash/.htaccess
AuthType Basic

AuthName "Restricted Files"

AuthUserFile /var/www/html/linux-dash/.htpasswd

Require valid-user
3.设置用户密码
[root@192 server]# htpasswd -c /var/www/html/linux-dash/.htpasswd testuser
New password: 
Re-type new password: 
Adding password for user testuser

4.重启服务
systemctl restart httpd
七、重启登录web

在这里插入图片描述

关注
打赏
1665849170
查看更多评论
立即登录/注册

微信扫码登录

0.0376s