1. View the PID of the running process via PS or TOP command
PS -aux| grep php-fpm# or Top
2. After getting the PID of the process and then using the command Ls-l/proc/${pid}, this command can list the start location of the process.
ll/proc/22551
Total0Dr-xr-xr-x2www www0Jul5 One: theattr-rw-r--r--1www www0Jul5 One: theAutogroup-R--------1www www0Jul5 One: theAUXV-r--r--r--1www www0Jul5 One: theCgroup--W-------1www www0Jul5 One: theClear_refs-r--r--r--1www www0Jul5 .: -CmdLine-rw-r--r--1www www0Jul5 One: theCoredump_filter-r--r--r--1www www0Jul5 One: thecpusetlrwxrwxrwx1www www0Jul5 One: the/apps/php/lib/php/extensions/no-debug-zts-, CWD20151012-R--------1www www0Jul5 One: theenvironlrwxrwxrwx1www www0Jul5 -: theEXE-/apps/php/sbin/php-FPMDR-X------2www www0Jul5 One: thefddr-X------2www www0Jul5 One: theFdinfo-R--------1www www0Jul5 One: theio-RW-------1www www0Jul5 One: theLimits-rw-r--r--1www www0Jul5 One: theLoginuid-r--r--r--1www www0Jul5 One: theMaps-RW-------1www www0Jul5 One: theMem-r--r--r--1www www0Jul5 One: theMountinfo-r--r--r--1www www0Jul5 One: theMounts-R--------1www www0Jul5 One: theMOUNTSTATSDR-xr-xr-x6www www0Jul5 One: theNet-r--r--r--1www www0Jul5 One: theNuma_maps-rw-r--r--1www www0Jul5 One: theOom_adj-r--r--r--1www www0Jul5 One: theOom_score-rw-r--r--1www www0Jul5 One: theOom_score_adj-r--r--r--1www www0Jul5 One: thePagemap-r--r--r--1www www0Jul5 One: thepersonalitylrwxrwxrwx1www www0Jul5 One: theRoot-/-rw-r--r--1www www0Jul5 One: thesched-r--r--r--1www www0Jul5 One: theSchedstat-r--r--r--1www www0Jul5 One: theSessionID-r--r--r--1www www0Jul5 One: theSmaps-r--r--r--1www www0Jul5 One: theStack-r--r--r--1www www0Jul5 .: + Stat-r--r--r--1www www0Jul5 ,: -STATM-r--r--r--1www www0Jul5 .: -Status-r--r--r--1www www0Jul5 One: theSyscalldr-xr-xr-x3www www0Jul5 One: theTask-r--r--r--1www www0Jul5 One: theWchan
Linux Find Process Run location