es安装后的服务配置问题

2023-01-04 16:29:28 浏览数 (1)

代码语言:javascript复制
[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
代码语言:javascript复制
[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: "*"

0 人点赞