zl程序教程

您现在的位置是:首页 >  工具

当前栏目

es安装后的服务配置问题

2023-06-13 09:16:29 时间
[root@localhost es]# rpm -ivh elasticsearch-6.4.0.rpm 
警告:elasticsearch-6.4.0.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID d88e42b4: NOKEY
准备中...                          ################################# [100%]
Creating elasticsearch group... OK
Creating elasticsearch user... OK
正在升级/安装...
   1:elasticsearch-0:6.4.0-1          ################################# [100%]
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
 sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch
[root@localhost etc]# chown -R es:es /etc/elasticsearch
[root@localhost etc]# chown -R es:es /usr/share/elasticsearch
[root@localhost etc]# chown -R es:es /var/lib/elasticsearch
[root@localhost etc]# chown -R es:es /var/log/elasticsearch
[root@localhost etc]# chown -R es:es /etc/sysconfig/elasticsearch

vim elasticsearch.yml

cluster.name: elasticsearch
node.name: elasticsearch
network.host: 0.0.0.0
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"