(code=exited, status=1/FAILURE) lock file "postmaster.pid" already exists,Failed tostart PostgreSQL

(code=exited, status=1/FAILURE),

lock file "postmaster.pid" already exists,Failed to start PostgreSQL 11 database server.

第一步:

去postgresql的安装目录删除postmaster.pid该文件

第二步:

删除后重启postgresql

service postgresql-11 restart

第三步:

查看 postgresql的状态

service postgresql-11 status

(code=exited, status=1/FAILURE) lock file

 

 

你可能感兴趣的:(postgresql,Linux)