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

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"
    
主站蜘蛛池模板: 海宁市| 太保市| 杂多县| 渭南市| 涿鹿县| 肃南| 清徐县| 敦煌市| 东海县| 公主岭市| 红河县| 饶河县| 于田县| 潼南县| 岗巴县| 宜黄县| 房山区| 原平市| 永善县| 喀喇| 建水县| 常德市| 峡江县| 余干县| 扶沟县| 浮山县| 花莲县| 江永县| 济源市| 霍山县| 江源县| 峨山| 巴青县| 乌兰浩特市| 犍为县| 景东| 卓资县| 凌云县| 龙门县| 射阳县| 乌兰浩特市|