- 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"
推薦閱讀
- JavaScript百煉成仙
- Deploying Node.js
- R語言數據分析從入門到精通
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Arduino by Example
- Android Application Development Cookbook(Second Edition)
- INSTANT Weka How-to
- Vue.js 3.0源碼解析(微課視頻版)
- Scala謎題
- jQuery開發基礎教程
- Android Native Development Kit Cookbook
- Julia高性能科學計算(第2版)
- Java EE企業級應用開發教程(Spring+Spring MVC+MyBatis)
- Mastering Apache Storm
- Python 3快速入門與實戰