update 更改 nacos 默认使用单机模式

This commit is contained in:
疯狂的狮子li
2022-08-11 19:53:06 +08:00
parent 7a886582e4
commit e19e263579

View File

@@ -32,7 +32,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class Nacos {
public static void main(String[] args) {
System.setProperty("nacos.standalone", "false");
// true 单机模式 false 为集群模式 集群模式需搭配如下参数使用
System.setProperty("nacos.standalone", "true");
System.setProperty("server.tomcat.accesslog.enabled", "false");
// 本地集群搭建使用 在此目录下创建 conf/cluster.conf 文件用于编写集群ip端口
// System.setProperty("nacos.home", "D:/nacos");