标签:proc git 有用 port limit centos count 执行命令 lan
一、可以在网上下载对饮的版本:https://github.com/elastic/elasticsearch,本次安装的是5.5.3。
1 [root@localhost elasticsearch]# ls 2 elasticsearch-5.5.3 elasticsearch-analysis-ik-5.5.3 3 elasticsearch-5.5.3.tar.gz elasticsearch-analysis-ik-5.5.3.zip
二、将下载的.tar.gz解压,然后进入elasticsearch-5.5.3/config/目录下配置elasticsearch.yml。
三、因为我先暂时配的是单节点,所有就采用默认的方式,如果想自定义,将#号去掉就行。
1 # ---------------------------------- Cluster ----------------------------------- 2 # 3 # Use a descriptive name for your cluster: 4 # 5 #cluster.name: my-application 6 # 7 # ------------------------------------ Node ------------------------------------ 8 # 9 # Use a descriptive name for the node: 10 # 11 #node.name: node-1 12 # 13 # Add custom attributes to the node:
如果elasticsearch启动报错,这里需要修改,具体问后面再贴出
1 #bootstrap.memory_lock: true 2 bootstrap.memory_lock: false 3 bootstrap.system_call_filter: false 4 # 5 # Make sure that the heap size is set to about half the memory available 6 # on the system and that the owner of the process is allowed to use this 7 # limit. 8 # 9 # Elasticsearch performs poorly when the system is swapping the memory. 10 # 11 # ---------------------------------- Network ----------------------------------- 12 # 13 # Set the bind address to a specific IP (IPv4 or IPv6): 14 # 15 #network.host: 192.168.0.1 16 network.host: 0.0.0.0
注意如果不修network.host,默认使用的是localhost,如http://localhost:9200,9200是elasticsearch的默认端口,如果想通过外网访问,则需要将network.host 设置成 0.0.0.0或者部署该elasticsearch服务器的ip地址。
1 # Set a custom port for HTTP: 2 # 3 #http.port: 9200
4 #transport.tcp.port:9301
这个跟集群节点布置有关系,如果同一台服务器布置了多个节点,则需要修改 http.port,如 http.port:9201, transport.tcp.port:9301。
四、启动 elasticsearch.
1 [hoojjack@localhost elasticsearch-5.5.3]$ bin/elasticsearch 2 [2017-09-29T10:48:15,620][INFO ][o.e.n.Node ] [] initializing ... 3 ......
五、出现的问题:
1、
bin/elasticsearch-plugin install x-pack
【Reference】
[1] http://blog.csdn.net/sinat_28224453/article/details/51134978
[2] http://www.dajiangtai.com/community/18136.do?origin=csdn-geek&dt=1214
[3] http://www.cnblogs.com/ShawnYuki/p/6818677.html
标签:proc git 有用 port limit centos count 执行命令 lan
原文地址:http://www.cnblogs.com/hoojjack/p/7608182.html