各位大神,帮忙看个问题,postgres安装时出现的
postgresql吧
全部回复
仅看楼主
level 1
oot@test install]# rpm -ivh postgresql-9.2.1-2_ssl_rhel6.x86_64.rpm
Preparing... ########################################### [100%]
1:postgresql ########################################### [100%]
Install postgresql:
Add postgres user: useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Creating mailbox file: File exists
[ OK ]
Add postgresql service: [ OK ]
Add li
bp
q to ldconfig: [ OK ]
Add postgresql command to PATH: [ OK ]
Init postgresql:
Make dir /opt/pgsql/data: [ OK ]
Init database: The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".
fixing permissions on existing directory /opt/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 24MB
creating configuration files ... ok
creating template1 database in /opt/pgsql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
/opt/pgsql/bin/postgres -D /opt/pgsql/data
or
/opt/pgsql/bin/pg_ctl -D /opt/pgsql/data -l logfile start
[ OK ]
Create a template file for database is full: 20+0 records in
20+0 records out
20971520 bytes (21 MB) copied, 0.0319455 s, 656 MB/s
[ OK ]
Start postgresql service: Starting PostgreSQL: ok
[ OK ]
Create language plpgsql: createlang: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Change postgres password of database: psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[FAILED]
2021年11月15日 09点11分 1
1