1. 程式人生 > >CentOS7 /etc/profile 新增環境變數重啟後不生效 必須得執行source /etc/profile 解決方法

CentOS7 /etc/profile 新增環境變數重啟後不生效 必須得執行source /etc/profile 解決方法

將環境變數寫入/etc/bashrc檔案中

參考

http://www.oschina.net/question/942236_162558%3Fsort%3Dtime

http://19055.blog.51cto.com/9055/1144600