代码拉取完成,页面将自动刷新
同步操作将从 腾讯蓝鲸智云/bk-ci 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Download the appropriate Consul package for your operating system and unzip it.
Upload Consul to the server. After modifying its permission, put it in the /usr/local/sbin/ directory as global application.
# Modify the permission of Consul
chmod 755 ./consul
# Put Consul in /usr/local/sbin/
cp ./consul /usr/local/sbin/
consul agent -server -data-dir={consul_directory} -ui -http-port={consul_http_port} -datacenter=bkdevops -domain=bkdevops -bootstrap -client=0.0.0.0
# For example, Consul server IP=CONSOL_SERVER_IP
consul agent -server -data-dir=/data/consul -ui -http-port=8080 -datacenter=dc -domain=ci -bootstrap -client=0.0.0.0
consul agent -data-dir={consul_directory} -datacenter=dc -domain=ci -join={server_IP} -bind={local_IP}
# For example, Consul client IP=CONSUL_CLIENT_IP
consul agent -data-dir=/data/consul -datacenter=dc -domain=ci -join=CONSOL_SERVER_IP -bind=CONSUL_CLIENT_IP
If your service is also deployed on Consul server agent, you can connect to the server directly without starting Consul client agent.
Parameter Name | Parameter Description |
---|---|
consul_directory | Data directory of Consul |
consul_http_port | Port for Consul’s web UI |
server_IP | IP address of the server |
local_IP | IP address of the current machine |
Go to this website for verification: http://{service_IP}:8080
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。