Procedure

  1. Log on to the application instance and switch to the admin account.
  2. Edit /home/admin/.bash_profile and add custom environment variables to .bash_profile.
  3. After you add the custom environment variables, run source /home/admin/.bash_profile.
  4. 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.