zoukankan      html  css  js  c++  java
  • 日常工作小工具

    页面显示磁盘空间使用情况--agedu

    说明
    操作手册

    # 安装依赖
    [root@node1 ~]# yum -y install gcc gcc-c++
    # 下载包
    [root@node1 ~]# wget https://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-20200705.2a7d4a2.tar.gz
    # 编译安装
    [root@node1 ~]# tar -zxvf agedu-20200705.2a7d4a2.tar.gz
    [root@node1 ~]# cd agedu-20200705.2a7d4a2
    [root@node1 agedu-20200705.2a7d4a2]# ./configure
    [root@node1 agedu-20200705.2a7d4a2]# make && make install
    
    # 使用
    [root@node1 agedu-20200705.2a7d4a2]# yum -y install screen
    保留一个会话
    [root@node1 agedu-20200705.2a7d4a2]# screen -S test111
    [root@node1 agedu-20200705.2a7d4a2]# agedu -s /      # -s指定扫描位置,这里扫描根
    [root@node1 agedu-20200705.2a7d4a2]# agedu -w --address 192.168.1.xx:9999    # -w输入一个网页连接,注意,这里不能以nobup 或 & 将其放入后台运行
    或者
    [root@node1 agedu-20200705.2a7d4a2]# agedu -w --address 192.168.1.xx:9999 --auth none    # 关闭认证,如果不加端口号会生成一个随机端口用浏览器访问
    
    将screen窗口关闭重新打开一个黑窗口的连接
    
    [root@node1 ~]# screen -list
    There is a screen on:
    	14059.test111	(Detached)            ====>14059需要注意,再次恢复窗口时要用到
    1 Socket in /var/run/screen/S-root.
    
    
    # 关闭screen中打开的agedu
    [root@node1 ~]# screen -r 14059
    ctrl + c 结束掉进程即可 
    
    
    [root@node1 ~]# netstat -anpt | grep :9999
    tcp        0      0 192.168.1.111:9999      0.0.0.0:*               LISTEN      14071/agedu 
    
    浏览器访问:192.168.1.111:9999
    



    欢迎加入QQ群一起讨论Linux、开源等技术

  • 相关阅读:
    ex01 温度转换1
    12 字典的遍历在 Python2 与 Python3 中区别
    11 序列中有多个最值时会索引出哪个
    10 isalpha() 对于字母的定义
    09 Python3 的深拷贝与浅拷贝
    08 in
    07 len()
    06 “杠零”与空字符
    导航点击字体变色
    清除浮动
  • 原文地址:https://www.cnblogs.com/smlile-you-me/p/15258155.html
Copyright © 2011-2022 走看看