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.
Thank you! We've received your feedback.