赞
踩
目录
目录
进入bin执行 gitlab-ctl restart使其生效
Index of /gitlab-ce/yum/el7/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
- wget --no-check-certificate \
- https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
yum install -y curl policycoreutils openssh-server openssh-clients
- systemctl enable sshd
- systemctl start sshd
- 安装Postfix
- Postfix是一个邮件服务器,GitLab发送邮件需要用到
- #安装postfix
- yum install -y postfix
-
- #启动postfix并设置为开机启动
- systemctl enable postfix
- systemctl start postfix
- rpm -ivh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
-
- #若弹出需要一些依赖,后面跟上--nodeps --force后安装
-
- rpm -ivh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm --nodeps --force
- vi /etc/gitlab/gitlab.rb
- # 修改external_url属性
过程稍慢,几分钟就好
gitlab-ctl reconfigure
- #查看gitlab运行状态
- gitlab-ctl status
-
- #查看gitlab版本
- cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
-
- #gitlab重启
- gitlab-ctl restart
gitlab-rake gitlab:password:reset USERNAME=root
cat /etc/gitlab/initial_root_password
http://10.222.12.17:9090/ (注:ip对应的服务器的ip,若防火墙开启,端口需放开)
自由探索
重启后稍等会再查看clone地址生效
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。