Ubuntu 16 Install Elasticsearch-head Plugin

Source: Internet
Author: User
Tags install node git clone

Install node

Apt Install nodejs-legacy

Installing NPM
apt install npm
 npm install -g grunt-cli  #安装grunt命令行工具grunt-clinpm install grunt --save-dev  #安装grunt及其插件grunt -V   #查看安装版本情况
Select a directory to execute the following command, do not put the head plugin clone after the Elasticsearch plugins directory, or will error
git clone git://github.com/mobz/elasticsearch-head.git   #git下载  

CD Elasticsearch-head #进入目录

npm install  # 如果npm使用很多错误,尝试使用cnpmnpm install grunt --save  #安装grunt到模块中并保存

(1): Modify the Config/elasticsearch.yml in the Elasticsearch installation directory

# Add the following fields

http.cors.enabled: truehttp.cors.allow-origin: "*"

(2): Modify the Gruntfile.js under Elasticsearch-head

Which adds a

Hostname: ' 0.0.0.0 ' or hostname: ' * '

Ubuntu 16 Install Elasticsearch-head Plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.