赞
踩
yum -y install lokkit
yum -y install curl openssh-server openssh-clients postfix cronie
service postfix start
chkconfig postfix on
lokkit -s http -s ssh
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.4.4-ce.0.el7.x86_64.rpme
vim /etc/gitlab/gitlab.rb
#访问url
external_url 'http://192.168.38.45'
#防止吃大量内存
unicorn['worker_processes'] = 2
postgresql['max_worker_processes'] = 2
nginx['worker_processes'] = 2
#输入命令,自动配置
gitlab-ctl reconfigure
#查看状态
gitlab-ctl status
#重启
gitlab-ctl restart
#设置新密码
http://192.168.38.45/
yum -y install git
#查看版本
git version
git clone https://gitlab.com/xhang/gitlab.git
cd gitlab
#查看版本
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
#查看全部分支
git branch -a
#生成补丁包
git diff remotes/origin/10-4-stable remotes/origin/10-4-stable-zh > /tmp/10.4.4-zh.diff
#停止服务器
gitlab-ctl stop
#打补丁
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/10.4.4-zh.diff
#启动和重新配置
gitlab-ctl start
gitlab-ctl reconfigure
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。