标签:version serve cli console 版本 roo 查看 开机自启 code
yum -y install policycoreutils openssh-server openssh-clients postfix
systemctl enable postfix && systemctl start postfix
下载gitlab安装包,然后安装
- 10.0.x版本需要大于4G内存,否则报502(解决办法创建4G的swap,并且赋600权限)
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
chmod -R 755 /var/log/gitlab
- 8.x版本直接安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
head -1 /opt/gitlab/version-manifest.txt
cd /opt/gitlab/bin
gitlab-rails console production
user=User.where(id:1).first
user.password=123456789
user.password_confirmation=123456789
user.save!
exit
标签:version serve cli console 版本 roo 查看 开机自启 code
原文地址:https://www.cnblogs.com/hanby/p/14361553.html