Results 1 to 4 of 4
Hi all,
I need to set path for java and some files permanently..
Below is my requirement,
export JAVA_HOME=/root/EC2/jre1.5.0_16/
export EC2_HOME=/root/EC2/ec2-api-tools
export PATH=$PATH:$EC2_HOME/bin
export C2_PRIVATE=/root/EC2/aws-private
export C2_CERT=/root/EC2/aws-cert
Please help me ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-09-2008 #1
setting environmental variables permanently
Hi all,
I need to set path for java and some files permanently..
Below is my requirement,
export JAVA_HOME=/root/EC2/jre1.5.0_16/
export EC2_HOME=/root/EC2/ec2-api-tools
export PATH=$PATH:$EC2_HOME/bin
export C2_PRIVATE=/root/EC2/aws-private
export C2_CERT=/root/EC2/aws-cert
Please help me how to do this..
Thanks in advance
Sg..
- 08-09-2008 #2
You can do this in a users ~/bash_profile or globally in /etc/profile. Some distros have a directory called /etc/profile.d where you create scripts that contain the environmental variables you want to set. This means that you don't have to touch /etc/profile.
- 08-09-2008 #3
thanks daark..

I have to set system wide, I used /etc/profile, but not working..
after that we need to run any services?
regards,
sg..
- 08-09-2008 #4
Did you log out and back in again or run "source /etc/profile" after setting the variables?


Reply With Quote
