'WAS'에 해당되는 글 4건
- 2007.10.15 apache 로그 날짜별로 저장 2
- 2007.08.02 WAS에서 이미지처리 하도록 설정
- 2007.08.01 http 오류코드
- 2007.03.26 WebSphere 버전별 WAS stop/start
아파치의 웹로그는 파일하나에 모두 저장하는 특성(?)을 가지고 있다.
그래서, 웹로그를 검색하려면 엄청난 고생을 해야할지 모른다.
그래서 cronolog 라는 프로그램을 이용하여 로그를 하루단위로 짜릴 수 있다.
이름에도 알 수 있듯이 cronlog, cron+log 의 합성어로 보이며, cron은 잘 알듯이 unix/linux작업스케줄러이다.
ftp 를 이용하여 웹서버의 특정 경로에 복사를 한다.
ftp xxx.xxx.xxx.xxxtar 로 압축되어있으므로 압축을 해제한다.
telnet 접속하여 ftp 를 통해 올려진 경로로 이동, 보통 /temp에 복사한다.
tar xvf cronolog-1.6.2.tarcronolog-1.6.2 라는 경로가 생성되면서 tar 가 해제된다.
생성된 cronolog-1.6.2 경로로 이동한다.
configure를 수정하여 설치할 경로를 지정한다.
vi ./configure다음의 행을 찾아 설치할 경로로 지정하고 수정한다.
예는 /Product/cronolog 경로에 설치를 하도록 유도하고 있다.
prefix=/Product/cronolog수정이 완료되었으면 실행 및 컴파일을 한다.
./configure/Product/cronolog 경로에 보면 설치가 완료되었음을 확인 할 수 있다.
make
make install
이제 apache에 적용해보자
설정하고자 하는 httpd.conf 파일에 아래와 같이 추가한다.
CustomLog "|/Product/cronolog/sbin/cronolog /apache/log/%Y%m%d_access.log" combined env=!nolog모든 설정이 완료되었으며, apache를 재구동하면 /apache/log 경로에 날짜별로 로그가 저장되는것을 확인할 수 있다.
홈페이지: http://cronolog.org/
'WAS' 카테고리의 다른 글
WAS에서 이미지처리 하도록 설정 (0) | 2007.08.02 |
---|---|
http 오류코드 (0) | 2007.08.01 |
WebSphere 버전별 WAS stop/start (0) | 2007.03.26 |
WAS에서도 이미지처리(jpg 등) 및 서블릿 등을 처리하도록 할 수 있다.
해당옵션에서 true 로 설정하면 이미지 처리도 WAS에서 담당하는것이고
false 로 설정하면 서블릿이나 jsp 등만 WAS에서 처리하도록 합니다.
/app/mjstory/webapp/mjstory.ear/MJSTORYWeb.war/WEB-INF경로에 존재하는
ibm-web-ext.xmi파일을 수정하면 되고
fileServingEnabled="false"을 true / false 로 설정하면 된다.
'WAS' 카테고리의 다른 글
apache 로그 날짜별로 저장 (2) | 2007.10.15 |
---|---|
http 오류코드 (0) | 2007.08.01 |
WebSphere 버전별 WAS stop/start (0) | 2007.03.26 |
아래 굵은색 표시는 일반적으로 많이 나타나는 오류코드입니다.
HTTP 1.1 status codes [TOP]
100 : Continue
101 : Switching protocols
200 : OK, 에러없이 전송 성공
201 : Created, POST 명령 실행 및 성공
202 : Accepted, 서버가 클라이언트 명령을 받음
203 : Non-authoritative information, 서버가 클라이언트 요구 중 일부만 전송
204 : No content, 클라언트 요구을 처리했으나 전송할 데이터가 없음
205 : Reset content
206 : Partial content
300 : Multiple choices, 최근에 옮겨진 데이터를 요청
301 : Moved permanently, 요구한 데이터를 변경된 임시 URL에서 찾았음
302 : Moved temporarily, 요구한 데이터가 변경된 URL에 있음을 명시
303 : See other, 요구한 데이터를 변경하지 않았기 때문에 문제가 있음
304 : Not Modified status codes.
클라이언트가 요청된 문서를 서버에서 검색하지 않고 로컬 사본을 사용한 요청의 회수
305 : Use proxy
400 : Bad request, 클라이언트의 잘못된 요청으로 처리할 수 없음
401 : Unauthorized, 클라이언트의 인증 실패
402 : Payment required, 예약됨
403 : Forbidden, 접근이 거부된 문서를 요청함
404 : Not found, 문서를 찾을 수 없음, 일반적인 인터넷 안될 때 나오는 오류
405 : Method not allowed, 리소스를 허용안함
406 : Not acceptable, 허용할 수 없음
407 : Proxy authentication required, 프록시 인증 필요
408 : Request timeout, 요청시간이 지남
409 : Conflict
410 : Gone, 영구적으로 사용할 수 없음
411 : Length required
412 : Precondition failed, 전체조건 실패
413 : Request entity too large,
414 : Request-URI too long, URL이 너무 김
415 : Unsupported media type
500 : Internal server error, 내부서버 오류(잘못된 스크립트 실행시) 또는 WAS 등(예;톰캣,웹스피어 등)의 미들웨어가 동작하지 않을 때
501 : Not implemented, 클라이언트에서 서버가 수행할 수 없는 행동을 요구함
502 : Bad gateway, 서버의 과부하 상태
503 : Service unavailable, 서비스가 죽었거나 현재 멈춤 상태
504 : Gateway timeout
'WAS' 카테고리의 다른 글
apache 로그 날짜별로 저장 (2) | 2007.10.15 |
---|---|
WAS에서 이미지처리 하도록 설정 (0) | 2007.08.02 |
WebSphere 버전별 WAS stop/start (0) | 2007.03.26 |
WebSpere 4.x stop/start
#>ps -ef | grep java
#>kill -9 javapid
#>su - wasuser
#>cd /Product/WebSphere/AppServer/bin
#>./startupServer.sh &
WebSphere 5.x stop/start
#>ps -ef | grep java
#>kill -9 javapid
#>cd /Product/WebSphere/DeploymentManager/bin
#>./startManager.sh
#>su - wasuser
#>cd /Product/WebSphere/AppServer/bin
#>./startNode.sh
#>./startServer.sh SAFIND
WebSphere 6.x
#>ps -ef | grep java
#>kill -9 javapid
#>cd /Product/was60/AppServer/profiles/Dmgr01/bin
#>./startManager.sh
#>cd /Product/was60/AppServer/profiles/AppSrv01/bin
#>./startNode.sh
#>./startServer.sh wasappname
WebSphere WAS 5.x 및 6.x 를 stop/start
** Stop
/Product/was60/AppServer/profiles/Dmgr01/bin/
./stopManager.sh
# 보안설정시
./stopManager.sh -user [wasadmin] -password [asdf123]
/Product/was60/AppServer/profiles/AppSrv01/bin
./stopNode.sh
# 보안설정시
./stopNode.sh -user [wasadmin] -password [asdf123]
/Product/was60/AppServer/profiles/AppSrv01/bin
./stopServer.sh wasappname
# 보안설정시
./stopServer.sh -user [wasadmin] -password [asdf123]
** Start
/Product/was60/AppServer/profiles/Dmgr01/bin/
./startManager.sh
# 보안설정시
./startManager.sh -user [wasadm6] -password [asdf123]
# 관리자 시작 로그
/Product/was60/AppServer/profiles/Dmgr01/logs/dmgr/startServer.log
/Product/was60/AppServer/profiles/AppSrv01/bin
./startNode.sh
# 보안설정시
./startNode.sh -user [wasadm6] -password [asdf123]
# nodeagent 시작 로그
/Product/was60/AppServer/profiles/AppSrv01/logs/nodeagent/startServer.log
/Product/was60/AppServer/profiles/AppSrv01/bin
./startServer.sh [wasappname]
# 보안설정시
./startServer.sh [wasappname] -user [wasadm6] -password [asdf123]
# WAS시작시 trace 하기
./startServer.sh [wasappname] -trace -user [wasadm6] -password [asdf123]
# javakill(웹스피어 모든 java kill) 잘안되면 한방에 끝.
/Product/was60/AppServer/profiles/AppSrv01/bin
./javakill.sh
# Application Server 설치상태 확인
/Product/was60/AppServer/profiles/AppSrv01/bin/serverStatus.sh -all
'WAS' 카테고리의 다른 글
apache 로그 날짜별로 저장 (2) | 2007.10.15 |
---|---|
WAS에서 이미지처리 하도록 설정 (0) | 2007.08.02 |
http 오류코드 (0) | 2007.08.01 |