Gitlab伺服器搭建(For fedora23),gitlabfedora23

來源:互聯網
上載者:User

Gitlab伺服器搭建(For fedora23),gitlabfedora23

 

1. Install and configure the necessary dependencies
sudo yum install curl policycoreutils openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld

2. Add the GitLab package server and install the package
通過下面連結下載『gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm』:
http://pan.baidu.com/s/1qXeuiNq

有想法的同學可以下載『https://packages.gitlab.com/gitlab/gitlab-ce/』自己想要的版本

下載完成之後當然是安裝了:sudo rpm -i gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm

3. Configure and start GitLab
sudo gitlab-ctl reconfigure
4. Browse to the hostname and login
Username: root 
Password: 5iveL!fe
通過瀏覽器訪問:http://localhost   或者  http://ip
登入成功,首次登入需修改密碼
配置:
sudo mkdir -p /etc/gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
Configuring the external URL for GitLab:
向:/etc/gitlab/gitlab.rb 檔案中添加:
external_url "http://gitlab.example.com"
更改配置後,執行如下命令(載入配置生效):
sudo gitlab-ctl reconfigure
服務開啟、關閉、重啟:
# Start all GitLab components
sudo gitlab-ctl start
# Stop all GitLab components
sudo gitlab-ctl stop
# Restart all GitLab components
sudo gitlab-ctl restart

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.