# yum install curl policycoreutils openssh-server openssh-clients -y
# systemctl enable sshd
# systemctl start sshd
# yum install postfix
# systemctl enable postfix
# systemctl start postfix
# firewall-cmd --permanent --add-service=http
# firewall-cmd --permanent --zone=public --add-port=80/tcp
# firewall-cmd --permanent --zone=public --add-port=8080/tcp
# firewall-cmd --reload
# yum install ca-certificates -y
# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# yum install gitlab-ce -y
# vi /etc/gitlab/gitlab.rb
##! external_url 'http://gitlab.example.com' --> http://localhost:8080 으로 변경
# gitlab-ctl reconfigure
시간이 좀 걸린다...
Recipe: monitoring::grafana
* directory[/var/log/gitlab/grafana] action create (up to date)
* directory[/var/opt/gitlab/grafana] action create (up to date)
* directory[/var/opt/gitlab/grafana/provisioning] action create (up to date)
* directory[/var/opt/gitlab/grafana/provisioning/dashboards] action create (up to date)
* directory[/var/opt/gitlab/grafana/provisioning/datasources] action create (up to date)
* directory[/var/opt/gitlab/grafana/provisioning/notifiers] action create (up to date)
* file[/var/opt/gitlab/grafana/CVE_reset_status] action create (up to date)
* link[/var/opt/gitlab/grafana/conf] action create (up to date)
* link[/var/opt/gitlab/grafana/public] action create (up to date)
* directory[/opt/gitlab/etc/grafana/env] action create (up to date)
* ruby_block[populate Grafana configuration options] action run
- execute the ruby block populate Grafana configuration options
* env_dir[/opt/gitlab/etc/grafana/env] action create
* directory[/opt/gitlab/etc/grafana/env] action create (up to date)
* file[/opt/gitlab/etc/grafana/env/SSL_CERT_DIR] action create (up to date)
(up to date)
* template[/var/opt/gitlab/grafana/grafana.ini] action create (up to date)
* file[/var/opt/gitlab/grafana/provisioning/dashboards/gitlab_dashboards.yml] action create (up to date)
* file[/var/opt/gitlab/grafana/provisioning/datasources/gitlab_datasources.yml] action create (up to date)
Recipe:
* service[grafana] action nothing (skipped due to action :nothing)
Recipe: monitoring::grafana
* runit_service[grafana] action enable
* ruby_block[restart_service] action nothing (skipped due to action :nothing)
* ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
* ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
* directory[/opt/gitlab/sv/grafana] action create (up to date)
* template[/opt/gitlab/sv/grafana/run] action create (up to date)
* directory[/opt/gitlab/sv/grafana/log] action create (up to date)
* directory[/opt/gitlab/sv/grafana/log/main] action create (up to date)
* template[/opt/gitlab/sv/grafana/log/run] action create (up to date)
* template[/var/log/gitlab/grafana/config] action create (up to date)
* ruby_block[verify_chown_persisted_on_grafana] action nothing (skipped due to action :nothing)
* directory[/opt/gitlab/sv/grafana/env] action create (up to date)
* ruby_block[Delete unmanaged env files for grafana service] action run (skipped due to only_if)
* template[/opt/gitlab/sv/grafana/check] action create (skipped due to only_if)
* template[/opt/gitlab/sv/grafana/finish] action create (skipped due to only_if)
* directory[/opt/gitlab/sv/grafana/control] action create (up to date)
* link[/opt/gitlab/init/grafana] action create (up to date)
* file[/opt/gitlab/sv/grafana/down] action delete (up to date)
* directory[/opt/gitlab/service] action create (up to date)
* link[/opt/gitlab/service/grafana] action create (up to date)
* ruby_block[wait for grafana service socket] action run (skipped due to not_if)
(up to date)
Running handlers:
Running handlers complete
Chef Client finished, 5/731 resources updated in 19 seconds
설치 끝!
http://localhost:8080 로 접속 하면
뜬다.
신규 암호 입력후
root / 암호 입력 하면 로그인 된다.
로그 확인방법
# vi /var/log/gitlab/unicorn/unicorn_stderr.log
# gitlab-ctl tail
서비스 재시작
# gitlab-ctl restart
config 수정
# vi /etc/gitlab/gitlab.rb
config 적용
# gitlab-ctl reconfigure
'Linux' 카테고리의 다른 글
gitlab Whoops, GitLab is taking too much time to respond. (0) | 2020.03.18 |
---|---|
리눅스 폴더 복구 (0) | 2020.03.17 |
curl: (60) Peer's Certificate issuer is not recognized. (0) | 2020.03.13 |
linux CPU Throttling Issues (0) | 2020.02.25 |
snipe it Whoops, looks like something went wrong. (0) | 2019.12.26 |