搭建环境:阿里云 node
远程操做工具:xshellpython
参考:linux
安装过程:git
http://www.javashuo.com/article/p-tswiznxo-bh.htmlshell
遇到问题解决方案:vim
sudo yum install -y curl policycoreutils-pythonopenssh-server |
sudo systemctl enable sshd |
sudo systemctl start sshd |
firewall-cmd --state |
yum install firewalld systemd -y |
service firewalld start安全 |
sudo firewall-cmd --permanent --add-service=http |
sudo systemctl reload firewalld |
sudo yum install postfix |
sudo systemctl enable postfix服务器 |
2.4.8 启动postfixapp
sudo systemctl start postfix |
wget -vssh |
若wget未安装则进行安装,安装命令:yum -y install wget
yum install vim -y |
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm |
rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm --nodeps --force |
查看
sudo lokkit -s http -s ssh
安装
yum install lokkit
systemctl enable firewalld.service
firewall-cmd --zone=public --add-port=9999/tcp --permanent
2.7.3 重启Linux系统
重启gitLab
gitlab-ctl reconfigure
查看服务状态
gitlab-ctl restart
第一次访问很慢
参考:
http://www.javashuo.com/article/p-tkdgqauq-ey.html
cd /opt/gitlab/bin
第一句:
sudo gitlab-rails console production
第二句:
u=User.where(id:1).fir
u.password='12345678'
2.9.2.5 保存密码
u.save!
这里你能够改变 我设置的和刚刚在Linux中的同样 12345678
设置初始化 root 用户密码
解决参考文档
https://blog.csdn.net/qq_30745307/article/details/82829064
cat /proc/swaps
dd if=/dev/zero of=/mnt/swap bs=512 count=8388616
mkswap /mnt/swap
cat /proc/sys/vm/swappiness
sysctl -w vm.swappiness=60
3.2.5 启用 swap 分区
第一步:
swapon /mnt/swap
第二步:
echo “/mnt/swap swap swap defaults 0 0” >> /etc/fstab
3.2.6 再次使用cat /proc/swaps 查看swap分区是否启动
cat /proc/swaps
能够看到,swap分区已经启用,如今经过 gitlab 进行操做会发现很流畅!