ubuntu 安裝部署gitlib ce 服務

2021-09-25 15:13:13 字數 2214 閱讀 8835

部署自己的gitlib倉庫

sudo apt-get install curl openssh-server ca-certificates postfix
curl  2> /dev/null | sudo apt-key add - &>/dev/null

curl -ss | sudo bash

vim /etc/apt/sources.list.d/gitlab_gitlab-ce.list
新增清華源

deb  xenial main
sudo apt-get update

sudo apt-get install gitlab-ce

sudo gitlab-ctl reconfigure
sudo gitlab-ctl status

# 結果

run: alertmanager: (pid 12427) 485s; run: log: (pid 19786) 16649s

run: gitaly: (pid 12440) 484s; run: log: (pid 19187) 16806s

run: gitlab-monitor: (pid 12460) 484s; run: log: (pid 19644) 16668s

run: gitlab-workhorse: (pid 12476) 484s; run: log: (pid 19489) 16688s

run: grafana: (pid 12485) 483s; run: log: (pid 19935) 16626s

run: logrotate: (pid 12503) 483s; run: log: (pid 19575) 16681s

run: nginx: (pid 12509) 482s; run: log: (pid 19507) 16687s

run: node-exporter: (pid 12594) 482s; run: log: (pid 19621) 16673s

run: postgres-exporter: (pid 12601) 481s; run: log: (pid 19848) 16643s

run: postgresql: (pid 12612) 481s; run: log: (pid 19225) 16801s

run: prometheus: (pid 12614) 481s; run: log: (pid 19730) 16656s

run: redis: (pid 12636) 480s; run: log: (pid 19060) 16812s

run: redis-exporter: (pid 12670) 480s; run: log: (pid 19686) 16663s

run: sidekiq: (pid 12677) 477s; run: log: (pid 19449) 16694s

run: unicorn: (pid 12685) 477s; run: log: (pid 19429) 16700s

sudo vim /etc/gitlab/gitlab.rb
更改ip網域名稱

將檔案中 external_url 'http://localhost'  改為external_url ''
更改訪問埠

將檔案中 nginx['listen_port'] = nil 改為nginx['listen_port'] = 8085
更改gitlab-nginx 的監聽埠

---- site configuration(擷取一部分) ----

upstream gitlab-workhorse

server

location /assets/

}

sudo gitlab-ctl uninstall

sudo dpkg -r gitlab-ce

sudo rpm -e gitlab-ce

reboot //(重啟)

ubuntu 安裝部署apache

解壓出httpd 2.2.19資料夾 進入httpd 2.2.19資料夾 3.編譯檔案 設定引數及路徑 像以上這樣設定編譯後apache在modules資料夾將沒有乙個dso模組動態載入!使用.configure help檢視幫助!如下設定 enable mods shared most表示載入大多...

ubuntu安裝部署devstack

安裝環境 新增乙個stack使用者 sudo useradd s bin bash d opt stack m stack給stack使用者新增sudo許可權 sudo tee stack all all nopasswd all etc sudoerssudo su stackgit clone ...

Ubuntu下安裝部署mediawiki

大部分內容 http blog.csdn.net pwlazy archive 2009 10 06 4635882.aspx 增加了修改許可權的部分 step8 需要修改許可權才能移動該檔案 sudo chmod 777 var lib mediawiki config sudo chmod 77...