export环境变量

/etc/profile和/etc/profile.d/区别


[root@zzx conf]# vim /etc/profile.d/tomcat.sh   添加如下内容再运行脚本就可以添加环境变量

[root@zzx conf]# . /etc/profile.d/tomcat.sh 

原文地址:https://www.cnblogs.com/hanxing/p/5752727.html