File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 83
83
- ` sudo yum install -y htop ` (htop 官方源是没有的,所以如果能下载下来就表示已经使用了第三方源)
84
84
85
85
86
+ ### 禁用源
87
+
88
+ - 编辑:` vim /etc/yum.repos.d/elasticsearch.repo `
89
+ - 把 enabled=1 改为 enabled=0
90
+
91
+ ```
92
+ [elasticsearch-6.x]
93
+ name=Elasticsearch repository for 6.x packages
94
+ baseurl=https://artifacts.elastic.co/packages/6.x/yum
95
+ gpgcheck=1
96
+ gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
97
+ enabled=1
98
+ autorefresh=1
99
+ type=rpm-md
100
+ ```
101
+
86
102
> 资料:
87
103
88
104
- < https://wiki.centos.org/zh/PackageManagement/Yum/Priorities >
Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ elasticsearch hard memlock unlimited
61
61
62
62
#### 开始安装
63
63
64
+ - 检查:` rpm -qa | grep elastic `
65
+ - 卸载:` rpm -e --nodeps elasticsearch `
64
66
- 官网 RPM 安装流程(重要,以下资料都是对官网的总结):< https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html >
65
67
- 导入 KEY:` rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch `
66
68
- 新建文件:` vim /etc/yum.repos.d/elasticsearch.repo `
67
- - 内容如下:
69
+ - 内容如下(6.x) :
68
70
69
71
```
70
72
[elasticsearch-6.x]
@@ -77,6 +79,19 @@ autorefresh=1
77
79
type=rpm-md
78
80
```
79
81
82
+ - 内容如下(5.x):
83
+
84
+ ```
85
+ [elasticsearch-5.x]
86
+ name=Elasticsearch repository for 5.x packages
87
+ baseurl=https://artifacts.elastic.co/packages/5.x/yum
88
+ gpgcheck=1
89
+ gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
90
+ enabled=1
91
+ autorefresh=1
92
+ type=rpm-md
93
+ ```
94
+
80
95
- 开始安装:` yum install -y elasticsearch ` ,预计文件有 108M 左右,国内网络安装可能会很慢,慢慢等
81
96
- 安装完后会多了一个:elasticsearch 用户和组
82
97
- 设置 java 软链接:` ln -s /usr/local/jdk1.8.0_181/jre/bin/java /usr/local/sbin/java `
You can’t perform that action at this time.
0 commit comments