linux下安装配置gitlab-ce-9.0.5

来源:互联网 发布:一厢情愿的感情知乎 编辑:程序博客网 时间:2024/05/22 13:22

原文链接: linux下安装配置gitlab-ce-9.0.5

1. 安装配置依赖

sudo dnf install curl policycoreutils openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld

postfix[可选]:
官网描述:
If you install Postfix to send email please select ‘Internet Site’ during setup. Instead of using Postfix you can also use Sendmail or configure a custom SMTP server and configure it as an SMTP server.

sudo dnf install postfixsudo systemctl enable postfixsudo systemctl start postfix

2. 下载安装包

清华镜像

curl -O https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.1.2-ce.0.el7.x86_64.rpm

官网
浏览器打开页面https://packages.gitlab.com/gitlab/gitlab-ce/packages/ol/7/gitlab-ce-9.0.5-ce.0.el7.x86_64.rpm, 点击右上角[Download]按钮下载

3. 安装

rpm -ivh gitlab-ce-9.0.5-ce.0.el7.x86_64.rpm

4. 配置端口号

编辑/etc/gitlab/gitlab.rb文件, 修改以下参数

external_url 'http://localhost:8888'unicorn['port'] = 8887gitlab_workhorse['auth_backend'] = "http://localhost:8887"

5. 配置并启动GitLab

sudo gitlab-ctl reconfigure
0 0