GitLab install

centos installation:

1.

sudo yum install -y curl policycoreutils-python openssh-server
2.
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.5-ce.0.el7.x86_64.rpm
3.
rpm -i gitlab-ce-12.9.5-ce.0.el7.x86_64.rpm

4.
~/.bash_profile, 然后source ~/.bash_profile
export LC_ALL="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"

 

5.

vim  /etc/gitlab/gitlab.rb

external_url "http://ip:port"

6.

gitlab-ctl   reconfigure

gitlab-ctl   restart

7. using ip to login into web page.

 

Docker installation:

docker pull gitlab/gitlab-ce

docker run -d  -p 8443:443 -p 8999:80 -p 2222:22 --name gitlab --restart always -v /opt/soft/docker_gitlab/config:/etc/gitlab -v /opt/soft/docker_gitlab/logs:/var/log/gitlab -v /opt/soft/docker_gitlab/data:/var/opt/gitlab gitlab/gitlab-ce

 

ref:

username : root

pwd: 5iveL!fe

 

上一篇:Hadoop-2.7.6版本集群安装与环境配置


下一篇:[论文阅读笔记] A validated physical model for real-time simulation of soft robotic snakes