Created
October 10, 2019 06:13
-
-
Save pigfly88/ba69a26965f624832a0a2d770fdf2b45 to your computer and use it in GitHub Desktop.
check php process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// check php process is running by pid | |
$pid = 16591; | |
$isRunning = `ps -p $pid -o pid=`; | |
var_dump($isRunning); | |
// get running php process pid list | |
$pidList = `ps h -o pid -C php`; | |
var_dump($pidList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment