Develope 93

[Tomcat] 설정 Tip

이게 웹 파트일까 리눅스파트일까.. ** catalina.out 로그가 너무 커지면서 DISK FULL이 일어나는 경우가 있다. 1. Linux 기본 logratate> cd /etc/logratate.d > vi tomcat 실제 ${CATALINA_HOME} 경로 ./~/tomcat/logs/catalina.out { copytruncate -> 기존파일을 다른파일로 이동, 기존파일 삭제 daily -> 로그파일을 날짜별로 변환 rotate 30 -> 로그파일은 30개맊큼 저장된 다음 제거 compress -> 지나간 로그파일들을 gzip으로 압축 missingok -> 로그파일이 없어도 오류 발생시키지 않음 notifempty -> 파일내용이 없으면 새로운 로그생성 안함 dateext -> 순환된 ..

Develope/LINUX 2018.11.27

[mod_jk] 개요 및 설치

** mod_jk(Tomcat Connectors)- Tomcat 프로젝트에서 제공하는 웹서버 연동모듈- https://tomcat.apache.org/download-connectors.cgi **mod_jk 기능- Woker 감시 기능(Cping/Cpong)- Connection Pooling- Sticky Session- Retry(Recovery)- Load Balance- worker Status 관리 **설치root 계정으로 로그인 : su - 다운로드 : wget http://www-eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.43-src.tar.gz 압축해제 : tar -zxvf tomcat-connectors-..

Develope/WEB 2018.11.27

[Apache http]

** 다운 및 설치- 다운로드 wget http://ftp.neowiz.com/apache/httpd/httpd-2.4.29.tar.bz2 - 압축풀기 tar –zxvf httpd-2.4.29.tar.bz2 - 구성 ./configure –prefix=/app/apache2.4 - 컴파일 make - 설치make install ** 아파치 실행- root 계정으로 로그인 su - - bin 디렉터리로 이동 cd /app/apache2.4/bin - 시작 ./apachectl start - 중지 ./apachectl stop ** 확인http://127.0.0.1 **웹서버 사용 이유1) 정적 파일의 처리- Static Contents에 대한 성능- Apache HTTP Server의 다양한 옵션 및 기능..

Develope/WEB 2018.11.27

RefreshableSqlSessionFactoryBean

쿼리문의 변경이 일어나면 재시작하지 않어도 refresh를 자동으로 해주는 클래스 어디서 로딩하는지는 아직모름~~ 찾아보겟음~~ import java.io.IOException;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.Timer;import java.util.TimerTask;import java.util.concurrent.locks.Lock;import ja..

Develope/DataBase 2018.11.21

[Python] SqlLite를 이용한 Create Table 및 Pandas 출력

*본 포스팅은 SLiPP 스터디를 진행하면서 위키 작성을 위해 작성하였습니다. SLiPP 충성충성~^^7 versionpython 3.6pip 18 시작전에 pip install sqlitepip install pandaspip install jupyter jupyter notebook 을 이용해 작성하였습다 Table order_list order_date text yyyyMMdd order_type number 주문타입 (매수 = '1' / 매도 = '2') item_code text 품번 hoga text 호가 (지정가: '00', 시장가: '03') count qauntity text 수량 price text 가격 status number 상태 (주문 전 : '0' , 주문완료 : '1') * c..

[Oracle] tomcat XDB 로그인 / 오라클 포트 변경

서버를 돌리는데 localhost:8080 이 뜨면서 XDB 로그인을 하라고 떳다.. https://okky.kr/article/36188 https://okky.kr/article/77147 8080포트는 Oracle이 이미 쓰고잇고 9090으로 서버를 바꾸엇는데 그와동시에 properties도 미친듯이 바꿔주는데 결국 고쳐지지 않아서 오라클 포트를 바꾸는거로~~~~ 사실 아직 저게 왜뜨는지 잘 모르겟다;... 1. sql plus 실행> sqlplus /noglog 2. 관리자로 연결SQL> conn /as sysdba 3. 현재 포트확인SQL> select dbms_xdb.gethttpport() from dual; 4. 포트변경 내장프로시져 실행SQL> exec dbms_xdb.sethttppor..

Develope/DataBase 2018.10.31

[JAVA] 헷갈려서 적는 @Component, @Repository, @Service, @Controller

참고 : http://namocom.tistory.com/421 1.10.1. @Component and Further Stereotype AnnotationsThe @Repository annotation is a marker for any class that fulfills the role or stereotype of a repository (also known as Data Access Object or DAO). Among the uses of this marker is the automatic translation of exceptions, as described in Exception Translation.Spring provides further stereotype annotations: ..

[HTML5] JQuery 시작하기

내취향이 아닌게 계속계속 나오고잇다.. JQuery syntax $(selector).function(); select : html Elements. * element* id selector (#) action() : 해당 엘리먼트에 대해 실행할 내역 ****selector$("p")$("#id")$(".class") $("p:first") : first element$(":radio") : all input type radio ******EVENT $(document).ready(function(){//to-do}); **EACH $('h1').each(function(index, item){$(item).css('color','pink');$(item).css('font-family','tohama'..

Develope/교육 2018.10.22

[HTML5] html 기본

글쓸때는 제대로 보이는데, 올리고 나니 먹히지 않는것들이 많다; * html 의 기본 템플릿 => 내부 내용 1. header의 약자h1h1h1h1h1h1h3h3h3h4h4h4 *결과h1h1h1hh1h1h1hh3h3h3h4h4h4 2. 문장 기호 = 줄바꿈 = 문단 구분 기호 this is Testhtml5 class 구글 LLC는 전 세계의 정보를 체계화하여 모든 사용자가 편리하게 이용할 수 있도록 하는 것을 목표로 하는 미국의 다국적 기업이다. 검색 서비스 제공을 주력으로 한다. 구글 검색은 2018년 5월 기준 전 세계 검색량의 90%를 점유하고 있다. description end this is Testhtml5 class 구글 LLC는 전 세계의 정보를 체계화하여 모든 사용자가 편리하게 이용할 수..

Develope/교육 2018.10.17

[JAVA] Exception 출력 정리

예전에는 Exception이 중요하다고 생각하지 않았어서 진짜 쥐약이다 이부분은 과거의 나를 깐다 ㅠ 1. e (기본) java.lang.ArithmeticException: / by zero 3. e.getMessage() => 뒤에 메세지만 / by zero 2. e.getLocalizedMessage() => 뒤에 메세지만 로컬 언어로? / by zero * 둘의 차이점은 https://stackoverflow.com/questions/24988491/difference-between-e-getmessage-and-e-getlocalizedmessageLocale.setDefault(Locale.KOREA); 4. e.getCause() => null 아닐때 찾으면 업뎃하겟음 null 5. e.ge..