Chinaunix

标题: 关于ubuntu 12.04 tomcat环境变量 [打印本页]

作者: siberfei    时间: 2012-11-29 11:26
标题: 关于ubuntu 12.04 tomcat环境变量
本帖最后由 siberfei 于 2012-11-29 11:32 编辑

RT RT关于ubuntu12.04tomcat环境变量问题
远程登陆后 切换到root用户(sudo su root)启动tomcat没有问题(改了/etc/profile,加入了环境变量)
不切换到root用户 用test用户,sudo ./bin/startup.sh提示 Neither the JAVA_HOME or the JRE_HOME environmental variable is defined
试过export 改test用户目录下的.bashrc ,profile或者在test或者home目录下新建.bash_profile改环境变量都不行,网上说应该行的,以前学的时候好像也行 ,怎么回事啊

另 只有改setclasspath.sh才成功了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2