安装docker
下载docker二进制包
在home目录下新建一个data文件夹
cd /home/data
wget https://download.docker.com/linux/static/stable/aarch64/docker-24.0.6.tgz
解压安装包得到docker目录
tar -zxvf docker-24.0.6.tgz
将docker目录下所有文件mv到/usr/bin目录下
sudo cp docker/* /usr/bin/
启动dockerd
sudo dockerd &
如果遇到启动报如下错:failed to find iptables,运行以下指令
yum install iptables -y
安装compose
wget https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-linux-aarch64
将文件移动到 /usr/bin
mv docker-compose-linux-aarch64 /usr/bin/docker-compose
修改执行权限
chmod +x /usr/bin/docker-compose
安装redis
redis版本:7.2.1
注意事项,安装启动后报错
Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException:
MISCONF Redis is configured to save RDB snapshots,
but it's currently unable to persist to disk.
Commands that may modify the data set are disabled,
because this instance is configured to report errors
during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option).
Please check the Redis logs for details about the RDB error.
解决方案:
通过分析得知:是redis启动用户没有权限修改 dump.rdb文件,需要加上修改权限。
通过redis-cli 命令连接redis,运行 config get dir指令 获取文件所在位置
redis启动用户一般是redis,使用 chown -R [username] 文件夹
例如:chown -R redis redis
备选解决方案:
连上redis执行下面语句
config set stop-writes-on-bgsave-error no
安装mysql
mysql版本:8.1.0
java配置需要加:allowPublicKeyRetrieval=true如下:【复制后注意不要换行】
url: jdbc:mysql://zudp-mysql:3306/test?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
&allowPublicKeyRetrieval=true
安装nginx
nginx版本:1.25