TIL(github: jbranchaud/til): til/devops/check-the-status-of-all-services.md
▎Check
In a Linux environment, you can quickly check the status of a number of
different services\. By running
command will be invoked for all services under the
So, if you want to check the status of something like
just run
means it isn't running, the
means that it cannot determine the status\.
▎Check
In a Linux environment, you can quickly check the status of a number of
different services\. By running
\[sudo\] service --status-all, the statuscommand will be invoked for all services under the
/etc/init\.d/ directory\.So, if you want to check the status of something like
nginx or apache,just run
service --status-all and find it in the list\. The - symbolmeans it isn't running, the
+ symbol means it is up, and the ? symbolmeans that it cannot determine the status\.