日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

bitnamigitlab_Bitnami Gitlab 安装配置 step by step

發(fā)布時(shí)間:2024/9/15 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 bitnamigitlab_Bitnami Gitlab 安装配置 step by step 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

獲取一鍵安裝包

https://bitnami.com/stack/gitlab

下載路徑為 /home/mine/bitnami-gitlab-7.13.5-0-linux-x64-installer.run

設(shè)置權(quán)限

# 如果不設(shè)置權(quán)限,安裝到最后的時(shí)候,會(huì)出現(xiàn)某文件寫入錯(cuò)誤的問題,如何解決者擾人的錯(cuò)誤,如下

問題是在 centos 7 系統(tǒng)中出現(xiàn),

第一次安裝的時(shí)候,提示創(chuàng)建 .git 目錄失敗,沒有權(quán)限,接著提示 不能鎖定 .git/git_config ...

讓第一次安裝執(zhí)行完成,gitlab 會(huì)創(chuàng)建兩個(gè)目錄 /home/git 和 /home/gitlab_ci

然后卸載 gitlab,

chown git:git /home/git

chmod -R 775 /home/git

重裝 gitlab,既無錯(cuò)誤安裝成功。

$ sudo chmod -R 775 /home/mine

安裝

# 啟動(dòng)

$ sudo /home/mine/bitnami-gitlab-7.13.5-0-linux-x64-installer.run

直接 next -> next -> next -> Done

不過,有一步需要注意,當(dāng)提示配置郵箱服務(wù)器的時(shí)候,選擇 Y

注:在選擇安裝路徑的時(shí)候,選擇 /opt/bitnami

卸載

$ sudo /opt/bitnami/uninstall

配置郵箱服務(wù)器

兩步:第一步,修改 production.rb;第二步,修改 gitlab.yml

4.1 ?修改 proudction.rb

$ sudo vim /opt/bitnami/apps/gitlab/htdocs/config/environments/production.rb

修改該對(duì)應(yīng)的內(nèi)容如下

config.action_mailer.perform_deliveries = true

config.action_mailer.raise_delivery_errors = true

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {

:address => "smtp.163.com",

:port => "25",

:domain => "163.com",

:authentication => :login,

:user_name => "yourname",

:password => "yourpwd",

:enable_starttls_auto => true

}

4.2?修改 gitlab.yml

$ sudo vim /opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml

## Email settings

# Uncomment and set to false if you need to disable email sending from GitLab (default: true)

# email_enabled: true

# Email address used in the "From" field in mails sent by GitLab

email_from: yourname@163.com

email_display_name: GitLab

email_reply_to: noreply@example.com

注意:gitlab.yml 中的 email_from 的 username 和 production.rb 中的 郵箱 username 必須一致。

這里注意,有個(gè)坑,搞了我很久;如果你是新申請(qǐng)的一個(gè) 163 的郵箱,這個(gè)時(shí)候,SMTP 服務(wù)默認(rèn)是沒有打開的..... ?唯一要做的,就是進(jìn)入 163 郵箱,打開你的 SMTP 服務(wù)。

重啟,使設(shè)置生效

$ sudo /opt/bitnami/ctlscript.sh restart gitlab_sidekiq

$ sudo /opt/bitnami/ctlscript.sh restart apache

安裝完畢后,如何修改 domain 信息

$ sudo vim /opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml

修改該如下配置文件

## Web server settings (note: host is the FQDN, do not include http://)

host: 10.162.102.179

port: 8080 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details

https: false # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details

日志查看

bitnami gitlab 存放運(yùn)行時(shí)刻的日志路徑

/opt/bitnami/apps/gitlab/htdocs/log

sidekiq.log ?會(huì)記錄運(yùn)行時(shí)刻遇到的異常信息

Repositories

Git 代碼庫是保存在 /opt/bitnami/apps/gitlab/repositories/ 路徑下

錯(cuò)誤相關(guān)

錯(cuò)誤一:

提交的時(shí)候,提示 warnings: unsecure path ... blar blar ... /opt

該提示表示,/opt 目錄的權(quán)限過于開放,將 /opt ?的權(quán)限改為 775 即可修復(fù)該問題.

錯(cuò)誤二:

Transport Error: Cannot get remote repository refs.

http://218.244.137.212:8080/dev_demo/fenghua_demo.git: not authorized

檢查在Gitlab中注冊(cè)的用戶名和密碼有沒有輸入正確

錯(cuò)誤三:

sudo: ./bitnami-gitlab-7.13.5-0-linux-x64-installer.run: command not found文件權(quán)限的問題,改成 775 就可以。

錯(cuò)誤四:

FATAL:? data directory "/opt/bitnami/postgresql/data" has group or world access

DETAIL:? Permissions should be u=rwx (0700).

錯(cuò)誤的原因是,錯(cuò)誤的修改了 postgresql 的目錄權(quán)限,正確的權(quán)限必須是0700

改正:chmod -R 700 postgresql

bitnami 官方文檔

https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_configure_the_email_settings_of_GitLab.3f

總結(jié)

以上是生活随笔為你收集整理的bitnamigitlab_Bitnami Gitlab 安装配置 step by step的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。