5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7にGitLab導入(ver. 7.3.1)&Gmail設定

Posted at

##GitLabとは
GitHubのクローン

##インストール手順
公式のドキュメントを参考に
https://about.gitlab.com/downloads/

作業ディレクトリで
# yum update
# yum install curl
# curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.3.1_omnibus-1.el7.x86_64.rpm
# yum install openssh-server
# systemctl enable sshd
# systemctl start sshd
# yum install postfix
# systemctl enable postfix
# systemctl start postfix
# rpm -i gitlab-7.3.1_omnibus-1.el7.x86_64.rpm

/etc/gitlab/gitlab.rbを編集
external_url 'http://your-url'

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'smtp.gmail.com'
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = 'your_name@gmail.com'
gitlab_rails['smtp_password'] = 'your_password'
gitlab_rails['smtp_domain'] = 'gmail.com'
gitlab_rails['smtp_authentication'] = :plain
gitlab_rails['smtp_enable_starttls_auto'] = true

# gitlab-ctl reconfigure
# firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests
# systemctl reload firewalld

ホストに接続
Username:root
Password:5iveL!fe

ログイン後,パスワードを変更し,再ログインする

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?