官术网_书友最值得收藏!

  • 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.

  1. Install PostgreSQL 9.1:
    sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev
    
  2. Create the PostgreSQL user for GitLab:
    sudo –u postgresql psql –d template1 –c "CREATE USER git CREATEDB"
    
  3. 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"
    
主站蜘蛛池模板: 五原县| 武鸣县| 阳泉市| 涟源市| 大渡口区| 天等县| 汝州市| 伽师县| 田林县| 辽中县| 隆回县| 兴仁县| 乌兰察布市| 黑山县| 来安县| 信丰县| 湘潭市| 濮阳市| 宜章县| 越西县| 聂荣县| 龙里县| 丹棱县| 嘉鱼县| 舟山市| 泊头市| 鄄城县| 陵水| 民丰县| 南通市| 英山县| 新野县| 扶沟县| 美姑县| 东乡族自治县| 武鸣县| 拜城县| 金平| 长沙市| 西乌珠穆沁旗| 江陵县|