给进程设置环境变量 1、查看进程的环境变量 1.1查看进程号 ps -ef | grep xxxx 1.2 查看进程环境变量 cat /proc/$PID/environ cat /proc/2988/environ|tr ' ' ' '