When I am using
postgres -D /usr/local/pgsql/data
to start the postgresql
progress, I send a ctrl+z
signal to stop it.
And now when I used createuser
and psql
, it has no response.
what can I do?
ctrl z is used to pause the process. It will not terminate your program, it will keep your program in background. You can restart your program from that point where you used ctrl z. You can restart your program using the command fg.
To restart a process with the stop command, you must first determine the JID by using the jobs command. You can then use the JID with the following commands: fg %JID Resume a stopped or background job in foreground. bg %JID Restart a stopped job in background.
Type fg
in your shell. This will resume your process
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With