系统相关
首页 > 系统相关> > centos7安装gitlab

centos7安装gitlab

作者:互联网

安装Postfix以发送通知邮件
yum install postfix
将postfix服务设置成开机自启动
systemctl enable postfix
启动postfix
systemctl start postfix
下载镜像
wget  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.0.0-ce.0.el7.x86_64.rpm
安装依赖项
yum install policycoreutils-python
安装gitlab
rpm -i gitlab-ce-15.0.0-ce.0.el7.x86_64.rpm
配置gitlab地址,格式http://公网ip:端口号
vim  /etc/gitlab/gitlab.rb
重载配置
gitlab-ctl reconfigure
启动
gitlab-ctl restart
默认登录
账号root,密码存放在/etc/gitlab/initial_root_password文件中

小插曲:页面一直提示Whoops, GitLab is taking too much time to respond,把8080端口改下就ok了,应该是被占用了

再吐槽下,4个g的内存被吃的只剩下一个零头。。。

标签:postfix,安装,gitlab,ce,centos7,yum,rpm,el7
来源: https://www.cnblogs.com/gltt/p/16459944.html