-
Where is the JAVA_HOME set up
Some places to look first
-
system wide
/etc/environment
: Specifically meant for environment variables/etc/env.d/*
: environment variables, split in multiple files/etc/profile
: all types of initialization scripts/etc/profile.d/*
: initialization scripts/etc/bashrc
,/etc/bash.bashrc
: meant for functions and aliases -
User specific
~/.bash_profile
: initialization for login (bash-) shells~/.bashrc
: initialization for all interacetive (bash-) shells~/.profile
: used for all shells~/.cshrc
,~/.zshrc
,~/.tcshrc
: similar for non-bash shells -
References
CentOS在哪里设置JAVA_HOME
最新推荐文章于 2024-01-20 09:55:29 发布