Linux-GitLab安装

GitLab是一个代码仓库,用来管理代码.

gitLab安装

环境 Centos7
1、安装git
yum -y install git
2、安装gitLab

安装方式一、下载gitlab
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-13.7.3-ce.0.el7.x86_64.rpm/download.rpm
安装方式二、
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-13.7.3-ce.0.el7.x86_64

3、配置
vim /etc/gitlab/gitlab.rb   #不设置邮箱

修改 external_url 'http://192.168.17.100'

4、生效配置和启动GitLab

使用reconfigure命令重新配置: gitlab-ctl  reconfigure

GitLab 启动、状态、重启、停止:

gitlab-ctl start
gitlab-ctl status
gitlab-ctl restart
gitlab-ctl stop

 浏览器 打开 http://192.168.17.100

 

 

至此,GitLab安装完毕

5、创建一个test项目

 

 

 

 点create project 

 

 

 至此,一个简单项目已创建好。

posted @ 2021-01-13 16:40  adminfuzw  阅读(175)  评论(0编辑  收藏  举报