Personal Website can’t access
1. when run the jar package with nohup java -jar xxx &
It doesn’t work and shows exit[1]
method:
(1)get nohup process
$ ps aux |grep nohup
find the father pid and use kill to kill it
https://unix.stackexchange.com/questions/659634/can-not-stop-nohup-process
I meet the problem that I can’t kill it with command kill
$ kill -9 PID(force shutdown the process)
then just restart the jar package again
nginx can’t reload
when I reload the nginx, it shows
nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
so use the following command
$ sudo pkill -f nginx & wait $!
then
use ./nginx to restart the nginx