How to deploy gitlab-ce locally
This article mainly introduces the relevant knowledge of how to deploy gitlab-ce locally, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on how to deploy gitlab-ce locally. Let's take a look at it.
Sudo yum install-y curl policycoreutils-python openssh-serversudo systemctl enable sshdsudo systemctl start sshdsudo systemctl enable postfix run the command vim / etc/postfix/main.cf to open the main.cf file Find inet_interfaces = localhost and modify it as follows: inet_interfaces = all curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashsudo yum install-y gitlab-ce generates ssl certificate cd / etc/gitlab/ssl/openssl genrsa-out / etc/gitlab/ssl/gitlab.example.com.key 2048openssl req-new-key' / etc/gitlab/ssl/gitlab.example.com.key'-out'/ etc/gitlab/ssl / gitlab.example.com.csr'openssl x509-req-days 7305-in'/ etc/gitlab/ssl/gitlab.example.com.csr'-signkey'/ etc/gitlab/ssl/gitlab.example.com.key'-out'/ etc/gitlab/ssl/gitlab.example.com.crt'openssl dhparam-out / etc/gitlab/ssl/dhparams.pem 2048chmod 600 * external_url 'https://gitlab.example.com:30000' # modified to your own domain name and port nginx ['ssl_certificate'] = "/ etc/gitlab/ssl/gitlab.example.com.crt" # use the generated crtnginx [' ssl_certificate_key'] = "/ etc/gitlab/ssl/gitlab.example.com.key" # use the generated key# nginx ['ssl_dhparam'] = / etc/gitlab/ssl/dhparams.pem # Path to dhparams.pem Eg. / etc/gitlab/ssl/dhparams.pem # use the generated pem file # # the following part is used to configure the mail service gitlab_rails ['smtp_enable'] = truegitlab_rails [' smtp_address'] = "smtp.qq.com" gitlab_rails ['smtp_port'] = 25gitlab_rails [' smtp_user_name'] = "132xxxx950@.com" # # own QQ Mail account gitlab_rails ['smtp_password'] = "xxxx" # # The authorized code returned when activating smtp: gitlab_rails ['smtp_domain'] = "qq.com" gitlab_rails [' smtp_authentication'] = "login" gitlab_rails ['smtp_enable_starttls_auto'] = truegitlab_rails [' smtp_tls'] = falsegitlab_rails ['gitlab_email_from'] = "132xxxx950@qq.com" # # specify the email address user ["git_user_email"] = "132xxxx950@qq.com" # # specify the email address gitlab-ctl reconfiguregitlab-ctl start for receiving email. This is the end of the article on "how to deploy gitlab-ce locally". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to deploy gitlab-ce locally". If you want to learn more, you are welcome to follow the industry information channel.