centos7 gitlaba快速安装

Gitlab代码库,对于大多数开发者应该不陌生了吧,它是Devpos里面重要的一环,现在我们做一个快速的安装。

yum install -y curl policycoreutils-pythonopenssh-server wget
systemctl enable sshd  
systemctl start sshd

yum install postfix -y
systemctl enable postfix
systemctl start postfix

yum install policycoreutils-python -y

下载Gitlab安装包,并且安装

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

centos7 gitlaba快速安装_第1张图片
添加自己的绑定域名,默认是80端口,如果80已经使用,请自定义其它端口
vi /etc/gitlab/gitlab.rb

external_url 'http://gitlab.sdfsdf.com'

配置,启动gitlab

gitlab-ctl reconfigure
gitlab-ctl restart

直接按ip访问http://xxx.xxx.xxx.xxx,默认修改root的超级管理员密码。修改之后再登录
centos7 gitlaba快速安装_第2张图片

用root用户登录centos7 gitlaba快速安装_第3张图片
后面的操作,就是建立项目源码包,用户上传源代码。

你可能感兴趣的:(devops,linux系统运维,centos,linux,运维)