免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
楼主: zhangyan@tq.cn
打印 上一主题 下一主题

更改了.bash_profile导致普通用户的tomcat起不来[已解决] [复制链接]

论坛徽章:
0
41 [报告]
发表于 2006-12-15 14:28 |只看该作者
我已经尝试在/etc/profile中加入了  LANG=C;export LANG

我在安装的时候选择的是中文,  后来在用编译器的时候一直是乱码,我就尝试通过修改环境变量的,也就是将中文改为英文的方法,来达到正常使用编译器的目的,  我当时并没有想过要使用双语言.

论坛徽章:
0
42 [报告]
发表于 2006-12-15 14:30 |只看该作者
现在所有的问题依然存在,,  我是否需要贴出其它的一些文件来?

论坛徽章:
0
43 [报告]
发表于 2006-12-15 14:47 |只看该作者
Couple of things you can try:

1. See whether you have a command called redhat-config-language . Typically it is under /sbin directory. But RHEL 4 may not have it. Do a search to find it. If it exists, run it to see you can do.

2. Post your /etc/sysconfig/i18n file.

However, if you didn't choose multiple  languages during the install, you can't just set the language back to English. It doesn't work that way. I've attached a Redhat article below about a similar request.

Issue:

How can I add languages and language support to a system after I've installed it?

Resolution:

Adding language support after installation is a very complicated process and often does not succeed. This is because of the way language support is distributed; each individual application that is able to support multiple languages generated a separate language-specific RPM. The only reliable way of adding additional language support to a system is to reintall the system. You may be able to perform a reinstall without formatting the hard drive in order to avoid the necessity of restoring backups.

论坛徽章:
0
44 [报告]
发表于 2006-12-15 15:06 |只看该作者
修改之后的:
root@www sysconfig]# cat i18n
#LANG="zh_CN.UTF-8"
LANG="en_US.UTF-8"
#SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

修改之前的:
[root@www sysconfig]# cat il8nbak
LANG="zh_CN.UTF-8"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
SYSFONT="latarcyrheb-sun16"

论坛徽章:
0
45 [报告]
发表于 2006-12-15 15:11 |只看该作者
yeah. this file looks good. Unfortunately I don't think it will solve your problem

论坛徽章:
0
46 [报告]
发表于 2006-12-15 15:14 |只看该作者
可是,自从我修改了这个文件后,我的vi编译器确实可以正常使用了.

论坛徽章:
0
47 [报告]
发表于 2006-12-15 15:51 |只看该作者

我的设置-从来没有出过问题

假设java安装在/usr/java目录

JAVA_HOME=/usr/java
CLASSPATH=.JAVA_HOME/lib
PATH=$JAVA_HOME/binPATH

LANG=zh_CN.GB18030

export JAVA_HOME CLASSPATH PATH LANG

上面的设置对于启动tomcat是不会出问题的,而且如果你的java应用有中文的日志输出,中文也会正常显示

为何你们的都搞得如此复杂?

论坛徽章:
0
48 [报告]
发表于 2006-12-15 16:04 |只看该作者
是的,在/etc/profile中加入了LANG=C;export LANG ,
PATH=.JAVA_HOME/binPATH也是正确的,那个笑脸,让我都不知道是什么了!!

论坛徽章:
0
49 [报告]
发表于 2006-12-15 19:01 |只看该作者
问题已经解决,是work用户下的.bash_profile出了问题,还有同时恢复了/etc/il8n    感谢热心的人!!!!!!!!!!

论坛徽章:
0
50 [报告]
发表于 2006-12-15 23:08 |只看该作者
Cool


and hope the other application may not encounter any problem
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP