Solved

error when start PostgreSQL in Linux

Posted on 2013-06-13
1
981 Views
Last Modified: 2013-07-15
Today I cannot start PostgreSQL and return with following error message


-bash-4.1$ pgl_ctl start -o "-p 5437"
-bash: pgl_ctl: command not found
-bash-4.1$ pg_ctl start
server starting
-bash-4.1$ postgres cannot access the server configuration file "/opt/PostgreSQL/9.2/data/:/opt/PostgreSQL/9.2/data/postgresql.conf": No such file or directory

-bash-4.1$

then after changing some permission, now I get this error below

-bash-4.1$ pg_ctl start -D /opt/PostgreSQL/9.2/data
server starting
-bash-4.1$ 2013-06-13 17:49:42 MYT FATAL:  data directory "/opt/PostgreSQL/9.2/data" has group or world access
2013-06-13 17:49:42 MYT DETAIL:  Permissions should be u=rwx (0700).
0
Comment
Question by:motioneye
1 Comment
 
LVL 22

Accepted Solution

by:
earth man2 earned 500 total points
ID: 39247765
As user root
chown -R postgres /opt/PostgreSQL/9.2/data
chmod -R 0700 /opt/PostgreSQL/9.2/data
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question