我的窗口上有PostgreSQL11.17源代码,遵循文档:PostgreSQL-11文档的安装,但是当我运行命令./pg_ctl -D /usr/local/pgsql/data -l logfile start
时,它会显示错误:
waiting for server to start..../bin/sh: logfile: Permission denied
stopped waiting
pg_ctl: could not start server
Examine the log output.
以前我让它运行得很好,但现在它不起作用了。我认为这是因为仍有一些进程在运行,但我不知道在WSL上杀死它们的命令,也不知道它们的名称。
发布于 2022-11-14 13:38:07
因此,我发现解决这个问题的一种方法是执行sudo top
,然后用k
关闭postgres进程,给出要终止的PID,然后执行SIGKILL
命令(9)。
https://stackoverflow.com/questions/74433148
复制