ประโยชน์ สำหรับ ทำ application ไว้คนที่ที่กับ Database Server หรือ ไว้ backup restore ฐานข้อมูลข้าม Serverได้
1.
เปิดไฟล์
nano /etc/postgresql/9.3/main/postgresql.conf
แก้ไข
โค้ด: เลือกทั้งหมด
listen_addresses = 'localhost'
โค้ด: เลือกทั้งหมด
listen_addresses = '192.168.0.191, localhost'
2.
เปิดไฟล์
nano /etc/postgresql/9.3/main/pg_hba.conf
เพิ่ม
โค้ด: เลือกทั้งหมด
host all all 192.168.101.20/24 trust
โค้ด: เลือกทั้งหมด
service postgresql restart