今天安装postgres,启动异常:could not open lock file "/tmp/.s.PGSQL.5432.lock":


pg启动异常could not open lock file "/tmp/.s.PGSQL.5432.lock":_pg


修改tmp权限,chown -R postgres:postgres /tmp

启动成功。


pg启动异常could not open lock file "/tmp/.s.PGSQL.5432.lock":_pg_02