文档:https://nacos.io/zh-cn/docs/deployment.html
1-安装 nacos
1.1-解压
tar -zxvf nacos-server-2.2.3.tar.gz -C /usr/local
1.2-开启鉴权
cd /usr/local/nacos/conf vim application.properties
开启鉴权
# nacos.core.auth.enabled=false # 改成 nacos.core.auth.enabled=true
值必须是base64字符串
# ~~!.Lyra0*~~!.Lyra0*~~!.Lyra0*~~!.Lyra0*~~!.Lyra0*~~!.Lyra0*~~!.Lyra0*~~!.Lyra0* nacos.core.auth.plugin.nacos.token.secret.key=fn4hLkx5cmEwKn5+IS5MeXJhMCp+fiEuTHlyYTAqfn4hLkx5cmEwKn5+IS5MeXJhMCp+fiEuTHlyYTAqfn4hLkx5cmEwKn5+IS5MeXJhMCo=
nacos.core.auth.server.identity.key=nacos nacos.core.auth.server.identity.value=9B9qbcFhei3XAg$1VnV+
1.3-配置独立数据库
#*************** Config Module Related Configurations ***************# ### If use MySQL as datasource: ### Deprecated configuration property, it is recommended to use `spring.sql.init.platform` replaced. spring.datasource.platform=mysql # spring.sql.init.platform=mysql ### Count of DB: db.num=1 ### Connect URL of DB: db.url.0=jdbc:mysql://192.168.108.115:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC db.user.0=nacos db.password.0=1Q2w3e4r$
1.2.3-单机启动
cd /usr/local/nacos/bin sh startup.sh -m standalone
标签:core,db,v2.2,Nacos,auth,nacos,安装,###,Lyra0 From: https://www.cnblogs.com/ganqiyin/p/17631956.html