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 --restart always --hostname 192.168.10.105 --name gitlab --restart always -v /home/spc1/Desktop/gitlab/config:/etc/gitlab -v /home/spc1/Desktop/gitlab/logs:/var/log/gitlab -v /home/spc1/Desktop/gitlab/data:/var/opt/gitlab --privileged=true gitlab/gitlab-ce

 

ref:

username : root

pwd: 5iveL!fe

 

posted @ 2020-05-13 10:47  退役产品汪  阅读(185)  评论(0编辑  收藏  举报