Notice
Recent Posts
Recent Comments
Link
- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
CentOS 6.4 에서 Tomcat 7 서버 - 웹페이지 한글 깨짐 현상 수정 본문
<테스트 환경>
Linux: CentOS 6.4
Web Server: Tomcat 7.0.47
웹페이지에서 한글 깨지는 현상에 대한 조치
CentOS 에서 Tomcat 서버의 server.xml 파일을 찾아서
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
부분을 찾아서 URIEncoding="UTF-8" 을 추가했지만 여전히 웹페이지에서는 한글 깨짐.
* CentOS 6.4 버전에서 한글 깨짐 해결하는 법
=> catalina.sh 파일에서
-Dfile.encoding="utf-8" \ 을 추가함.
[참조] < TOMCAT utf-8 OS 별로 한글 깨짐 해결 >
http://hotkkangs.tistory.com/8
그러나 catalina.sh 파일을 열고, 주석을 보면 이 파일을 직접 수정하는 것을 권장하지 않음.
# Do not set the variables in this script. Instead put them into a script
# setenv.sh in CATALINA_BASE/bin to keep your customizations separate.
/usr/share/apache-tomcat-7.0.47/bin 디렉터리에
setenv.sh 파일을 하나 만들어서, 그 안에 이렇게 넣음.
[root@localhost bin]# cat setenv.sh
#!/bin/sh
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=\"utf-8\""
[참고]
The startup scripts of tomcat will run a setenv.sh file if it exists. Create it (in the tomcat bin/ ) directory and write your customization there, e.g. that file can just contain the line:
< JAVA_OPTS 환경변수를 셋팅하는 법 >
'LINUX' 카테고리의 다른 글
Linux Free Anti-Virus Program (0) | 2013.12.19 |
---|---|
CentOS 6.4 다운로드 (0) | 2013.12.04 |
RPM Command: 15 Examples to Install, Uninstall, Upgrade, Query RPM Packages (0) | 2013.12.04 |
[Linux] 환경변수 설정 / Service List 확인 / vsFTP 로그 남기기 / 서비스 우선순위 (0) | 2013.12.04 |
CentOS - JDK 설치/ tomcat 을 서비스로 등록/ FireFox 설치 (0) | 2013.11.21 |
Comments