wget https://npm.taobao.org/mirrors/node/v11.8.0/node-v11.8.0-linux-x64.tar.xz tar -xvf node-v11.8.0-linux-x64.tar.xz cd node-v11.8.0-linux-x64/bin ln -s /root/node-v11.8.0-linux-x64/bin/node /usr/bin/node ln -s /root/node-v11.8.0-linux-x64/bin/npm /usr/bin/npm
ln -s /root/node-v11.8.0-linux-x64/bin/cnpm /usr/bin/cnpm
监测环境变量是否生效: node -v npm install -g cnpm --registry=https://registry.npm.taobao.org npm install -g grunt-cli npm install grunt --save-dev git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head/ npm install grunt --save-dev cnpm install //启动 nohup cnpm run start &> run.log & firewall-cmd --add-port=9100/tcp --permanent firewall-cmd --reload
http://172.16.54.95:9100
image.png