每次都要source /etc/profile才能使java環境生效,如何解決呢?
~/.bashrc里面加一句source /etc/profile 保存。並source /etc/profile 就可以了。
當然也有人說,不建議把環境變量寫到profile里面,在/etc/profile.d/java.sh里面寫入環境變量
每次都要source /etc/profile才能使java環境生效,如何解決呢?
~/.bashrc里面加一句source /etc/profile 保存。並source /etc/profile 就可以了。
當然也有人說,不建議把環境變量寫到profile里面,在/etc/profile.d/java.sh里面寫入環境變量
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。