안녕하세요.. 오늘 살펴볼 주제는 Tomcat 의 log 관련설정법입니다. 많은 개발자들이 개발환경으로 Tomcat 을 많이 사용하고 있습니다. 그리고 log 처리는 log4j를 사용합니다.그러나 JDK에서 기본으로 제공하는 Logging 클래스도 꽤 쓸만한 기능을 제공하고 있습니다. java.util.logging 추상 클래스가 바로 그것인데요, 이 클래스를 상속받아 구현한 클래스를 줄여서 JULI 라고 부릅니다. 운영시에야 효율을 위해 최소한의 로그를 남기는것이 좋겠지만, 반대로 개발시에는 최대한의 많은 로그를 남기는것이 디버깅에 효과적입니다. 1. logging.properties의 위치 a) 기본적인 Global 설정은 tomcat 디렉토리의 conf 입니다. - 이곳에 파일을 두고 설정하면 해당..
mysql.time_zone... 테이블들이 비어있을 경우root 계정으로 .../mysql/bin 폴더에서./mysql_tzinfo_to_sql /usr/share/zoneinfo | ./mysql -uroot -p mysql 완료가 되면 테이블에 데이터가 쌓인다. 현재 셋팅 된 시간 정보 보기select @@global.time_zone, @@session.time_zone; set time_zone = 'Asia/Seoul'; 로 설정하면 session.time_zone을 설정하는듯....session.time_zond만 변경하면 접속당시의 설정만 바뀌므로 영구적으로 바꾸고 싶은 경우에는SET GLOBAL time_zone='Asia/Seoul; 이렇게 하면 됨.[출처] mysql 현재시간 설정|작..
On Ubuntu the configuration file is called ~/.selected_editorWith the following command you can select the default editor again:$ select-editorRemoving the file in your home directory also works.$ rm ~/.selected_editorOnly setting the variables $VISUAL or $EDITOR will work but is only persistent if you write it to a script which is executed in your environment.Add to your rc file$ echo "export V..
Installationwget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins UpgradeOnce installed like this, you can update to the later version of Jenkins (when it comes out) by running the following commands:sudo apt-get up..
톰캣(Tomcat)을 셋팅하고 Web 프로그램을 하다보면 post 혹은 get 방식으로 파라미터(parameter)을 전달할때 한글이 이상하게 깨져서 나올 때가 있습니다. 위와 같은 경우에는 Encording 방식을 변경 함으로써 한글 깨짐을 방지 할 수 있습니다. 1. get 방식에서 한글이 깨지는 경우 tomcat 설치 폴더의 conf 폴더에서 server.xml 파일을 열고아래와 같이 되어 있는 부분에 URIEncoding="utf-8" 를 추가하여 줍니다. 2. post 방식에서 한글이 깨질 경우 tomcat 설치 폴더의 conf 폴더에서 web.xml 파일을 열고 setCharacterEncodingFilter /*부분의 주석과 setCharacterEncodingFilter org.apache..
설치된 패키지 확인 : dpkg -l | grep -i maria 삭제 : sudo apt-get purge --auto-remove *mariadb* 실제 삭제 구문.sudo apt-get purge --auto-remove mariadb-server-5.5 root@ip-172-31-6-11:~# dpkg -l | grep -i mariaii libmariadbclient18 10.1.16+maria-1~wily amd64 MariaDB database client libraryii libmysqlclient18 10.1.16+maria-1~wily amd64 Virtual package to satisfy external dependsrc mariadb-client-5.5 5.5.53+maria-1..
Here are the commands to run to install MariaDB on your Ubuntu system:sudo apt-get install software-properties-common sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main'Once the key is imported and the repository added you can install MariaDB w..