admin 发表于 2023-2-16 18:54:56

coentos7安装gitlab

<div id="article_content" class="article_content clearfix">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
                <div id="content_views" class="htmledit_views">
                  <p>GitLab一个开源的git仓库管理平台&#xff0c;方便团队协作开发、管理。在GitLab上可以实现完整的CI&#xff08;持续集成&#xff09;、CD&#xff08;持续发布&#xff09;流程。而且还提供了免费使用的Plan&#xff0c;以及免费的可以独立部署的社区版本(<ahref="https://gitlab.com/gitlab-org/gitlab-ce">https://gitlab.com/gitlab-org/gitlab-ce</a> )。</p>
<p>WIN 10<br> Vmware Workstation 15 Player<br> CentOS Linux release 7.6.1810<br> gitlab 13.3.6</p>
<pre id="pre-nkkAaT">
</pre>
<p># 安装依赖 sudo yum install -y curl policycoreutils-python openssh-server postfix # 启动SSH和postfix sudo systemctl enable sshd sudo systemctl start sshd sudo systemctl enable postfix sudo systemctl start postfix # 开放端口 sudo firewall-cmd --add-service&#61;ssh --permanent sudo firewall-cmd --add-service&#61;http --permanent sudo firewall-cmd --reload</p>
<p></p>
<pre id="pre-fEYcxr">
</pre>
<p>curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum install -y gitlab-ce</p>
<p></p>
<p></p>
<pre id="pre-ENyBAR">
</pre>
<p>vim /etc/gitlab/gitlab.rb external_url 'http://192.168.122.131' #这里改成你的ip和端口或者其他网址</p>
<p></p>
<pre id="pre-ieyGjR">
</pre>
<p>gitlab-ctl diff-config gitlab-ctl reconfigure gitlab-ctl status</p>
<p><br> firewall-cmd --zone&#61;public --permanent --add-port&#61;80/tcp #开放80端口&#xff0c;注意不要和其他端口重复</p>
<pre id="pre-Ct3T5H">
</pre>
<p>cat /opt/gitlab/embedded/service/gitlab-rails/VERSION #检查版本</p>
<p></p>
<ul><li></li></ul>
<ul><li></li></ul>
<p></p>
<ul><li></li></ul>
<ul><li></li></ul>
<p><br> 首次登录显示为密码设置界面&#xff0c;设置管理员密码&#xff0c;管理员账号默认username是root设置完成之后&#xff0c;刷新即可使用root账号登录&#xff0c;登陆后会进入欢迎界面。</p>
                </div>
      </div>
      <div id="treeSkill"></div>
页: [1]
查看完整版本: coentos7安装gitlab