统信系统arm架构安装starrocks2.5.14(Docker-compose方式部署)

1、查看操作系统

bash 复制代码
cat /etc/os-release
cat /etc/os-version
uname -r

2、安装docker(离线安装)

下载地址如下,包括docker-compose 选择arm64架构

bash 复制代码
docker安装包下载目录,选择一个即可:
阿里镜像 http://mirrors.aliyun.com/docker-ce/linux/static/stable
官方下载 https://download.docker.com
docker-compose https://github.com/docker/compose/releases

下载安装包arrach64架构的 版本为28.0.1,并上传到服务器上

bash 复制代码
tar xf docker-28.0.1.tgz
cp docker/* /usr/bin/

vi /etc/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
  
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd --selinux-enabled=false --insecure-registry=127.0.0.1
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
# Uncomment TasksMax if your systemd version supports it.
# Only systemd 226 and above support this version.
#TasksMax=infinity
TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
# restart the docker process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
  
[Install]
WantedBy=multi-user.target


chmod +x /etc/systemd/system/docker.service
systemctl daemon-reload
systemctl start docker
systemctl status docker
systemctl enable docker



[root@localhost ~]# cat /etc/docker/daemon.json 
{
  "registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://registry.docker-cn.com",
    "https://mirror.ccs.tencentyun.com",
    "https://docker.nju.edu.cn",
    "https://hub-mirror.c.163.com"
  ]
}

3、安装docker-compose

下载arm64架构的docker-compose文件,将其放到/usr/local/bin目录下

4、下载arm64镜像并导入到服务器

dockerhub的镜像地址

https://hub.docker.com/layers/starrocks/allin1-ubuntu/2.5.14/images/sha256-1844ad93cec87907ea1652e98a0c122788f8bf14348c5ca646a82d5a1652c1b3

因宿主机是arm64架构的,需要下载arm64版本的starrocks镜像

bash 复制代码
docker pull starrocks/allin1-ubuntu:2.5.14@sha256:1844ad93cec87907ea1652e98a0c122788f8bf14348c5ca646a82d5a1652c1b3
docker tag ea513337bad4 starrocks/allin1-ubuntu-arm64:2.5.14
docker save -o allin1-ubuntu-arm64.tar starrocks/allin1-ubuntu-arm64:2.5.14
docker load -i allin1-ubuntu-arm64.tar

5、docker部署命令

bash 复制代码
docker run -p 9030:9030 -p 8030:8030 -p 8040:8040 -v /data/starrocks/fe:/data/deploy/starrocks/fe/data -v /data/starrocks/be:/data/deploy/starrocks/be/data -itd --name starrocks starrocks/allin1-ubuntu-arm64:2.5.14

6、使用docker-compose部署

bash 复制代码
[root@host-192-170-9-44 starrocks]# cat docker-compose.yml 
version: '2.33'
services:
  starrocks:
    image: starrocks/allin1-ubuntu-arm64:2.5.14
    container_name: starrocks
    ports:
      - "8030:8030"
      - "9020:8040"
      - "9030:9030"
    volumes:
      - /data/starrocks/fe/data:/data/deploy/starrocks/fe/data
      - /data/starrocks/fe/meta:/data/deploy/starrocks/fe/meta
      - /data/starrocks/be/data:/data/deploy/starrocks/be/data
      - /data/starrocks/be/storage:/data/deploy/starrocks/be/storage

启动命令:

bash 复制代码
docker-compose -f docker-compose.yml up -d

7、登录starrocks并配置root密码

bash 复制代码
mysql -P 9030 -h 127.0.0.1 -u root
SET PASSWORD = PASSWORD('123456')

参考starrocks官网:

https://docs.starrocks.io/docs/quick_start/shared-nothing/

相关推荐
Hellc00735 分钟前
Docker 部署 MongoDB 并持久化数据
mongodb·docker·容器
技术流Garen1 小时前
MCU与SFU:实时音视频通信架构的对比
架构·实时音视频
云上艺旅2 小时前
K8S学习之基础十五:k8s中Deployment扩容缩容
学习·docker·云原生·kubernetes·k8s
小华同学ai3 小时前
2K star!三分钟搭建企业级后台系统,这款开源Java框架绝了!
后端·架构·github
Lei活在当下4 小时前
【Android架构底层逻辑拆解】Google官方项目NowInAndroid研究(2)数据层的设计和实现之model与database
架构
福鸦4 小时前
C++ STL深度解析:现代编程的瑞士军刀
开发语言·c++·算法·安全·架构
DemonAvenger4 小时前
深入Go并发编程:Goroutine性能调优与实战技巧全解析
设计模式·架构·go
*星星之火*5 小时前
【Flink银行反欺诈系统设计方案】3.欺诈的7种场景和架构方案、核心表设计
大数据·架构·flink
洛北辰南5 小时前
系统架构设计师—系统架构设计篇—轻量级架构
架构·系统架构·ssh·ssm·轻量级架构
道法自然,人法天5 小时前
微服务的认识与拆分
微服务·云原生·架构