Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS7 installs and deploys Shipyard management system (self-testing is available)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

I. deployment of basic environment

# step 1: install some necessary system tools

Yum install-y yum-utils device-mapper-persistent-data lvm2

# Step 2: add software source information

Yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

# Step 3: update and install Docker-CE

Yum makecache fast

Yum-y install docker-ce

# Step 4: enable Docker service

Service docker start

# Step 5: add firewall rules, otherwise you won't see containers and images

Firewall-cmd-zone=public-permanent-add-port=2375/tcp

# Step 6: restart the firewall

Firewall-cmd-reload

II. Deployment

# Step 1: download the basic image

# docker pull alpine

# docker pull rethinkdb

# docker pull microbox/etcd

# docker pull ehazlett/curl

# docker pull rancher/rancher-agent

# docker pull rancher/rancher

# docker pull shipyard/docker-proxy

# docker pull swarm

# docker pull shipyard/shipyard

# Step 2: download Chinese image

Docker pull dockerclub/shipyard

# Step 3: download the official one-click deployment script

Wget https://shipyard-project.com/deploy (expired)

Download address: https://download.csdn.net/download/aiqixiao1015/10651507 (latest download address)

# Step 4: replace Controller with Chinese version

Sed-I 's/shipyard\ / shipyard:latest/dockerclub\ / shipyard:latest/g' shipyard-deploy

# Step 5: deployment

Sh shipyard-deploy

3. Basic operation:

# step 1: delete Shipyard environment

Cat deploy | ACTION=remove bash

# step 2: add node hosts

Curl https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd:// master server IP:4001 bash

[to add the section of CentOS6.x system, upgrade kernel and docker first, as follows]

A. Upgrade kernel: refer to: https://blog.51cto.com/zlyang/2052942

B. Upgrade docker:

1. Download docker:wget https://get.docker.com/builds/Linux/x86_64/docker-1.10.3

2. Stop the docker service:

Service docker stop

3. Replace docker binaries

Cp / usr/bin/docker / usr/bin/docker_bak

Cp docker-1.9.1 / usr/bin/docker

4. Start the docker service

Service docker start

5. Add a Shipyard node

Curl https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd:// master server IP:4001 bash

IV. Interface display

Login:

Container:

Mirror:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report