搭建gitlab

由於原有的8080  80端口已經被佔用,因此修改了端口爲11000   11001python

setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/configlinux

firewall-cmd --permanent --zone=public --add-port=11001/tcp
firewall-cmd --permanent --zone=public --add-port=11000/tcp
firewall-cmd --reloadgit

yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python vim

systemctl enable postfix && systemctl start postfixssh

yum -y install wget
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.4-ce.0.el7.x86_64.rpm
rpm -ivh gitlab-ce-12.3.4-ce.0.el7.x86_64.rpmtcp

vim /etc/gitlab/gitlab.rbgitlab

13 external_url 'http://192.168.88.7:11000'
741 unicorn['port'] = 11001post

gitlab-ctl reconfigure
gitlab-ctl restarturl

登陸:IP:11000   登陸後提示修改密碼   初始登陸用戶是root rest

相關文章
相關標籤/搜索