Skip to content

Instantly share code, notes, and snippets.

@pigfly88
Created October 10, 2019 06:13
Show Gist options
  • Save pigfly88/ba69a26965f624832a0a2d770fdf2b45 to your computer and use it in GitHub Desktop.
Save pigfly88/ba69a26965f624832a0a2d770fdf2b45 to your computer and use it in GitHub Desktop.
check php process
<?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