| Author |
env varibables problem
|
Sophia Choi
Ranch Hand
Joined: Mar 22, 2002
Posts: 106
|
|
As I install a new version of J2EE1.3.1, I try to change the J2EE_HOME path in /etc/profile. But when I type env, the path is still the old one. So, I check /home/sophia/.bash_profile and /root/.bash_profile and they are correct. What other files do I have to check ?
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6919
|
|
|
Have you logged out and back in again, or otherwise restarted your shell? These scripts are only run when the shell starts up.
|
Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
|
 |
Sophia Choi
Ranch Hand
Joined: Mar 22, 2002
Posts: 106
|
|
I did. echo @PATH echo @CLASSPATH
|
 |
Sophia Choi
Ranch Hand
Joined: Mar 22, 2002
Posts: 106
|
|
It works after rebooting. Thanks. Can I restart a service without rebooting the server like "/etc/rc.d/init.d/* restart" ?
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6919
|
|
It works after rebooting Gosh. This is probably a Windows habit that I recommend you try and get out of. You should only need to reboot a Linux box when you do something really major (like install a new kernel, or some new internal hardware). For most user-level things all you need to do is log out and log in again. Tme great majority of services (daemons in Linux/Unix terms) can be stopped, started and restarted just by logging in as root and typing (for example) /etc/rc.d/init.d/httpd stop or /etc/rc.d/init.d/httpd restart and so on.
|
 |
 |
|
|
subject: env varibables problem
|
|
|