1、es的启动等命令
cd /etc/init.d
./elasticsearch restart
2、es的配置文件
/etc/elasticsearch/elasticsearch.yml
cluster.name: es-cluster
node.name: es-1
node.attr.rack: r1
path.data: /data/es
path.logs: /data/eslogs
bootstrap.memory_lock: false
network.host: 0.0.0.0
http.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.0.1"]
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 1
http.cors.enabled: true
http.cors.allow-origin: "*"
bootstrap.system_call_filter: false
3、elasticHD在centos安装出现的问题
unzip elasticHD_linux_amd64.zip
cd ElasticHD
chmod 0777 ElasticHD
./ElasticHD -p 0.0.0.0:9800
exec: "xdg-open": executable file not found in $PATH
解决办法:
yum install xdg-utils
nohup ./ElasticHD -p 0.0.0.0:9800 &
访问http://192.168.0.1:9800
image.png
网友评论