CentOS 7搭建GitLab
2019-11-26 19:46
1811 查看
简介:
GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务。安装方法是参考GitLab在GitHub上的Wiki页面。特点:
1.Web框架使用RubyonRails。
2.基于MIT代码发布协议。
3.需要gitolite协同工作
一、安装依赖
1.安装ssh
sudo yum install -y curl policycoreutils-pythonopenssh-server
2.将SSH服务设置成开机自启动 ,启动SSH服务
sudo systemctl enable sshd sudo systemctl start sshd
3.安装Postfix
sudo yum install postfix
4.将postfix服务设置成开机自启动,并启动
sudo systemctl enable postfix sudo systemctl start postfix
5.安装policycoreutils-python
yum install policycoreutils-python
二、安装gitlab
1.gitlab rpm包下载
centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.11.5-ce.0.el7.x86_64.rpm
2.gitlab rpm包安装
rpm -i gitlab-ce-11.11.5-ce.0.el7.x86_64.rpm
三、修改gitlab配置文件指定服务器ip和自定义端口
1.修改etc/gitlab/gitlab.rb文件中external_url的值,分配一个不会冲突的端口号,默认80
2.重置并启动GitLab
gitlab-ctl reconfigure gitlab-ctl restart
相关文章推荐
- CentOS 6.5 安装GitLab 搭建自己的Github
- Centos搭建gitlab
- CentOS 7+GitLab搭建
- CentOS系统(四)——gitlab搭建及使用
- 基于centos搭建gitlab以及设置无密码访问
- Centos 6 搭建安装 Gitlab
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- CentOS服务器上搭建Gitlab详解
- Centos6.5_x64-GitLab搭建私有GitHub
- gitlab使用rpm包环境搭建(centos7)
- centos7 搭建gitlabt服务器,并将svn迁移到git
- Centos 7搭建Gitlab服务器超详细(转)
- Centos搭建jenkins+maven+sonarqube+gitlab代码质量检测平台
- Centos6.5_x64-GitLab搭建私有GitHub
- CentOS 搭建GitLab
- centos6.5上搭建gitlab服务器(亲测可用哦)
- 基于 CentOS 7 搭建 GitLab
- centos上搭建gitLab(亲自搭建,必须滴可以)
- centos7下gitlab服务器搭建
- CentOs 7 搭建属于自己的GitLab