直接下载安装即可
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.1.tar.gzsha1sum elasticsearch-5.0.1.tar.gztar -xzf elasticsearch-5.0.1.tar.gzcd elasticsearch-5.0.1/./bin/elasticsearch
在终端输入 curl -XGET 'localhost:9200/?pretty'
{
"name": "Dp0oq_v",
"cluster_name": "elasticsearch",
"cluster_uuid": "6rLSu0JMTlq_YJqyhWS_xQ",
"version": {
"number": "5.0.1",
"build_hash": "080bb47",
"build_date": "2016-11-11T22:08:49.812Z",
"build_snapshot": false,
"lucene_version": "6.2.1"
},
"tagline": "You Know, for Search"
}
running as daemon 后台运行,将 pid 记录在文件 pid 中
./bin/elasticsearch -d -p pid
# 杀掉进程
kill `cat pid`
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于