centos6.5上搭建gitlab服務器(親測可用哦)


     最近的版本控制中,git可謂是脫韁的野馬,一發不可收拾。當然git的設計模式也是愈發的成熟,讓人刮目相看,完美解決了svn上的不足之處。在目前分布式橫行的天下,git可謂是占得了一席之地。

     廢話少說,下面就來一步一步搭建git服務器。

     

安裝gitlab版:6.9.2
rpm發行文件名:gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm

安裝步驟代碼:
#sudo yum install openssh-server
#sudo yum install postfix # sendmail or exim is also OK
#sudo rpm -i gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm # this is the .rpm you downloaded
#sudo gitlab-ctl reconfigure
#sudo lokkit -s http -s ssh # open up the firewall for HTTP and SSH requests

ok!
#sudo gitlab-ctl status;   #查看安裝后的程序運行情況!輸出如下:

run: nginx: (pid 3012) 53s; run: log: (pid 3011) 53s
run: postgresql: (pid 2857) 87s; run: log: (pid 2856) 87s
run: redis: (pid 2759) 98s; run: log: (pid 2758) 98s
run: sidekiq: (pid 2967) 60s; run: log: (pid 2966) 60s
run: unicorn: (pid 2938) 66s; run: log: (pid 2937) 66s

說明安裝成功。

通過瀏覽器訪問:http://localhost   或者  http://ip

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

輸入:root/5iveL!fe  登錄!
ok,登錄成功,首次登錄需修改密碼,我修改為:12345678,然后重新登錄,就可以開始gitlab之旅了。

如果你的端口跟其他服務沖突了,可以在配置文件中修改:

vi /etc/gitlab/gitlab.rb

找到上面對應的ip和端口,修改你自己的就可以了。

最后還有一步,就是你的團隊如果想要注冊進去的話,是要驗證郵箱的,這里就需要gitlab進行郵箱的設置。

具體如下:

這樣就ok啦,就是這么簡單。喜歡的朋友可以關注一下我的博客。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM