ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Consul配置 ``` //是否启用consul $config['consul_enable'] = true; //node的名字,每一个都必须不一样 $config['consul']['node_name'] = 'SD-1'; //consul的data_dir默认放在临时文件下 $config['consul']['data_dir'] = "/tmp/consul"; //consul join地址,可以是集群的任何一个,或者多个 $config['consul']['start_join'] = ["192.168.9.38"]; //本地网卡地址 $config['consul']['bind_addr'] = "192.168.8.47"; //监控服务 $config['consul']['watches'] = ['MathService']; //发布服务 //$config['consul']['services']=['MathService:8081']; ```