preacquisition
root계정으로 작업하였다.
yum install -y curl policycoreutils-python openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix
install gitlab package
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# 만약 google nameserver를 등록하려면
vi /etc/resolv.conf
# 아래 추가
nameserver 8.8.8.8
EXTERNAL_URL="http://192.168.0.235/" yum install -y gitlab-ce
# 만약 특정포트와 특정버전을 설치하고 싶다면
EXTERNAL_URL="http://192.168.0.236:9999/" yum install -y gitlab-ce-16.8.1
실행하기
최초 root login
아래 명령어를 실행하면 출력되는 패스워드를 복사한다.
cat /etc/gitlab/initial_root_password | grep Password
Username or primary email : root
Password : VPo5mXFPK0qhGR0rn6tO/xRIZDZWIRVqgLj+ttLl44k=
gitlab-ctl uninstall
gitlab-ctl cleanse
dpkg -P gitlab-cd || yum -y remove gitlab-ce
rm -rf /opt/gitlab
rm -rf /var/opt/gitlab
rm -rf /etc/gitlab
rm -rf /var/log/gitlab