增加集群服务器ha配置;更新pyinstaller打包后找不到依赖库的bug.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"server" : true,
|
||||
"datacenter" : "consul-ADC01",
|
||||
"data_dir" : "/var/consul-external",
|
||||
"encrypt" : "h1fHoHnJ+n+764ObqTNVjw==",
|
||||
"disable_update_check" : true,
|
||||
"bootstrap" : true,
|
||||
"log_file" : "/var/consul-external/log/consul_external.log",
|
||||
"retry_join" : ["192.168.200.5"],
|
||||
"retry_interval" : "10s"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Systemd unit file for default tomcat
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Consul-cluster
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/opt/consul-cluster/etc/systemd/consul.conf
|
||||
ExecStartPre=/opt/consul-cluster/script/consul_bind_ip_generate.sh
|
||||
ExecStart=/opt/consul-cluster/bin/consul agent -config-dir /opt/consul-cluster/etc/ -config-file /opt/consul-cluster/etc/consul/config-server.json -bind ${CONSUL_BIND_ADDRESS} -client 0.0.0.0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user