继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

gitlab 安装自己的git服务器

lifeng_881888
关注TA
已关注
手记 45
粉丝 42
获赞 356
  1. 安装并配置必要的依赖关系

On CentOS 7 (and RedHat/Oracle/Scientific Linux 7), the commands below will also open HTTP and SSH access in the system firewall.

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 systemctl reload firewalld

Next, install Postfix to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed.

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

  1. Add the GitLab package repository and install the package

Add the GitLab package repository.

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee

打开地址 默认的
Username: root
Password: 5iveL!fe

3 启动gitlab gitlab-ctl reconfigure

gitlab-ctl restart

gitlab-ctl stop

查看gitlab状态 gitlab-ctl status

打开App,阅读手记
3人推荐
发表评论
随时随地看视频慕课网APP

热门评论

感谢分享 哈哈哈

安装gitlab实在太恶心了,在容器化时代,只要装一个docker,然后安装什么都简单了,只要pull一下,so easy

查看全部评论