ps -ef|grep command is mainly to filter out whether the process you want to check is running, and it will return the process ID which can be used for subsequent operations; The above results show:
The redis process exists, that is, redis has been started and did not exit abnormally;
The redis process number is 20508, you can kill it by kill 20508;
This redis process is started through the /usr/sbin/redis-server file, and the configuration file used is /etc/redis.conf
The start time of this redis process is Jan21 (January 21) 01:30:10
This redis process is started using the ? account (the user is not displayed, only the ? number is displayed)
ps -ef|grep command is mainly to filter out whether the process you want to check is running, and it will return the process ID which can be used for subsequent operations;
The above results show:
The redis process exists, that is, redis has been started and did not exit abnormally;
The redis process number is 20508, you can kill it by kill 20508;
This redis process is started through the /usr/sbin/redis-server file, and the configuration file used is /etc/redis.conf
The start time of this redis process is Jan21 (January 21) 01:30:10
This redis process is started using the ? account (the user is not displayed, only the ? number is displayed)
Is the poster referring to the process ID?
Looking at this can tell whether the process is dead or not, but there is not a lot of useful information
First think clearly about the purpose of your monitoring and which indicators can meet your purpose