zoukankan      html  css  js  c++  java
  • swarm 服务器安装

    apt install docker.io
    ---------------------
    --配置加速器、私有仓库地址
    ---------------------
    mkdir -p /etc/docker
    tee /etc/docker/daemon.json <<-'EOF'
    {
    "registry-mirrors": ["https://plapxez2.mirror.aliyuncs.com"],
    "insecure-registries":["docker.codedev.top:88"]
    }
    EOF
    systemctl daemon-reload
    systemctl restart docker
    ufw disable

    mkdir -p /home/deploy/log
    mkdir -p /home/deploy/upload/html
    mkdir -p /home/deploy/upload/img
    mkdir -p /home/conf/ng/cert

    --------------------上传证书文件及ng配置信息
    sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/nginx.conf root@192.168.0.77:/home/conf/ng/nginx.conf
    sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/default.conf root@192.168.0.77:/home/conf/ng/default.conf
    sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_chain.crt root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_chain.crt
    sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_private.key root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_private.key
    -------------------------
    --Manager、worker上分别运行,谨慎执行
    -------------------------
    docker swarm init
    docker network create -d overlay wl-network

    ------------
    --防火墙
    ------------
    ufw disable

  • 相关阅读:
    [恢]hdu 2005
    [恢]hdu 2004
    [恢]hdu 1093
    [恢]hdu 1092
    [恢]hdu 2008
    [恢]hdu 1091
    [恢]hdu 2006
    [恢]hdu 1089
    [恢]hdu 1094
    OGRE小记
  • 原文地址:https://www.cnblogs.com/kuailewangzi1212/p/10714158.html
Copyright © 2011-2022 走看看