echo "export PATH=$PATH:/www/web/node/node/bin" >/etc/profile.d/node.sh
source /etc/profile.d/node.sh
echo "export PATH=$PATH:/www/web/node/mongodb/bin" >/etc/profile.d/mongodb.sh
source /etc/profile.d/mongodb.sh
回复:LINUX添加所有用户PATH变量的方法