vi /var/lib/pgsql/data/postgresql.conf
listen_addresses='*'
host all all 0.0.0.0/0 md5
sudo systemctl restart postgresql
sudo -i -u postgres
psql
sudo -u postgres psql
\password postgres
psql database_name < database_name_20160527.sql
vi /var/lib/pgsql/data/postgresql.conf
listen_addresses='*'
host all all 0.0.0.0/0 md5
sudo systemctl restart postgresql
sudo -i -u postgres
psql
sudo -u postgres psql
\password postgres
psql database_name < database_name_20160527.sql