- Log on to the application instance and switch to the admin account.
- Edit /home/admin/.bash_profile and add custom environment variables to .bash_profile.
- After you add the custom environment variables, run source /home/admin/.bash_profile.
- After you configure the settings, you can obtain the custom environment variables from the application code by running functions such as System.getenv(). Restart the application to activate the configurations.