部署监控工具linux-dash

1.查看系统版本

cat /etc/os-release

安装apache并开启服务

yum -y install httpd

systemctl enable –now httpd

2.安装python

yum -y install python php php-fpm

3.在/var/www/html目录下下载安装包

cd /var/www/html

git clone https://github.com/afaqurk/linux-dash.git

4.查看linux-dash源码目录

tree -L 2 ././

systemctl restart httpd

5.访问linux-dash监控界面

ip/linux-dash/app

6.或使用python启动程序

进入index-py目录

cd /var/www/html/linux-dash/app/server

停止httpd服务防止80端口冲突

systemctl stop httpd

nohup python index.py &

jobs

直接访问ip(80)

ps:为linux-dash配置密码

cat /etc/httpd/conf.d/dash.conf

conf.d(configure directory)配置文件目录

7.创建htaccess文件

vim /var/www/html/linnux-dash/app/ .htacess

AuthName “Restricted Files”

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

Require valid-user

htpasswd -c /var/www/html/linux-dash/app/.htpasswd admin

8.systemctl restart httpd

 

 

 

 

 

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容