elasticsearch安装(centos 8)

1、下载elasticsearch

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.0.0-darwin-x86_64.tar.gz

2、解压下载的包

tar -xzf elasticsearch-8.0.0-darwin-x86_64.tar.gz
cd elasticsearch-8.0.0/ 

3、设置elasticsearch家目录

vim ~/.bashrc 

在文件最后一行添加: ES_HOME=/家目录/elasticsearch-8.0.0, 然后执行

source ~/.bashrc 

4、启动elasticsearch服务

./bin/elasticsearch 

如果系统启动 不报错,访问下面地址:

curl --cacert $ES_HOME/config/certs/http_ca.crt -u elastic https://localhost:9200

会提示

Enter host password for user 'elastic': 

这个用户的密码是启动服务的时候,会打印出来(可以翻看启动时的日志):

 

绿色的就是密码,输入密码后,将得到下面信息:

这就表示安装成功了。 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值