Log on to the application server and switch to the admin account.
Edit /home/admin/.bash_profile and add a custom environment variable in .bash_profile. After the environment variable is added, run source /home/admin/.bash_profile.
After setting, obtain the environment variable using the System.getenv() method in the application code. Restart the application so that the configuration takes effect.
How helpful was this page?
What might be the problems?