환경설정 : RHEL-9.5(RedHat 9.5 linux), gitlab-ee-9.5.rpm(el9)

리눅스 설치 후 rpm 파일을 옮겼다.

1. sudo rpm -ivh mypackage-1.0.0-1.el9.x86_64.rpm 으로 rpm 파일 설치

2. sudo gitlab-ctl reconfigure 로 초기 구성 설정

3. /etc/gitlab 의 gitlab.rb 파일의 external_url='' 수정. (default) http://gitlab.example.com 이런 식으로 돼있음 
   (gitlab.rb 수정 후 gitlab-ctl reconfigure로 셋팅 변경)

4. root 패스워드 변경
>> sudo gitlab-rails console -e production
>> user = User.find_by_username('root')
>> user.password = '새로운비밀번호'
>> user.password_confirmation = '새로운비밀번호'
>> user.save!

[발생했던 오류] password 변경 시 console 접속하려는데 콘솔창이 켜지지 않고 Killed가 된다면, 메모리 부족 때문일 확률이 높음.
free -mh 로 현재 남은 메모리 상태 확인.

방안 1. 서버 메모리 상향
방안 2. sudo gitlab-ctl stop/start puma
           sudo gitlab-ctl stop/start sidekiq
           메모리를 많이 잡아먹는 두 프로세스 kill 후 root password 초기화 후 다시 start

Posted by 知彼知己百戰不殆
,