麒麟/天翼云系統(tǒng) 安裝docker & compose

安裝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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容