- 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"
推薦閱讀
- Kali Linux Web Penetration Testing Cookbook
- JavaScript Unlocked
- Visual Basic程序設計與應用實踐教程
- Python機器學習編程與實戰
- 深入淺出PostgreSQL
- C語言程序設計教程
- 好好學Java:從零基礎到項目實戰
- Instant PHP Web Scraping
- UI設計全書(全彩)
- JavaScript程序設計(第2版)
- Illustrator CS6設計與應用任務教程
- OpenCV 3.0 Computer Vision with Java
- Beginning PHP
- jMonkeyEngine 3.0 Beginner’s Guide
- HTML5+CSS+JavaScript深入學習實錄