# 中文官网: https://nacos.io/zh-cn/docs/quick-start-docker.html ####### 开始 ###### # sql下载: https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql # 补充sql语句 create database nacos_config default character set utf8mb4 collate utf8mb4_unicode_ci; use nacos_config; # 执行sql mysql -uxx -pxx < nacos-mysql.sql git clone https://github.com/nacos-group/nacos-docker.git cd nacos-docker # cat env/nacos-standlone-mysql.env PREFER_HOST_MODE=hostname MODE=standalone SPRING_DATASOURCE_PLATFORM=mysql MYSQL_SERVICE_HOST=172.21.0.2 MYSQL_SERVICE_DB_NAME=nacos_config MYSQL_SERVICE_PORT=3306 MYSQL_SERVICE_USER=root MYSQL_SERVICE_PASSWORD=root MYSQL_SERVICE_DB_PARAM=characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false # 启动 docker-compose -f example/standalone-mysql-8.yaml up # 首页(账户密码nacos/nacos) http://127.0.0.1:8848/nacos/ # nacos获取配置(tenant=命名空间ID) curl -X GET "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=one&group=DEFAULT_GROUP&tenant=0e81d353-f4c6-4b42-"



