NMON安装

  1. 先简单地介绍系统的环境:
    [oracle@tpwms ~]$ lsb_release -a
    LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
    Distributor ID: CentOS
    Description: CentOS release 6.8 (Final)
    Release: 6.8
    Codename: Final

  2. 下载 Nmon 的地址:http://nmon.sourceforge.net/pmwiki.php?n=Site.Download
    下载 Nmonanalyser 的地址:https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/nmon_analyser

  3. 安装

    1. 用root用户登录系统,建立目录:#mkdir /nmon
    2. 通过FTP将下载的nmon工具上传至服务器 192.168.40.212目录/nmon下。
    3. 解压文件:#tar -xvfz nmon16g_x86.tar.gz
    4. 执行命令:#mv nmon16g_x86_rhel72 nmon
    5. 执行授权命令:#chmod +x nmon
  4. 运行
    [root@tpwms nmon]# ./nmon
    ./nmon: /lib64/libc.so.6: version `GLIBC_2.14’ not found (required by ./nmon)
    发现版本太低在:http://www.gnu.org/software/libc/ 下载新版本
    我下载了此版本
    -rw-r–r-- 1 root root 30468265 Nov 22 2018 glibc-2.14.1.tar.gz
    [root@tpwms nmon]# tar -xzvf glibc-2.14.1.tar.gz
    [root@tpwms glibc-2.14.1]# mkdir build
    [root@tpwms glibc-2.14.1]# cd build
    [root@tpwms build]# …/configure --prefix=/opt/glibc-2.14.1
    [root@tpwms build]# make -j4
    [root@tpwms build]# sudo make install
    [root@tpwms build]# export LD_LIBRARY_PATH=/opt/glibc-2.14.1/lib:$LD_LIBRARY_PATH
    [root@tpwms build]# cd /nmon/

[root@tpwms nmon]# ./nmon
+nmon-16g---------------------Hostname=tpwms--------Refresh= 0secs —01:49.54-------------------------------------------------+

_ __ _ __ ___ ___ _ __ For help type H or …
To stop nmon type q to Quit
------------------------------
CentOS release 6.8 (Final) LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:gra
g-4Vendor=GenuineIntel Model=Intel® Xeon® CPU E7- 4820 @ 2.00GHz
MHz=1997.834 bogomips=3995.66 lscpu:CPU=16 Little Endian
ProcessorChips=1 PhyscalCores=8 Sockets=2 Cores=8 Thrds=1
VirtualCPUs =16 MHz=1997 max=0 min=0
Use these keys to toggle statistics on/off:
c = CPU l = CPU Long-term - = Faster screen updates
C = " WideView U = Utilisation + = Slower screen updates
m = Memory V = Virtual memory j = File Systems
d = Disks n = Network . = only busy disks/procs
r = Resource N = NFS h = more options
k = Kernel t = Top-processes q = Quit
------------------------------------------------------------------------------------------------------------------------------

±-----------------------------------------------------------------------------------------------------------------------------+

运行正常。

猜你喜欢

转载自blog.csdn.net/qq_33947052/article/details/84335553