搭建環境:阿里雲 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 進行操做會發現很流暢!