sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="GitLab服務器的公網IP地址" yum install -y gitlab-ce
登陸GitLabhtml
建立Projectpython
yum install git
使用ssh-keygen生成密鑰文件.ssh/id_rsa.pub,再將公鑰文件id-rsa.pub中的內容粘帖到GitLab服務器的SSH-key的配置中。linux
ssh key添加完成:git
項目地址,該地址在進行clone操做時須要用到:sql
簡單配置docker
git config --global user.name "上海駐雲"
git config --global user.email "support@jiagouyun.com"
git clone git@iZbp1h7fx16gkr9u4gk8v3Z:root/test.git
上傳文件vim
cd test/
echo 「test」 > /root/test.sh
cp /root/test.sh ./
git add test.sh
git commit -m 「test.sh」
git push -u origin master