I have postgresql-11.17 source code on my windows, followed the installation from the documentation : PostgreSQL-11 Documentation but when I run the command ./pg_ctl -D /usr/local/pgsql/data -l logfile start
it shows the error :
waiting for server to start..../bin/sh: logfile: Permission denied
stopped waiting
pg_ctl: could not start server
Examine the log output.
I had it running fine a few times previously, but now it does not work. I think it is because there are some processes running still, but I don't know the commands to kill them on WSL neither what are their names.