1.安装java环境
2.安装elasticsearch
cd /usr/local/src
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.tar.gz
tar -xvf elasticsearch-1.3.4.tar.gz
cd elasticsearch-1.3.4
./bin/elasticsearch
访问http://localhost:9200即可访问
3.设置开机自启动
下载elasticsearch-servicewrapper:https://github.com/elasticsearch/elasticsearch-servicewrapper
service文件夹放在elasticsearch-1.3.4/bin下即可
安装:bin/service/elasticsearch install
启动:bin/service/elasticsearch start
4.配置文件
bin/service/elasticsearch.conf
时间: 2024-10-14 05:11:10