[Ask] PostgreSQL Ubuntu

Discussion in 'Software Hosting dan Control Panel' started by pluto01, 22 Sep 2015.

Thread Status:
Not open for further replies.
  1. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,692
    Likes Received:
    757
    Trophy Points:
    113
    Mau nanya,
    Jika ingin menjalankan Multiple Instances PostgreSQL di centos kan cukup dengan :
    1. Membuat directory baru di /var/lib/pgsql/NEWDATA
    2. Mengkopi file servicenya /etc/init.d/postgresql /etc/init.d/postgresqlNEW [sesuaikan port dan data2 yg lainnya yg perlu diedit]
    3. Kemudian modif file /var/lib/pgsql/NEWDATA/postgresql.conf [sesuaikan port dan listen addressnya]

    nah yang ingin saya tanya jika hendak kita lakukan di Ubuntu [14.04.3 LTS] file2 dan folder tersebut posisinya dmn yach ?
    Kayaknya susunan directorynya berbeda
     
  2. masiqbal

    masiqbal Expert 2.0

    Messages:
    869
    Likes Received:
    250
    Trophy Points:
    63
    coba cek konfigurasinya di /etc/postgresql/[version]/

    Alternatif lain compile sendiri jadi bisa bebas menentukan direktorinya di mana.
     
    pluto01 likes this.
  3. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,692
    Likes Received:
    757
    Trophy Points:
    113
    Iya Mas td sdh dapat yg itu hanya saja ketika start stop servicenya kedua portnya sama2 stop atau start
    root@MDB:/etc/postgresql/9.3/main2# /etc/init.d/postgresql status
    9.3/main (port 5432): down
    9.3/main2 (port 5433): down
    Jadi, saya mikirnya apakah mungkin ada directory/file yg perlu diedit lain untuk menentukannya,
    atau mungkin diubuntu ga bisa dibuat gitu yach ?
     
  4. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,692
    Likes Received:
    757
    Trophy Points:
    113
    Case closed
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...