sudo yum update -y && sudo yum upgrade -y
https://packages.gitlab.com/gitlab/gitlab-ce
ce表示开源
el表示centos 选64位
el8对应CentOS8
本教程以centos8为例,在服务器中,下载centos8的rpm包:
cd / && sudo yum install -y wget && sudo wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-16.5.0-ce.0.el8.x86_64.rpm/download.rpm
sudo yum install policycoreutils-python-utils -y
rpm -ivh gitlab-ce-16.5.0-ce.0.el8.x86_64.rpm
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=15-0
vim /etc/gitlab/gitlab.rb
#配置项目的访问地址和端口
external_url 'http://XXX.XXX.XXX.XXX:6868'
#由于默认端口被占用,这里指定监听端口为 6868
nginx['listen_port'] = 6868
gitlab_pages['listen_proxy'] = "XXX.XXX.XXX.XXX:6868"
sudo gitlab-ctl reconfigure
gitlab-ctl status
9、Gitlab安装初始化后,默认账户名是 root ,密码存放在配置里。查看初始化密码命令:
#查看gitlab初始密码
cat /etc/gitlab/initial_root_password
http://xxx.xxx.xxx.xxx:6868
12、关闭注册功能,账号只能由管理员添加创建,转到 http://xxx.xxx.xxx.xxx:6868/admin/application_settings/general,关闭 已启用注册功能,点击底下的 保存更改。
13、创建用户,转到 http://xxx.xxx.xxx.xxx:6868/admin/ ,点击用户,添加用户:
原文地址:https://blog.csdn.net/LordForce/article/details/134024205
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_30958.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。