LINUX——gitlab版本控制,關於項目組管理,項目使用者及許可權管理的使用

來源:互聯網
上載者:User

標籤:enable   問題   Google翻譯   自啟   檔案的   main   wget   密碼   項目   

gitlab一般用於:
1.開發工程中各種檔案變更的管理
最主要的功能是追蹤檔案的變更,將資訊記錄下來。每一次檔案的改變,版本號碼都會增加

2.並行開發
軟體開發時往往是多人協同,而版本控制可以解決版本同步以及不同開發人員的通訊問題

3.版本回退,類似於虛擬機器的快照
每項開發工作單位中,都需要首先設定開發基準的版本,然後開發出所需的目標版本,當需求發生便變更時,通過對變更的評估,及確定變更的影響範圍,對被影響的配置項的版本進行修改
在開發需求變更被取消時,需由能力將版本回推至開發基準版本,
例:在季度升級包拆包和重新組包時,是將比分配置的版本退回開發基準,在將對應不同需求的不同分支重新組和歸併,形成新的升級包版本

//關防火牆

[[email protected] ~]# systemctl stop firewalld[[email protected] ~]# systemctl disable firewalld[[email protected] ~]# sed -ri ‘s/(SELINUX=).*/\1disabled/g‘ /etc/selinux/config[[email protected] ~]# setenforce 0

//配置安裝163的源

[[email protected] ~]# cd /etc/yum.repos.d///建立備份目錄[[email protected] yum.repos.d]# mkdir /etc/repo-bf//將原yum倉庫的檔案備份到repo-bf[[email protected] yum.repos.d]# mv * /etc/repo-bf//下載163的源到yum倉庫[[email protected] yum.repos.d]# curl -o 163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo//將改為版本的7[[email protected] yum.repos.d]# sed -i ‘s/\$releasever/7/g‘ /etc/yum.repos.d/163.repo[[email protected] yum.repos.d]# sed -i ‘s/enabled=0/enabled=1/g‘ /etc/yum.repos.d/163.repo//自動設定yum的軟體倉庫,也可以自己配置[[email protected] yum.repos.d]# yum -y install epel-release[[email protected] yum.repos.d]# yum clean all//安裝編譯環境[[email protected] yum.repos.d]# yum -y install gcc gcc-c++[[email protected] yum.repos.d]# yum -y install wget

//安裝git

[[email protected] yum.repos.d]# yum -y install epel-release git

//安裝依賴包

[[email protected] yum.repos.d]# yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python

//啟動postfix服務並設定開機自啟動,這是個郵件伺服器

[[email protected] yum.repos.d]# systemctl restart postfix[[email protected] yum.repos.d]# systemctl enable postfix

//下載gitlab的rpm包

[[email protected] yum.repos.d]#  cd /usr/src/[[email protected] src]# lsdebug  kernels[[email protected] src]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

//安裝gitlab

[[email protected] src]# rpm -ivh gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

//修改設定檔

[[email protected] src]# vim /etc/gitlab/gitlab.rbexternal_url ‘http://192.168.56.11‘             將此處設定為gitlab的伺服器位址或ip地址

//重新載入設定檔並重啟

[[email protected] src]# gitlab-ctl reconfigure[[email protected] src]# gitlab-ctl restart

//查看當前的gitlab版本

[[email protected] src]# head -1 /opt/gitlab/version-manifest.txtgitlab-ce 11.2.1

//設定管理員密碼

[[email protected] src]# gitlab-rails console production      //也可用於重設密碼irb(main):001:0> user = User.where(id: 1).first           //id為1是超級管理員=> #<User id:1 @root>irb(main):002:0> user.password = ‘guohui123!‘         //設定密碼=> "guohui123!"irb(main):003:0> user.save!                        //儲存修改Enqueued ActionMailer::DeliveryJob (Job ID: 983489f7-a46e-44ff-90b4-cfc966a819fd) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", gid://gitlab/User/1=> true                         /無問題則返回trueirb(main):004:0> exit     //退出

192.168.56.11

此處設定並輸入新密碼,
(網頁這裡可以用Google翻譯)


進入管理區設定,選擇項目(projects)

gitlab常用管理操作

專案管理,建立新項目

建立組,組路徑

//建立後可在項目直接選取項目的組
建立成員組,針對項目建立一個成員組



使用者管理,添加gitlab使用者,刪除gitlab使用者
添加使用者記得設定密碼

為項目添加使用者以及使用者的身份

普通使用者登陸,身份為開發人員

做營運知道這些就差不多可以了,其他的交給開發去做就好~

LINUX——gitlab版本控制,關於項目組管理,項目使用者及許可權管理的使用

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.