Bonky Zhu
If someone is able to show me that what I think or do is not right, I will happily change, for I seek the truth, by which no one was ever truly harmed. It is the person who continues in his self-deception and ignorance who is harmed.

重新在服务器上安装Gitlab

因为服务器以前部署过Gitlab,只需要重装下 Gitlab 就可以了,其他的配置推荐可以看看参考资料。

卸载

sudo gitlab-ctl stop
sudo rpm -e gitlab-ce

ps -ef |grep gitlab
kill -9 [所显示的进程ID]  # 查看gitlab进程,杀掉第一个守护进程

find / -name gitlab | xargs rm -rf  # 删除所有包含gitlab的文件及目录


安装

首先开放防火墙对应的端口:

firewall-cmd --zone=public --add-port=9090/tcp --permanent
firewall-cmd --reload


直接利用一下命令进行就可以了

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
sudo EXTERNAL_URL="172.16.15.56:9090" yum install -y gitlab-ee


然后在重载配置:

sudo gitlab-ctl reconfigure


然后启动服务:

sudo gitlab-ctl restart   


访问对应的网址即可访问 Gitlab

参考资料

  1. gitlab+maven+spingboot+jenkin实现自动化部署
  2. [Gitlab搭建内网服务器一篇就够](
Share

You may also like...

发表评论