Detect whether there is a background process

Detect whether there is a background process

ps -ef | grep Redis

 6379 detects whether the port is listening

netstat -lntp | grep 6379

 

Stop redis:

Using Client

redis-cli shutdown
  • 1

Because the Redis can properly handle the SIGTERM signal, it is also possible to directly kill -9

kill -9 PID

Guess you like

Origin blog.csdn.net/qq_34579060/article/details/90417609