Linux安装gitlab
服务器装人东西太多先初始化一下,
配置yum源
[[email protected] ~]# vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
2、更新本地yum缓存
[[email protected] ~]# yum makecache
3、安装GitLab
[[email protected] ~]# yum -y install gitlab-ce
[[email protected] ~]# vim /etc/gitlab/gitlab.rb
启动
[[email protected] ~]# gitlab-ctl start
[[email protected] ~]# gitlab-ctl reconfigure
修改地址
[[email protected] ~]# cd /var/opt/gitlab/nginx/conf/
[[email protected] conf]# vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
[[email protected] ~]# vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
[[email protected] conf.d]# vim /etc/gitlab/gitlab.rb
[[email protected] eatjoys-front-major]# touch ceshi
[[email protected] eatjoys-front-major]# git add .
[[email protected] eatjoys-front-major]# git commit -m "ceshi"
[master ea3a444] ceshi
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 ceshi
[[email protected] eatjoys-front-major]# git push -u origin master
Counting objects: 4, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 255 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To [email protected]:front/eatjoys-front-major.git
4e95b4c..ea3a444 master -> master