• Docker中“TERM environment variable not set.”问题


    在使用top查容器内部资源利用情况时候,发现无法使用,报“TERM environment variable not set.”错误。从网上找到了解决方案,经实验有效

    root@103b5f054624:/# top
    TERM environment variable not set.
    root@103b5f054624:/# echo $TERM dumb root@103b5f054624:/# export TERM=dumb root@103b5f054624:/# top top - 08:00:41 up 20 days, 4:52, 0 users, load average: 0.02, 0.02, 0.00 Tasks: 5 total, 1 running, 4 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.1 us, 0.3 sy, 0.0 ni, 99.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 997592 total, 104704 free, 334732 used, 558156 buff/cache KiB Swap: 0 total, 0 free, 0 used. 514408 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 mysql 20 0 1122092 199356 17532 S 0.0 20.0 0:10.21 mysqld 153 root 20 0 18168 3128 2692 S 0.0 0.3 0:00.01 bash 160 root 20 0 32880 4728 3988 S 0.0 0.5 0:00.00 mysql 165 root 20 0 18172 3284 2768 S 0.0 0.3 0:00.04 bash 479 root 20 0 43164 3204 2692 R 0.0 0.3 0:00.00 top
  • 相关阅读:
    Python中使用PyMySQL
    python实现通用json导入到mysql
    python实现通用excel导入到mysql
    java优化几个小步骤
    日志添加request-id
    Nginx优化
    tomcat8 性能优化参考
    excel空格处理
    spring boot swagger ui使用 nginx 部署后无法使用问题
    Swagger2多包扫描
  • 原文地址:https://www.cnblogs.com/wxdblog/p/10239543.html
Copyright © 2020-2023  润新知