一、安装docker
1.更新软件源列表
sudo apt-get update
2.安装软件包依赖
sudo apt install apt-transport-https ca-certificates curl software-properties-common
3.在系统中添加Docker的官方密钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4.添加Docker源,选择stable长期稳定版
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
5.再次更新源列表
sudo apt-get update
6.查看可以安装的Docker版本
sudo apt-cache policy docker-ce
7.开始安装Docker(ce表示社区版)
sudo apt install docker-ce
8.查看安装的Docker版本
docker -v
9.设置开机自启动docker
sudo systemctl enable docker
二、安装mysql 8.0
https://www.zhangshengrong.com/p/O3aA7qEKX4/
https://blog.csdn.net/sinat_41721615/article/details/99417075
三、安装nacos
docker pull nacos/nacos-server sudo docker run -d \
-e MODE=standalone \
-e SPRING_DATASOURCE_PLATFORM=mysql \
-e MYSQL_SERVICE_HOST=192.168.0.79 \
-e MYSQL_SERVICE_PORT=3306 \
-e MYSQL_SERVICE_USER=root \
-e MYSQL_SERVICE_PASSWORD=250399 \
-e MYSQL_SERVICE_DB_PARAM="characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&serverTimezone=UTC" \
-e MYSQL_SERVICE_DB_NAME=nacos \
-p 8848:8848 \
-v /home/shihai/soft/nacos/logs:/home/nacos/logs \
-v /home/shihai/soft/nacos/conf:/home/nacos/conf \
-v /home/shihai/soft/nacos/data:/home/nacos/data \
--restart=always \
--name nacos \
nacos/nacos-server
四、安装redis
sudo docker pull redis:latest
sudo docker run --name redis -p 6379:6379 -d redis
五、安装rabbitmq
docker pull rabbitmq:3-management
docker run --name rabbitmq0 -p 5672:5672 -p 15672:15672 rabbitmq:3-management
标签:sudo,nacos,apt,home,docker,ubuntu18.04,安装 From: https://www.cnblogs.com/shihai/p/17329420.html