gitlab-install(rpm)

安裝gitlab版8.15.3html

下載鏡像nginx

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/git

官網下載:redis

https://packages.gitlab.com/gitlab/gitlab-ce/packages/ol/6/gitlab-ce-8.15.3-ce.0.el6.x86_64.rpmsql

安裝瀏覽器

[lsug@minion ~]$ sudo rpm -i gitlab-ce-8.15.3-ce.0.el6.x86_64.rpm ide


       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.gitlab

     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/post


gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:spa

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://Minion
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab: 
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab: 

gitlab: GitLab now ships with a newer version of PostgreSQL (9.6.1), and will be used
gitlab: as the default in the next major relase. To upgrade, RUN THE FOLLOWING COMMANDS:

sudo gitlab-ctl pg-upgrade

gitlab: For more details, please see:
gitlab: https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
gitlab: 
It looks like GitLab has not been configured yet; skipping the upgrade script.

 

#sudo gitlab-ctl reconfigure   

#查看安裝後的程序運行狀況! 

#sudo gitlab-ctl status

run: gitlab-workhorse: (pid 25878) 76s; run: log: (pid 25775) 106s
run: logrotate: (pid 25797) 98s; run: log: (pid 25796) 98s
run: nginx: (pid 25783) 104s; run: log: (pid 25782) 104s
run: postgresql: (pid 25631) 195s; run: log: (pid 25630) 195s
run: redis: (pid 25548) 202s; run: log: (pid 25547) 202s
run: sidekiq: (pid 25766) 108s; run: log: (pid 25765) 108s
run: unicorn: (pid 25735) 114s; run: log: (pid 25734) 114s

經過瀏覽器訪問:http://localhost   或者  http://ip

第一次登錄須要會要求更改密碼,

而後使用用戶名root,剛纔輸入的密碼登陸;

經常使用命令

更改配置後,執行以下命令(加載配置生效):
sudo gitlab-ctl reconfigure

服務打開、關閉、重啓:
# Start all GitLab components
sudo gitlab-ctl start

# Stop all GitLab components
sudo gitlab-ctl stop

# Restart all GitLab components
sudo gitlab-ctl restart
卸載:

# Stop gitlab and remove its supervision process
sudo gitlab-ctl uninstall

# Debian/Ubuntu
sudo dpkg -r gitlab

# Redhat/Centos sudo rpm -e gitlab

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息