gitlab部署

gitlab部署

1.安装依赖

yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python

2.启动postfix

systemctl start postfix
systemctl enable postfix

3.下载安装rpm包

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

4.修改配置文件

vim /etc/gitlab/gitlab.rb
修改端口号,本地80/8080已被占用
external_url 'http://192.168.15.6:9000'
Advanced settings
unicorn['port']=9001

gitlab-ctl stop|start|restart|reconfigure
gitlab-ctl status

卸载gitlab

ps -ef | grep gitlab
kill -9
rpm -e gitlab-ce
find / -name gitlab | xargs rm -rf

参考链接

https://www.cnblogs.com/yizhiweiyan/p/13155408.html
https://www.cnblogs.com/woaiyunwei/p/12940140.html#112-gitlab安装与使用
部署、备份及恢复
https://www.cnblogs.com/you-men/p/13126530.html

原文地址:https://www.cnblogs.com/kylingx/p/13638373.html