本文仅适合Javashop 7.0 docker部署
工具putty,linux基础不再讲述
重启docker服务 service docker restart
关闭docker 管理控制台 docker service scale base_portainer=0
关闭redis docker service scale redis=0
关闭elasticsearch docker service scale elasticsearch_elasticsearch=0
docker service scale elasticsearch_elastic_data=0
关闭rabbitmq docker service scale rabbitmq_manager=0
docker service scale rabbitmq_node=0
关闭基础服务 docker service scale base_consul=0
关闭静态页 docker service scale resty_redis_openresty=0
关闭nginx转发 docker service scale gateway_node=0
关闭api docker service scale api_config=0
docker service scale api_base=0
docker service scale api_buyer=0
docker service scale api_seller=0
docker service scale api_manager=0
docker service scale api_consumer=0
关闭ui
Docker环境 docker service scale ui_admin=0
docker service scale ui_buyer-pc=0
docker service scale ui_buyer-wap=0
docker service scale ui_seller=0
非docker环境 pm2 stop buyer-pc
pm2 stop buyer-wap
pm2 delete buyer-pc
pm2 delete buyer-wap
启动docker 管理控制台 docker service scale base_portainer=1
启动redis docker service scale redis=6
组建redis集群 /opt/docker/script/redis.sh
启动elasticsearch docker service scale elasticsearch_elasticsearch=1
间隔1分钟后再启动data节点
docker service scale elasticsearch_elastic_data=2
启动rabbitmq docker service scale rabbitmq_manager=1
间隔1分钟后再启动node节点
docker service scale rabbitmq_node=2
启动基础服务 docker service scale base_consul=1
启动静态页 docker service scale resty_redis_openresty=1
启动nginx转发 docker service scale gateway_node=1
启动api docker service scale api_config=1
间隔1分钟再启动下面的api
docker service scale api_base=1
docker service scale api_buyer=1
docker service scale api_seller=1
docker service scale api_manager=1
docker service scale api_consumer=1
启动ui
Docker环境 docker service scale ui_admin=1
docker service scale ui_buyer-pc=1
docker service scale ui_buyer-wap=1
docker service scale ui_seller=1
非docker环境 cd /opt/v70/ui/buyer/pc/themes/b2b2c_v5
pm2 start npm --name "buyer-pc" -- run start
cd /opt/v70/ui/buyer/wap/themes/default
pm2 start npm --name "buyer-wap" -- run start