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