配置文件改了重启后不生效

10 views
Skip to first unread message

hkcat2006

unread,
Dec 16, 2007, 9:03:40 PM12/16/07
to debianlinux
我在/etc/profile中加入
PATH=$PATH:/opt/soft/jdk/bin
然后
source /etc/profile
PATH是显示正确的,javac也能运行
但是重启后就仍然不行了。请问是什么问题。

debian 2.6.22 gdm fvwm

Fossil Pan

unread,
Dec 27, 2007, 8:35:23 AM12/27/07
to debianlinux
如法炮制,我这可以,ubuntu 7.10。不晓得你的是什么原因。

hw russot

unread,
Mar 28, 2008, 10:02:40 AM3/28/08
to debia...@googlegroups.com
You should add it in your $HOME/.bashrc  as following:


> PATH=$PATH:/opt/soft/jdk/bin

Fossil Pan

unread,
Mar 28, 2008, 11:06:31 AM3/28/08
to debianlinux
看起来不同发行版处理方式还有所不同。如果仅仅为实现目的,您的是正解,不必动系统安装的配置文件了。

On Mar 28, 10:02 pm, "hw russot" <russot.163....@gmail.com> wrote:
> You should add it in your $HOME/.bashrc as following:
>
> > PATH=$PATH:/opt/soft/jdk/bin
>
Reply all
Reply to author
Forward
0 new messages