Usually there are two ways to setup environment one is for separate
user and another one is for all user
# env //used to check the current environments
# export //used to check the current environments
//we can use export command to set an environment but that was an temporary
#export DSPRING_PROFILES_ACTIVE=uat
# env
DSPRING_PROFILES_ACTIVE=uat
# export
declare -x DSPRING_PROFILES_ACTIVE="uat"
# echo $DSPRING_PROFILES_ACTIVE
//if you wan to make this variable for permanent for all user then need to put
this entry in to profile
# vi /etc/profile
//add this line at bottom of the page
export SPRING_PROFILES_ACTIVE=uat
//if you want to make this for single user then put them into particular
user .bashrc file or .bash_profile
# vi /home/username/.bashrc
//add this line at bottom of the page
export SPRING_PROFILES_ACTIVE=uat
# vi /home/BOOBI/.bash_profile
//add this line at bottom of the page
export SPRING_PROFILES_ACTIVE=uat
----------------
0 Comments