• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

env varibables problem

 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you logged out and back in again, or otherwise restarted your shell? These scripts are only run when the shell starts up.
 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did.
echo @PATH
echo @CLASSPATH
 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works after rebooting. Thanks.
Can I restart a service without rebooting the server like "/etc/rc.d/init.d/* restart" ?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic