gitlib的安装

下载ruby

yum -y install gcc gcc-c++ make
wget https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.9.tar.gz
tar zxvf ruby-2.1.9.tar.gz
cd ruby-2.1.9
./configure
make && make install

安装依赖

yum install curl policycoreutils openssh-server openssh-clients postfix
systemctl enable sshd
systemctl start sshd
systemctl enable postfix
systemctl start postfix
firewall-cmd --permanent --add-service=http
systemctl reload firewalld

rpm -ivh gitlab-ce-8.9.5-ce.0.el7.x86_64.rpm 
vim /etc/gitlab/gitlab.rb 
external_url 'http://wk.localdomain'        改为本机IP  external_url 'http://192.168.50.176'

gitlab-ctl reconfigure
gitlab-ctl status

猜你喜欢

转载自www.cnblogs.com/ywrj/p/9622992.html
今日推荐