CentOS7上搭建GitLib

十年热恋 提交于 2019-12-13 11:11:22

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

# 安装所需的软件包
sudo yum install -y curl policycoreutils-python openssh-server
# 设置开机自启
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
# 或者关闭防火墙
iptables -F
# 邮件服务
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
# 可能下载不下来,不过可以手动安装
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

# 或者手动安装,gitlab下载地址:
https://docs.gitlab.com/omnibus/manual_install.html

# 修改域名
vim /etc/gitlab/gitlab.rb
#需要修改的内容
external_url 'http://xxxx'
#重新配置GitLab
gitlab-ctl reconfigure
#查看gitlab状态
 gitlab-ctl status
# 重启gitlab
gitlab-ctl restart 
#首次登录可以使用root登录,密码自设
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!