这篇文章主要介绍了本地怎么部署gitlab-ce的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇本地怎么部署gitlab-ce文章都会有所收获,下面我们一起来看看吧。
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshdsudo systemctl start sshd
sudo systemctl enable postfix
inet_interfaces = all
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce
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' # 修改成自己的域名和端口nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt" # 使用生成的crtnginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key" # 使用生成的key# nginx['ssl_dhparam'] = /etc/gitlab/ssl/dhparams.pem # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem #使用生成的pem文件##一下部分用于配置邮件服务gitlab_rails['smtp_enable'] = truegitlab_rails['smtp_address'] = "smtp.qq.com"gitlab_rails['smtp_port'] = 25gitlab_rails['smtp_user_name'] = "132xxxx950@.com" ##自己的qq邮箱账号gitlab_rails['smtp_password'] = "xxxx" ##开通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" ##指定发送邮件的邮箱地址user["git_user_email"] = "132xxxx950@qq.com" ##指定接收邮件的邮箱地址
gitlab-ctl reconfigure
gitlab-ctl start
关于“本地怎么部署gitlab-ce”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“本地怎么部署gitlab-ce”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注亿速云行业资讯频道。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。