centos8安装gitlab ゝ一纸荒年。 2021-07-26 15:51 613阅读 0赞 1,安装依赖 yum install -y curl policycoreutils-python openssh-server centos8没有policycoreutils-python yum源,不用管 2,启动ssh并设置为开机自启动 `systemctl enable sshd` `systemctl start sshd` 3,添加http服务到firewalld,pemmanent表示永久生效,若不加--permanent系统下次启动后就会失效 `systemctl start firewalld` `firewall-cmd --permanent --add-service=http` `systemctl reload firewalld` 4,启动postfix `systemctl enable postfix` `systemctl start postfix` 5,下载gitlab `wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm` 6,安装 rpm -ivh`gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm` 成功如图: ![d754b28d9c55bcec4b5d491efb2b2b66.png][] 7,编辑ip和端口 `vim /etc/gitlab/gitlab.rb` ![28144fc2c19747ffa6b358b509f1b2ed.png][] `gitlab-ctl reconfigure` `gitlab-ctl restart` 8,访问gitlab ip+端口 如果输入端口和ip一直无法响应,可以关闭防火墙 `systemctl stop firewalld` 如果访问502,查看 [https://www.cnblogs.com/stronger-xsw/p/12804002.html][https_www.cnblogs.com_stronger-xsw_p_12804002.html] 重新配置并启动 `gitlab-ctl reconfigure` `gitlab-ctl restart` 开启: `gitlab-ctl start` 关闭: `gitlab-ctl stop` 9,成功如图: ![0b19bcbcb290ffba4c144b2c63f0da1a.png][] 10,第一次登录需要修改root密码, 密码8位以上,修改完就可以登录 使用设置的新密码,登录 ![fbeeb90de9ce7bb64f5ae8dd072e0031.png][] 其他操作类似添加账号,仓库等等自己百度 [d754b28d9c55bcec4b5d491efb2b2b66.png]: /images/20210726/73ab9d29f2cc41938bca90f3b6d1c751.png [28144fc2c19747ffa6b358b509f1b2ed.png]: /images/20210726/e9d5eef45ed24cab8b7fea3e8d6891c9.png [https_www.cnblogs.com_stronger-xsw_p_12804002.html]: https://www.cnblogs.com/stronger-xsw/p/12804002.html [0b19bcbcb290ffba4c144b2c63f0da1a.png]: /images/20210726/9e011205212c44d5a099591f846d13c3.png [fbeeb90de9ce7bb64f5ae8dd072e0031.png]: /images/20210726/8c5b66b0543448b38d5274c119c0ec3e.png
还没有评论,来说两句吧...