参考博客:https://blog.csdn.net/zsg88/article/details/79051211?%3E
5.0版本之后不支持直接把插件包放入es安装目录的plugin目录下。需要单独安装。
1005 wget https://github.com/mobz/elasticsearch-head/archive/master.zip --下载head插件
1007 unzip master.zip
1009 cd elasticsearch-head-master/
1012 curl --silent --location https://rpm.nodesource.com/setup | bash - ----安装nodejs yum源。
1014 yum search nodejs
1015 yum -y install nodejs
1016 node -v
1017 npm -v
1018 npm install grunt --save-dev ----使用ntp安装grunt。
1019 npm install
1020 grunt -version
1021 vim Gruntfile.js
1022 cat /etc/centos-release
1023 service iptables status
1024 grunt server & --启动grunt。