官網(wǎng) https://nacos.io/zh-cn/docs/deployment.html
Github下載地址https://github.com/alibaba/nacos/releases
wget https://github.com/alibaba/nacos/releases/download/2.2.0/nacos-server-2.2.0.tar.gz
解壓nacos-server-2.0.3.tar.gz
tar -zxvf nacos-server-2.0.3.tar.gz
配置mysql數(shù)據(jù)庫nacos-server-2.0.3.tar.gz
/usr/local/nacos/conf/application.properties
*************** Config Module Related Configurations ***************#
If use MySQL as datasource:
spring.datasource.platform=mysql
Count of DB:
db.num=1
Connect URL of DB:
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=nacos
db.password=123456
單機模式下運行Nacos
sh startup.sh -m standalone