2016年3月24日 星期四

CentOS 7 安裝 GitLab

網址
https://about.gitlab.com/downloads/#centos7

Step 1.環境設置
==
sudo yum install curl openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

Step 2.下載安裝
==
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce



Step 3.設定對外網址
==
>vi /etc/gitlab/gitlab.rb

>external_url 'http://192.168.1.228'


Step 4.設定
==
sudo gitlab-ctl reconfigure

Step 5.網址測試
==
至此安裝完畢
進入設定對外網址或IP
輸入帳密設定

Username: root
Password: 5iveL!fe

Step 6.Server操作指令
==
gitlab-ctl reconfigure
服務
gitlab-ctl restart
gitlab-ctl stop 0

沒有留言:

張貼留言