赞
踩
这个把vm赋给centos的设成4+30就可以,另外再加入Swap交换,加入虚存。一个gitlab在linux中运行的时候,运存是3.5G,占用硬件资源有17G,如果按照默认的1+20配,卡出502很正常
直接IDEA里装就行
1、gitlab-ctl help # 命令帮助
2、gitlab-ctl reconfigure # 重新配置
3、gitlab-ctl show-config # 显示配置
4、gitlab-ctl uninstall # 卸载
5、gitlab-ctl kill # 杀服务
6、gitlab-ctl restart # 重启服务
7、gitlab-ctl service-list # 服务清单
8、gitlab-ctl start # 启动服务
9、gitlab-ctl status # 查看状态
10、gitlab-ctl stop # 停止服务
11、gitlab-ctl tail # 查看所有启动服务的服务日志
1 vi /etc/ssh/sshd_config 2 cd /etc 3 cd /sysconfig/network-scripts 4 cd /sysconfig 5 cd sysconfig 6 cd network-scripts 7 ls 8 vi ifcfg-ens33 9 systemctl restart network 10 ping www.baidu.com 11 service ssh restart 12 /etc/init.d/ssh restart 13 shutdown -r now 14 sudo rpm -ivh /home/centos01/New Folder/gitlab-ce-15.7.0-ce.0.el7.x86_64.rpm 15 sudo rpm -ivh /home/centos01/test1/gitlab-ce-15.7.0-ce.0.el7.x86_64.rpm 16 sudo yum install -y curl policycoreutils-python openssh-server perl 17 sudo systemctl enable sshd 18 sudo systemctl start sshd 19 sudo firewall-cmd --permanent --add-service=http 20 sudo firewall-cmd --permanent --add-service=https 21 sudo systemctl reload firewalld 22 sudo systemctl stop firewalld 23 curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash 24 sudo EXTERNAL_URL="https://192.168.80.100" yum install -y gitlab-ce 25 sudo gitlab-ctl reconfigure 26 gitlab-ctl start 27 execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run 28 gitlab-ctl tail 29 netstat -tnlp | grep 30 gitlab-ctl restart 31 vi /etc/gitlab/gitlab.rb 32 yum vim 33 yum -vim 34 rpm -qa|grep vim 35 vim /etc/gitlab 36 cd /etc/gitlab 37 vim gitlab.rb 38 top 39 free -h 40 dd if=/dev/zero of=/root/swap bs=1M count=2048 41 mkswap /root/swap 42 swapon /root/swap 43 chmod 600 /root/swap 44 free -h 45 history
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。