Solved

error when start PostgreSQL in Linux

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiply buy factor  if have in list  postgresql 3 278
Upgrading PostgreSQL... can I do it "live" with yum? 6 87
navicat import cvs to postgresql 3 87
Postgresql 9.6 10 29
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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