您好,登錄后才能下訂單哦!
這篇文章主要介紹了本地怎么部署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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。