久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Linux中部署GitLab版本控制

      1.版本控制是指對(duì)軟件開(kāi)發(fā)過(guò)程中各種程序代碼,配置文件及說(shuō)明文檔等文件變更的管理,是軟件配置管理的核心思想之一。

      2.常用的版本控制工具:
      gitlab
      subversion

      3.gitlab部署

      //配置yum源
      [root@linuxidc ~]# cd /etc/yum.repos.d/
      [root@linuxidc yum.repos.d]# curl -o 163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
      [root@linuxidc yum.repos.d]# sed -i ‘s/$releasever/7/g’ /etc/yum.repos.d/163.repo
      [root@linuxidc yum.repos.d]# sed -i ‘s/^enabled=.*/enabled=1/g’ /etc/yum.repos.d/163.repo

      //安裝依賴包
      [root@linuxidc ~]# yum -y install epel-release
      [root@linuxidc ~]# yum -y install epel-release git
      [root@linuxidc ~]# yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python

      //啟動(dòng)postfix服務(wù)并設(shè)置開(kāi)機(jī)自啟
      [root@linuxidc ~]# systemctl restart postfix
      [root@linuxidc ~]# systemctl enable postfix

      //下載gitlabd 的rpm包
      [root@linuxidc ~]# cd /usr/src/
      [root@linuxidc ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/y um/el7/gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

      //安裝gitlab
      [root@linuxidc src]# rpm -ivh gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

      //修改配置文件
      [root@linuxidc src]# vim /etc/gitlab/gitlab.rb
      ………………
      external_url ‘http://192.168.209.12’ #將此處設(shè)為gitlab的服務(wù)器IP地址或者域名
      ………………

      //重載配置文件并重啟gitlab
      [root@linuxidc src]# gitlab-ctl reconfigure
      [root@linuxidc src]# gitlab-ctl restart

      //查看當(dāng)前的gitlab版本
      [root@linuxidc src]# head -1 /opt/gitlab/version-manifest.txt
      gitlab-ce 11.2.1

      //設(shè)置管理員密碼
      [root@linuxidc ~]# gitlab-rails console production
      user = User.where(id: 1).first            //id為1的是超級(jí)管理員
      user.password = ‘linuxidc’          //密碼必須至少8個(gè)字符
      user.save!                        //保存修改,若無(wú)問(wèn)題將返回true
      exit

      4.gitlab管理
      在瀏覽器中使用gitlab服務(wù)器的IP訪問(wèn),頁(yè)面如下圖所示:

      Linux中部署GitLab版本控制

      Linux中部署GitLab版本控制

      更多GitLab相關(guān)教程見(jiàn)以下內(nèi)容

      CentOS7安裝GitLab、漢化及使用  http://www.sfodin.cn/Linux/2017-11/148223.htm
      CentOS 7安裝部署GitLab服務(wù)器  http://www.sfodin.cn/Linux/2017-06/144990.htm
      CentOS 7.x上GitLab搭建詳細(xì)教程  http://www.sfodin.cn/Linux/2017-12/149766.htm
      CentOS 7安裝部署GitLab服務(wù)器  http://www.sfodin.cn/Linux/2017-06/144990.htm
      CentOS 7使用Docker搭建GitLab服務(wù)器  http://www.sfodin.cn/Linux/2018-04/151725.htm
      Ubuntu 16.04搭建GitLab服務(wù)器 http://www.sfodin.cn/Linux/2018-01/150319.htm

      快速學(xué)會(huì)CentOS配置GitLab  http://www.sfodin.cn/Linux/2018-08/153345.htm

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)