随笔 - 137  文章 - 1  trackbacks - 0
<2020年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿

随笔分类

随笔档案

收藏夹

调试技巧

搜索

  •  

最新评论

阅读排行榜

评论排行榜

CentOS 7 安装GitLab

GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目.
Gitlab中文网:https://www.gitlab.com.cn/
Gitlab官网:https://about.gitlab.com/
Gitlab官方文档:https://docs.gitlab.com/ce/README.html

  • CentOS7配置SSH

http://blog.csdn.net/wh211212/article/details/52932776

  • CentOS7配置SMTP

http://blog.csdn.net/wh211212/article/details/53040620

安装Gitlab

参考链接:https://www.gitlab.com.cn/downloads/#centos7

  • 安装配置依赖项

使用Postfix来发送邮件,在安装期间请选择'Internet Site'. 您也可以用sendmai或者 配置SMTP服务 并 使用SMTP发送邮件.在 Centos 6 和 7 系统上, 下面的命令将在系统防火墙里面开放HTTP和SSH端口.(参考上面链接和下面操作)

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 
  • 添加GitLab仓库,并安装到服务器上
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce # 手动下载rpm包安装 curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpm rpm -i gitlab-ce-XXX.rpm 
  • 启动GitLab
sudo gitlab-ctl reconfigure 
  • 使用浏览器访问GitLab

首次访问GitLab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面.默认的管理员账号是root,如果你想更改默认管理员账号,请输入上面设置的新密码登录系统后修改帐号名.

 



作者:运维前线
链接:https://www.jianshu.com/p/7fd054527b7e
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted on 2018-04-26 11:50 长戟十三千 阅读(324) 评论(0)  编辑 收藏 引用 所属分类: 编程技巧随笔

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理