Gigabyte MH60-RE1 Manual - Page 11

Restore dbGSMv0XX.backup, Ubuntu], CentOS / Red Hat]

Page 11 highlights

4. Download PGDG RPM file [CentOS] curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm [Red Hat] curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm 5. Install PGDG RPM file [CentOS] rpm -ivh pgdg-centos93-9.3-1.noarch.rpm [Red Hat] rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm 6. Install PostgreSQL yum install postgresql93-server 7. Initialize service postgresql-9.3 initdb 8. Startup chkconfig postgresql-9.3 on 1-5-3 Restore dbGSMv0XX.backup 1. Modify pg_hba.conf file [Ubuntu] vi /etc/postgresql/9.3/main/pg_hba.conf [CentOS / Red Hat] vi /var/lib/pgsql/9.3/data/pg_hba.conf 2. Edit TYPE DATABASE Local all host all host all :wq to save edited file. USER all→postgres all→postgres all→postgres ADDRESS 127.0.0.1/32 ::1/128 METHOD peer→trust indent→trust indent→trust 3. Start service [Ubuntu] service postgresql restart - 11 - Gigabyte Server Management

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60

- 11 -
Gigabyte Server Management
4.
Download PGDG RPM file
[CentOS] curl -O
[Red Hat] curl -O
5.
Install PGDG RPM file
[CentOS] rpm -ivh pgdg-centos93-9.3-1.noarch.rpm
[Red Hat] rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm
6.
Install PostgreSQL
yum install postgresql93-server
7.
Initialize
service postgresql-9.3 initdb
8.
Startup
chkconfig postgresql-9.3 on
1-5-3
Restore dbGSMv0XX.backup
1.
Modify pg_hba.conf file
[Ubuntu]
vi /etc/postgresql/9.3/main/pg_hba.conf
[CentOS / Red Hat]
vi /var/lib/pgsql/9.3/data/pg_hba.conf
2.
Edit
TYPE
DATABASE
USER
ADDRESS
METHOD
Local
all
all→postgres
peer→trust
host
all
all→postgres
127.0.0.1/32
indent→trust
host
all
all→postgres
::1/128
indent→trust
:wq to save edited file.
3.
Start service
[Ubuntu]
service postgresql restart