-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
45 lines (26 loc) · 1.01 KB
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#/bin/bash
yum upgrade -y
yum install git docker -y
git config --global user.name "zhangyuan"
git config --global user.email "[email protected]"
rm -rf ~/.ssh/
ssh-keygen -t rsa -N '' -C "[email protected]" -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
read -p "请打开 https://github.com/settings/keys 添加一个新key"
systemctl docker start
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
mkdir -p ~/opt/log/nginx/www_newyou ~/opt/log/nginx/www_0x8c
mkdir -p ~/opt/conf/nginx
mkdir -p ~/opt/root
cd ~/opt/conf/nginx
git clone [email protected]:Demired/certificate.git
cd ~/opt/root
git clone -b gh-pages [email protected]:Demired/Demired.github.io.git
git clone [email protected]:Demired/h5.git
git clone [email protected]:Demired/newyou.git
cd ~
git clone [email protected]:Demired/base-docker.git
cd base-docker
docker-compose up -d