红联Linux门户
Linux帮助

Linux自启动Postgresql出现Do you want to choose a different one?的解决

发布时间:2007-07-20 00:51:43来源:红联作者:hospcuq
  关于Linux AS4 自启动Postgresql日志出现Do you want to choose a different one?问题解决办法

  OS:Linux AS4U2
  DB:Posgresql 8.1

  按照PG的安装说明,将postgresql脚本copy到/etc/init.d/目录下,执行chkconfig --add postgresql后,在系统中运行service postgresql start,启动正常,但重启机器后,PG没法正常启动,查看日志serverlog中有“Do you want to choose a different one?”提示。有网友用runuser命令替换postgresql中su来解决,但我试后不行。

  继续查资料了解到是SELinux中有一项配置SELINUX=enforcing引起的,将其改为:SELINUX=disabled即可,该配置文件在/etc/selinux/config中。

  特此贴出来,希望能帮助和我遇到同样问题的网友。
文章评论

共有 0 条评论