1、下载
https://github.com/alibaba/nacos/releases
链接:https://pan.baidu.com/s/1j5iD38tpc7QH8hJX2Oq0pg
提取码:y70e
2、安装
tar -zxvf acos-server-1.3.2.tar.gz -C /usr/local/
3、启动
cd /usr/local/nacos/bin/
# 启动
sh startup.sh -m standalone
4、登陆
http://192.168.2.103:8848/nacos/ 账密:nacos/nacos
5、配置 nacos数据源为mysql
# SQL 地址
https://github.com/alibaba/nacos/blob/1.3.2/config/src/main/resources/META-INF/nacos-db.sql
vim conf/application.properties
# 事先装好 mysql
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=root
db.password=123456
6、Docker 启动
docker run --name nacos \
-e MODE=standalone \
-p 8848:8848 \
-d nacos/nacos-server:1.4.1