LINUX系统中一切皆文件,所以进程的环境变量同样存放于文件中。 通常放在/proc/进程pid/environ中
ps -ef | grep xxx cat /proc/(xxx的pid)/environ