Centos7搭建gitlab
  9JAbpsyjiaas 2023年11月02日 24 0

1·、安装ssh服务:yum install -y curl policycoreutils-pythonopenssh-server

 

Centos7搭建gitlab_bash

 

 2、启动ssh服务并设置为开机自启:

  systemctl enable sshd

  systemctl start sshd

Centos7搭建gitlab_bash_02

 3、添加http服务到firewalld,pemmanent表示永久生效

Centos7搭建gitlab_开机自启_03

 

 4、安装Postfix以发送通知邮件,安装命令:yum -y install postfix

 

Centos7搭建gitlab_开机自启_04

 

 5、将postfix服务设置成开机自启动:

  systemctl enable postfix

  systemctl start postfix

6、配置gitlab安装源:curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash

7、安装gitlab:sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-jh(https://gitlab.example.com修改为自己的ip地址)

注意:除非您在安装过程中指定了自定义密码,否则将随机生成一个密码并存储在 /etc/gitlab/initial_root_password 文件中(出于安全原因,24 小时后,此文件会被第一次 ​​gitlab-ctl reconfigure​​ 自动删除,因此若使用随机密码登录,建议安装成功初始登录成功之后,立即修改初始密码)。使用此密码和用户名 ​​root​​ 登录。

Centos7搭建gitlab_git_05

 

9、修改url:vi  /etc/gitlab/gitlab.rb

Centos7搭建gitlab_bash_06

 

 10、重置并启动gitlab:

  gitlab-ctl reconfigure

  gitlab-ctl restart

Centos7搭建gitlab_bash_07

 

 11、通过网页访问

Centos7搭建gitlab_bash_08

 

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  4koL3J55wyKx   2023年11月13日   35   0   0 icogitCentOS
  9E2BTpjt8nym   2023年12月06日   34   0   0 WindowsgitCentOS
  a2cU6wh5pQPw   2023年11月13日   25   0   0 shellphpbash
  3M67F8YJLxn2   2023年11月13日   30   0   0 vimgitc++
  3OWcH55z3bwR   2023年11月02日   83   0   0 gitphpnginx
9JAbpsyjiaas
作者其他文章 更多