服务器装人东西太多先初始化一下,
配置yum源
[root@sannian ~]# 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缓存
[root@sannian ~]# yum makecache
3、安装GitLab
[root@sannian ~]# yum -y install gitlab-ce
[root@sannian ~]# vim /etc/gitlab/gitlab.rb
启动
[root@sannian ~]# gitlab-ctl start
[root@sannian ~]# gitlab-ctl reconfigure
修改地址
[root@sannian ~]# cd /var/opt/gitlab/nginx/conf/
[root@sannian conf]# vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
[root@sannian ~]# vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
[root@sannian conf.d]# vim /etc/gitlab/gitlab.rb
[root@jiaxin eatjoys-front-major]# touch ceshi
[root@jiaxin eatjoys-front-major]# git add .
[root@jiaxin eatjoys-front-major]# git commit -m "ceshi"
[master ea3a444] ceshi
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 ceshi
[root@jiaxin 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 git@47.99.145.156:front/eatjoys-front-major.git
4e95b4c..ea3a444 master -> master