一、/etc/profile文件详解(环境变量)
添加环境变量
1.在profile文件中添加如下内容 export PATH=$PATH:/usr/local/man export PATH=$PATH:/usr/local/rabbitmq/sbin
2.在profile文件中添加或修改的内容需要注销系统才能生效。同名的环境变量,后写入的起作用。或执行如下命令。 [root@localhost ~]# source /etc/profile
参考:https://www.cnblogs.com/lh03061238/p/9952659.html
参考:https://www.jianshu.com/p/1dd22f5b521a
参考:https://blog.csdn.net/thebigdipperbdx/article/details/80862224