Bài đăng nổi bật

Lập trình Java Spring Boot (20 buổi)

JAVA FULLSTACK VIỆT NAM: Website:  javafullstackvietnam.com Fan page:  https://www.facebook.com/JavaFullstackVietNam Group:  https://www.fac...

Thứ Tư, 15 tháng 6, 2016

Cấu hình IBM HTTP Server Logs trong IBM Websphere Application Server Version7.0.0.35

Trong phần này mình hướng dẫn cấu hình rotate log cho access_log và error_log

Trong thư mục File cấu hình http server:
/opt/IBM/WebSphere/HttpServer/conf

Mở file httpd.conf, sửa các thông số sau:

1. Cấu hình access_log
# IBM http server default common log
#CustomLog logs/access_log common
CommonLog "|/opt/IBM/WebSphere/HttpServer/bin/rotatelogs -l /opt/IBM/WebSphere/HttpServer/logs/access_log.%Y.%m.%d 30M" common

2. Cấu hình error_log
# IBM http server defaul error log
#ErrorLog logs/error_log

ErrorLog "|/opt/IBM/WebSphere/HttpServer/bin/rotatelogs -l /opt/IBM/WebSphere/HttpServer/logs/error_log.%Y.%m.%d 30M"


Ý nghĩa: đặt log theo ngày tháng, 30M 1 file.

Sau khi thiết lập xong, chạy câu lệnh sau để restart http server

/opt/IBM/WebSphere/HttpServer/bin/apachectl -k stop|start -f <path_to_configuration_file>

path_to_configuration_file: là đường dẫn tới file config (/opt/IBM/WebSphere/HttpServer/conf/httpd.conf)


--Done--

Author: HVA

Bài đăng phổ biến