标签:ons nginx art config dock docker jar cat manage
Consul-template启动nohup consul-template --consul-addr 192.168.2.168:8500 --template "/opt/nginx-1.10.1/conf/consul/ztms.ctmpl:/opt/nginx-1.10.1/conf/consul/ztms.conf:nginx -s reload" --log-level=info &
Consul-server启动
nohup consul agent -server -data-dir /tmp -node=node1 -bootstrap-expect 1 -bind=192.168.2.168 -client 192.168.2.168 -ui &
docker run -d --name ztms_debug-consul --restart=always --net=host consul agent -server -node=node1 -bootstrap-expect 1 -bind=$(ifconfig | grep 192.168.2 | awk ‘{print $2}‘) -client $(ifconfig | grep 192.168.2 | awk ‘{print $2}‘) -ui
registrator启动
docker run -d --name ztms_debug-registrator --network=host --restart=always -v /var/run/docker.sock:/tmp/docker.sock gliderlabs/registrator:latest --ip $(ifconfig | grep 192.168.2 | awk ‘{print $2}‘) consul://192.168.2.168:8500
Jenkins启动
docker run -d --name myjenkins -p 8899:8080 -v /var/jenkins_home:/var/jenkins_home -v /run/docker.sock:/run/docker.sock -v /opt/mavenrepo:/opt/mavenrepo -u root 192.168.2.196/base/jenkins:latest
ECMS-PT启动tansfer-server命令(开启了JConsole)
docker run -d --rm --name ecms_pt-transfer-server -p 7250:7250 -p 60000:60000 --cap-add=SYS_PTRACE 192.168.2.196/ecms_pt/transfer-server -Xms5G -Xmx5G -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=192.168.2.98 -Dcom.sun.management.jmxremote.rmi.port=7250 -Dcom.sun.management.jmxremote.port=7250 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar transfer-server.jar
标签:ons nginx art config dock docker jar cat manage
原文地址:https://blog.51cto.com/wangxiaoke/2421680