CentOS搭建GitLab服务器
2014-11-15 19:01
393 查看
以下为CentOS7下安装GitLab7.4.3的全部流程
1、切换到root用户
su root
2、下载并安装GitLab
curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm sudo yum install openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo rpm -i gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm
第一条指令从GitLab官网下载安装包速度可能较慢,可以从以下备注地址下载
备选地址: 百度云盘
3、配置GitLab
sudo -e /etc/gitlab/gitlab.rb
v (修改"externval_url"之后的域名,可以是本机IP或指向本机IP的域名)
esc → shift+: → wq
sudo gitlab-ctl reconfigure
4、配置防火墙
sudo firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests
sudo systemctl reload firewalld
5、访问GitLab
直接通过第3步配置的地址或域名访问GitLab。以下为GitLab默认的账户。
用户名:root
密 码:5iveL!fe
1、切换到root用户
su root
2、下载并安装GitLab
curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm sudo yum install openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo rpm -i gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm
第一条指令从GitLab官网下载安装包速度可能较慢,可以从以下备注地址下载
备选地址: 百度云盘
3、配置GitLab
sudo -e /etc/gitlab/gitlab.rb
v (修改"externval_url"之后的域名,可以是本机IP或指向本机IP的域名)
esc → shift+: → wq
sudo gitlab-ctl reconfigure
4、配置防火墙
sudo firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests
sudo systemctl reload firewalld
5、访问GitLab
直接通过第3步配置的地址或域名访问GitLab。以下为GitLab默认的账户。
用户名:root
密 码:5iveL!fe
相关文章推荐
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- centos搭建gitlab服务器
- 2018--- (Centos7) gitlab服务器搭建与使用
- Centos7下GitLab服务器的搭建
- centos7 搭建gitlabt服务器,并将svn迁移到git
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- centos6.5上搭建gitlab服务器(亲测可用哦)
- centos7下gitlab服务器搭建
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- CentOS服务器上搭建Gitlab详解
- Centos 7搭建Gitlab服务器超详细(转)
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
- Centos7 搭建gitlab服务器
- 本地服务器Gitlab的搭建及卸载---基于centos6.5
- CentOS 7下快速安装Gitlab,搭建个人或者公司内部使用的Git服务器
- Centos7 搭建Gitlab服务器并配置项目全过程
- CentOS+Nginx+PHP+MySQL 搭建高性能的web服务器
- Ostube2.6开源 flv流媒体服务器在系统Centos5.5的搭建