mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-06 20:38:35 +00:00
update 更改 nacos 默认使用单机模式
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user