"pg_log/postgresql-Sun.log" 로그 파일을 열 수 없습니다. 해당 파일이나 디렉터리가 없습니다.

"pg_log/postgresql-Sun.log" 로그 파일을 열 수 없습니다. 해당 파일이나 디렉터리가 없습니다.

yum 패키지 관리자를 사용하여 fedora 17에 postgresql을 설치한 후. 시작하려고 하면 오류 메시지가 나타납니다.

[vagrant@example ~]$ sudo /sbin/service postgresql status
Redirecting to /bin/systemctl status  postgresql.service
postgresql.service - PostgreSQL database server
      Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled)
      Active: failed (Result: exit-code) since Sun, 09 Jun 2013 07:01:16 -0700; 5s ago
     Process: 19068 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE)
     Process: 19062 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
      CGroup: name=systemd:/system/postgresql.service

Jun 09 07:01:11 example.vagrant.com pg_ctl[19068]: FATAL:  could not open log file "pg_log/postgresql-Sun.log": No such file or directory
Jun 09 07:01:16 example.vagrant.com pg_ctl[19068]: pg_ctl: could not start server
Jun 09 07:01:16 example.vagrant.com pg_ctl[19068]: Examine the log output.

postgres 설치 시 pg_log 디렉토리가 생성되지 않는 이유가 궁금합니다.

관련 정보