安裝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
修改執(zhí)行權(quán)限
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啟動用戶沒有權(quán)限修改 dump.rdb文件,需要加上修改權(quán)限。
通過redis-cli 命令連接redis,運行 config get dir指令 獲取文件所在位置
redis啟動用戶一般是redis,使用? chown -R [username]? 文件夾
例如:chown -R redis redis
備選解決方案:
連上redis執(zhí)行下面語句
config set stop-writes-on-bgsave-error no
安裝mysql
mysql版本:8.1.0
java配置需要加:allowPublicKeyRetrieval=true如下:【復(fù)制后注意不要換行】
url: jdbc:mysql://zudp-mysql:3306/test?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
&allowPublicKeyRetrieval=true
安裝nginx
nginx版本:1.25