- GitLab Cookbook
- Jeroen van Baarsen
- 116字
- 2021-08-05 16:55:04
Set up the database for source installation
GitLab can be installed using PostgreSQL or MySQL. In this recipe, I will use PostgreSQL as it is the recommended database engine.
How to do it…
The following steps are applicable for Debian-based systems; they are also possible with RedHat. You can take a look at gitlab.com for the installation instructions.
- Install PostgreSQL 9.1:
sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev
- Create the PostgreSQL user for GitLab:
sudo –u postgresql psql –d template1 –c "CREATE USER git CREATEDB"
- Create the database for GitLab and grant all privileges on the database:
sudo –u postgresql psql –d template1 –c "CREATE DATABASE gitlabhq_production OWNER git"
推薦閱讀
- JBoss Weld CDI for Java Platform
- 數據庫程序員面試筆試真題與解析
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- Oracle Database In-Memory(架構與實踐)
- Vue.js 3.x從入門到精通(視頻教學版)
- Wireshark Network Security
- Linux網絡程序設計:基于龍芯平臺
- PostgreSQL 11從入門到精通(視頻教學版)
- 微信小程序開發解析
- 批調度與網絡問題的組合算法
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Oracle實用教程
- 數據科學中的實用統計學(第2版)
- Spring Data JPA從入門到精通
- Unity 5 Game Optimization