因项目需求需要在鲲鹏麒麟服务器上安装ElasticSearch7.8.0,考虑Docker方式安装比较简单,因此使用Docker方式安装
环境信息
操作系统:Kylin Linux Advanced Server release V10 (Tercel)
Docker:18.09.0
[root@server ~]# uname -a
Linux server 4.19.148+ #1 SMP Mon Oct 5 22:04:46 EDT 2020 aarch64 aarch64 aarch64 GNU/Linux
[root@server ~]#
[root@server ~]# cat /etc/kylin-release
Kylin Linux Advanced Server release V10 (Tercel)
[root@server ~]#
[root@server ~]# docker info
Containers: 9
Running: 8
Paused: 0
Stopped: 1
Images: 11
Server Version: 18.09.0
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Hugetlb Pagesize: 2MB
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: commit:93cdc66ff6636a3f8755b614978c5699a8532d20.m
runc version: 8f8796634d4feb9d8a4914d6c090ceaa869cf7b0
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.148+
Operating System: Kylin Linux Advanced Server V10 (Tercel)
OSType: linux
Architecture: aarch64
CPUs: 32
Total Memory: 62.6GiB
Name: server
ID: 6CY7:ABTW:G2C2:IH3P:GSMU:UOOZ:K6IE:YP7E:DV4F:ST6P:C7FC:EGDW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://y5ep8mo8.mirror.aliyuncs.com/
Live Restore Enabled: true
WARNING: API is accessible on http://0.0.0.0:2375 without encryption.
Access to the remote API is equivalent to root access on the host. Refer
to the 'Docker daemon attack surface' section in the documentation for
more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
[root@server ~]#
安装包
访问Docker官网https://hub.docker.com/r/amd64/elasticsearch/tags?name=7.8,拉取镜像
docker pull amd64/elasticsearch:7.8.0@sha256:4a65567332214e36b3ad7fcb0c4f00d87f16edba57d0c4f2c7938b6014041ca3
[root@hxh2 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
arm64v8/elasticsearch 7.8.0 9522ad0a773f 4 years ago 1.33GB
保存镜像信息到服务器本地
docker save -o elasticsearch-7.8.0-arm64v8.tar arm64v8/elasticsearch:7.8.0
然后下载elasticsearch-7.8.0-arm64v8.tar并传到服务器上
部署
加载镜像
[root@server ~]# docker load -i elasticsearch-7.8.0-arm64v8.tar
[root@server ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
moby/buildkit buildx-stable-1 d3fee711a716 9 days ago 209MB
arm64v8/nginx 1.27.3 e845dff95154 2 weeks ago 204MB
mongo 4.4.29 80d502872ebd 9 months ago 408MB
postgres 13.13-bullseye f17c1bab0868 12 months ago 353MB
arm64v8/mysql latest bdfb0ec4d54a 16 months ago 599MB
nacos/nacos-server v2.1.2-slim e669772aae32 21 months ago 300MB
arm64v8/redis 5.0.14 91a41e726017 2 years ago 104MB
openjdk 8u342-jre 726b45a38636 2 years ago 266MB
seataio/seata-server 1.3.0 9522c77abba9 4 years ago 151MB
arm64v8/elasticsearch 7.8.0 9522ad0a773f 4 years ago 1.33GB
biarms/mysql 5.7.30-linux-arm64v8 4f00dec165f1 4 years ago 266MB
创建实例
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" arm64v8/elasticsearch:7.8.0
检查实例运行情况
[root@server ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ebdcfb045150 arm64v8/elasticsearch:7.8.0 "/tini -- /usr/local…" 2 hours ago Up 2 hours 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp elasticsearch
eda69cbec370 arm64v8/mysql:latest "docker-entrypoint.s…" 2 days ago Up 2 days 0.0.0.0:3306->3306/tcp, 33060/tcp mysql8
ad62cee77b99 moby/buildkit:buildx-stable-1 "buildkitd" 6 days ago Up 6 days buildx_buildkit_default
a4a5cd6e4fac postgres:13.13-bullseye

最低0.47元/天 解锁文章
936

被折叠的 条评论
为什么被折叠?



