deepin 环境变量配置
Tofloor
poster avatar
deepin1216181067
deepin
2017-12-15 16:39
Author
在deepin的etc/envirment、.bash_profile、etc/profile下配置了export PATH,都不起作用,直接导致不能开机,请问有人配置成功过环境变量吗?OS:deepin 15.5
Reply Favorite View the author
All Replies
avatar
jhkwei
deepin
2017-12-15 20:58
#1
先试再终端中试 export ,能行之后,再把 同样的 export 加到 /etc/profile 之类的最后,再 source /etc/profile 之类试试
Reply View the author
avatar
fuyao
deepin
2017-12-15 21:24
#2
我是把export PATH 这些卸载~/.bashrc里面,然后source ~/.bashrc或者重新打开终端生效。
Reply View the author
avatar
shamine
deepin
2017-12-15 21:26
#3

/.bashrc


export JAVA_HOME=/usr/share/jdk1.6.0_14

export PATH=$JAVA_HOME/binPATH

export CLASSPATH=.JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jar
Reply View the author
avatar
186******42
deepin
2017-12-16 23:01
#4
还是写到.profile吧,各bash都能用,用zsh就不读bashrc
Reply View the author