使用ubuntu和postgresql启动pgpool后,pid文件消失 [英] pid file disappears after starting pgpool with ubuntu and postgresql

查看:64
本文介绍了使用ubuntu和postgresql启动pgpool后,pid文件消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在ubuntu 12.04上使用pgpoolII-3.3.3和pgPoolAdmin安装了PostgreSQL 9.1

I´ve installed postgresql 9.1 on ubuntu 12.04 with pgpoolII-3.3.3 and pgPoolAdmin

如果我尝试从使用sudo pgpool的终端运行pgpool,它似乎会启动.查看ubuntu文件浏览器,我可以在/var/run/pgpool/pgpool.id(这是pgpool.conf中的路径)中看到如何创建pgpool.pid文件.

If I try to run pgpool from a terminal with sudo pgpool it seems to start. Viewing ubuntu file explorer I can see how a pgpool.pid file is created at /var/run/pgpool/pgpool.id (this is the path in pgpool.conf)

但是一秒钟后文件消失了.

But after one second the file disappears.

我试图更改目录的所有者和目录权限,但似乎没有任何解决方法.

I have tried to change the owner of the directory and the directory permissions but nothing seems to fix it.

如果在那之后我尝试使用sudo pgpool -m快速停止来停止pgpool,则会收到错误消息:错误.找不到pid文件

If after that I try to stop pgpool wiht sudo pgpool -m fast stop I got an error: Error. pid file not found

似乎文件已创建并突然销毁.我想知道为什么.

It seems like the file is created and suddenly destroyed. I´m wondering why.

如果我尝试从pgPoolAdmin运行pgpool,则会出现此错误:pgpool启动失败.找不到pgpool.pid.

If I try to run pgpool from pgPoolAdmin I got this error: pgpool start failed. pgpool.pid not found.

像其他时候一样,这可能是一个愚蠢的问题,由于我对这些系统没有很高的了解,所以我无法解决它.

Like other times, it´s maybe and stupid issue and I´m not being able to solve it as i don´t have a high level of knowledge on those systems.

对尝试什么有任何想法吗?

Any idea about what to try?

圣诞节快乐

推荐答案

使用ls -la命令检查tmp目录,并删除文件.s.PGSQL.9999和.s.PGSQL.9898并重新启动服务器

check the tmp directory using ls -la command and delete the file .s.PGSQL.9999 and .s.PGSQL.9898 and restart the server

这篇关于使用ubuntu和postgresql启动pgpool后,pid文件消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆