วันจันทร์ที่ 17 กันยายน พ.ศ. 2555

How to Install PostgreSQL on FreeBSD using ports

Step 1 : Update ports
Step 2 : cd /usr/ports/databases/postgresql92-server
Step 3 : make && make install && make clean
Step 4 : /usr/local/etc/rc.d/postgresql initdb
Step 5 : Add following line to /usr/local/pgsql/data/pg_hba.conf
             host    all             all             _your_network_          password
Step 6 : Change this value in file /usr/local/pgsql/data/postgresql.conf
             #listen_addresses = 'localhost'    -> listen_addresses = '*'
             #port = 5432                             -> port = 5432
Step 7 : Add Following line to /etc/rc.conf
             postgresql_class="postgres"
             postgresql_enable="YES"
Step 8 : Start you postgres using command
             /usr/local/etc/rc.d/postgresql start

Solution From : http://wiki.openstreetmap.org/wiki/User:S-s-s_wiki/Creating_a_local_OSM_server_under_FreeBSD

ไม่มีความคิดเห็น:

แสดงความคิดเห็น