Installation and use of system resources monitoring tools -gtop

1) Download the package

[root@prometheus ~]# wget -c https://nodejs.org/dist/v8.9.2/node-v8.9.2-linux-x64.tar.xz

2) extract the package

[root@prometheus ~]# xz -d node-v8.9.2-linux-x64.tar.xz
[root@prometheus ~]# tar xf node-v8.9.2-linux-x64.tar -C /usr/src/
[root@prometheus ~]# mv /usr/src/node-v8.9.2-linux-x64 /usr/src/gtop

3) configuration environment variable

[root@prometheus ~]# echo "export PATH=$PATH:/usr/src/gtop/bin" >>/etc/profile
[root@prometheus ~]# source /etc/profile

4) the implementation of a global installation

[root@prometheus ~]# npm install -g cnpm --registry=https://registry.npm.taobao.org
[root@prometheus ~]# cnpm install gtop -g

5) display interface effects

[A person, a place, a song, a section of memory]

Guess you like

Origin www.cnblogs.com/lvthinks/p/12604082.html