[导读]:1、通过ps或者top命令查看运行的进程的pid ps - aux | grep php - fpm#或者top 2.获取进程的pid后,然后使用命令ls -l /proc/${pid},这个命令可以列出该进程的启动位置。 ll / proc / 29543 total 0 dr-xr-xr-x 2 root root 0 Dec 29 14:56 attr -rw-r--r-- 1 root root...
1、通过ps或者top命令查看运行的进程的pid
ps -aux|grep php-fpm #或者 top
2. 获取进程的pid后,然后使用命令ls -l /proc/${pid},这个命令可以列出该进程的启动位置。
ll /proc/29543
total 0
dr-xr-xr-x 2 root root 0 Dec 29 14:56 attr
-rw-r--r-- 1 root root 0 Dec 29 14:56 autogroup
-r-------- 1 root root 0 Dec 29 14:56 auxv
-r--r--r-- 1 root root 0 Dec 29 14:56 cgroup
--w------- 1 root root 0 Dec 29 14:56 clear_refs
-r--r--r-- 1 root root 0 Dec 29 14:56 cmdline
-rw-r--r-- 1 root root 0 Dec 29 14:56 comm
-rw-r--r-- 1 root root 0 Dec 29 14:56 coredump_filter
-r--r--r-- 1 root root 0 Dec 29 14:56 cpuset
lrwxrwxrwx 1 root root 0 Dec 29 14:56 cwd -> /Jar
-r-------- 1 root root 0 Dec 29 14:56 environ
lrwxrwxrwx 1 root root 0 Dec 29 14:56 exe -> /JDK/jdk1.8.0_144/bin/java
dr-x------ 2 root root 0 Dec 29 14:42 fd
dr-x------ 2 root root 0 Dec 29 14:56 fdinfo
-rw-r--r-- 1 root root 0 Dec 29 14:56 gid_map
-r-------- 1 root root 0 Dec 29 14:56 io
-r--r--r-- 1 root root 0 Dec 29 14:56 limits
-rw-r--r-- 1 root root 0 Dec 29 14:56 loginuid
dr-x------ 2 root root 0 Dec 29 14:56 map_files
-r--r--r-- 1 root root 0 Dec 29 14:56 maps
-rw------- 1 root root 0 Dec 29 14:56 mem
-r--r--r-- 1 root root 0 Dec 29 14:56 mountinfo
-r--r--r-- 1 root root 0 Dec 29 14:56 mounts
-r-------- 1 root root 0 Dec 29 14:56 mountstats
dr-xr-xr-x 5 root root 0 Dec 29 14:56 net
dr-x--x--x 2 root root 0 Dec 29 14:56 ns
-r--r--r-- 1 root root 0 Dec 29 14:56 numa_maps
-rw-r--r-- 1 root root 0 Dec 29 14:56 oom_adj
本文来自投稿,不代表阿习进阶博客立场,如若转载,请注明出处:https://www.yanxias.com/Java/137.html

说点什么吧
- 全部评论(0)
还没有评论,快来抢沙发吧!