본문 바로가기

Server68

[Tomcat] 톰캣 한글 설정 1. 경로이동 #mv %TOMCAT_HOME%/bin/ 폴더로 이동 2. 환경설정 파일 생성 # vi setenv.sh 3. 값 입력 후 저장 JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Duser.language=ko -Duser.country=KR -Dfile.encoding=UTF-8" 4. 톰캣 재시작 # service tomcat restart 2020. 1. 6.
[nginx] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in nginx에서 SSL 적용시 아래와 같은 메세지가 뜨면은 아래 처럼 처리해주면된다. the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 1. listen 443 옆에 ssl 문구 추라 2. ssl on 주석 처리 ※ 위 내용은 Nginx 1.15부터 적용됨 2019. 8. 8.
SSL 보안 인증서 패스워드 삭제 (PEM_do_header:bad password read) nginx에서 SSL 적용 후 재기동 시 아래와 같은 에러가 발생하면 key의 비밀번호를 삭제해주면된다. 대신 보안에는 유의해야 한다. [에러구문] cannot load certificate key "/home/SSL/201810/key.pem": PEM_read_bio_PrivateKey() failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A068:PEM routines:PEM_do_header:bad password read) [처리방법] #openssl rsa -in [기존인증서파일].key -out [새로운인증서파일].key 2019. 8. 8.
Tomcat 8 세션 클러스터링 WAS 이중화를 할때는 세션 공유가 필요합니다. 이를 해결하기위해 세션 클러스터링을 이용하면됩니다. Apache Tomcat 8 - Clustering/Session Replication HOW-TO 에 접속하시면 자세한 설명이 나와있습니다. Apache Tomcat 8 (8.5.43) - Clustering/Session Replication How-To Simply add to your or your element to enable clustering. Using the above configuration will enable all-to-all session replication using the DeltaManager to replicate session deltas. By all-to-all, .. 2019. 8. 1.
[Tomcat] Too Many Open Files (열린 파일이 너무 많음) 1. openfiles 설정 개수 확인 # ulimit -a 2. 프로세스별 오픈된 파일 개수 확인 # lsof -p [프로세스ID] | wc -l 3. openfiles 값 변경 (해결법) # vi /etc/security/limits.conf 에서 값 변경 또는 추가 root soft nofile 65535 root hard nofile 65535 2019. 8. 1.
Nginx 13: Permission denied) while connecting to upstream (해결법2) nginx 와 tomcat 을 연결하던 중 권한으로 인해 접근이 불가해 에러가 났었다. # nginx error 로그 2019/01/15 09:39:41 [crit] 4327#0: *2 connect() to [::1]:8079 failed (13: Permission denied) while connecting to upstream 그래서 인터넷에 찾아본 결과, audit 개념이 있었다. centos는 기본으로 설치된다. audit 시스템은 보안정보를 추적할 수 있도록 도와주는데, 사전 설정된 규칙에 따라 audit은 시스템에서 발생된 이벤트에 관해 많은 정보를 포함하는 로그를 생성하며, 보안정책과 그들이 수행하는 작업에서 위반되는 것을 파악하는데 결정적 역할을 한다. audit의 기본 로그 위치는 다.. 2019. 7. 26.