Solved

error when start PostgreSQL in Linux

Posted on 2013-06-13
1
972 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now