일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- properties
- NetBeans
- tomcat
- 톰캣
- html
- input
- JSON
- 정규식
- error
- SeLinux
- laravel
- java
- curl
- Android
- junit
- php
- 안드로이드
- larravel
- File
- 이클립스
- Linux
- ajax
- MySQL
- jquery
- 리눅스
- Spring
- CentOS
- 와일드카드
- javascript
- DB
- Today
- Total
목록톰캣 (4)
합쭈기 programming
http://fruitdev.tistory.com/19 참조 chkconfig 등록이 안 될때 상단에 추가 # chkconfig: 2345 90 90 # description: init file for Apache server daemon # processname: /usr/local/server/apache/bin/apachectl # config: /usr/local/server/apache/conf/httpd.conf # pidfile: /usr/local/server/apache/logs/httpd.pid
설치 여부 확인$ yum list | grep httpd 아파치 설치 $ yum install httpd.x86_64 톰캣 설치 http://tomcat.apache.org/ download > core > tar.gz 다운로드 후 $ tar –zxvf {tar.gz 파일명} 으로 압축해제※ yum으로 설치도 가능한데 그건 단독 톰캣 돌릴때 써야 될 것 같다. Java JDK 설치 $ yum install java-1.7.0-openjdk-devel.x68_64 Tomcat connector 설치를 위한 httpd-devel 설치 $ yum install httpd-devel gcc gcc-c++ Tomcat connector(mod_jk) 설치http://tomcat.apache.org/download..
pom.xml org.apache.tomcat.maven tomcat7-maven-plugin 2.1 http://호스트주소/manager/text user name password / -> maven build -> goal : tomcat7:redeploy --> version 2.1 이상에서 동작 maven build 에러 시 jre path를 jdk 안에 jre path로 옴김 톰캣 다운 받았을 때 webapps 안에 있는 manager, host-manager 폴더가 있어야함그리고 사용자를 추가 시켜주어야 하는데 .. tomcat-user.xml에서
톰캣 5.5 이상부터는 POST에는 인코딩필터를 통해 가는데 GET에는 server.xml의 룰을 따른다고 한다. 그래서 server.xml의 설정을 바꿔주면 되는데 아래와 같다. 이렇게 톰캣 server.xml의 URIEnconding 설정을 utf-8(원하는 인코딩)로 바꾸면 깔끔하다. 그게 안된다면 소스에서 일일이 확인하고 바꿔줘야 하는데 String searchKeyword = new String(vo.getSearchKeyword().getBytes("ISO_8859_1"), "UTF-8"); 이런식으로 바꾸면 된다. 솔직히 미련한 짓인듯.. 부득이 서버 접근제한 되었을때 GET요청에 필터 걸어서 인코딩 해버리는 방법으로 괜찮을 듯 하다. 참고로 HTTP는 'ISO_8859_1'로 인코딩 되어 ..