fedora做网站服务器,Fedora 23下Gitlab服务器搭建

Fedora 23下Gitlab服务器搭建

1. Install and configure the necessary dependencies

sudo yum install curl policycoreutils openssh-server openssh-clients

sudo systemctl enable sshd

sudo systemctl start sshd

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

2. Add the GitLab package server and install the package

通过下面链接下载『gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm』:http://pan.baidu.com/s/1o6UoN1o

有想法的同学可以下载『https://packages.gitlab.com/gitlab/gitlab-ce/』自己想要的版本

下载完成之后当然是安装了:sudo rpm -i gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm

3. Configure and start GitLab

sudo gitlab-ctl reconfigure

4. Browse to the hostname and login

Username: root

Password: 5iveL!fe

通过浏览器访问:http://localhost  或者  http://ip

登录成功,首次登录需修改密码

配置:

sudo mkdir -p /etc/gitlab

sudo touch /etc/gitlab/gitlab.rb

sudo chmod 600 /etc/gitlab/gitlab.rb

Configuring the external URL for GitLab:

向:/etc/gitlab/gitlab.rb 文件中添加:

external_url "http://gitlab.example.com"

更改配置后,执行如下命令(加载配置生效):

sudo gitlab-ctl reconfigure

服务打开、关闭、重启:

# Start all GitLab components

sudo gitlab-ctl start

# Stop all GitLab components

sudo gitlab-ctl stop

# Restart all GitLab components

sudo gitlab-ctl restart

更多GitLab相关教程见以下内容:

GitLab 的详细介绍:请点这里

GitLab 的下载地址:请点这里

0b1331709591d260c1c78e86d0c51c18.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值