DevEnjoy

One Step Closer

time

Ubuntu tomcat time 설정

2016년 2월 4일 by YongPwi Leave a Comment

최근에 AWS를 세팅하여서 사용하고 있었는데

처음 서버 세팅을 하여 아무 생각 없이 사용 하였는데 서버 time이 6시간이 느린것을 알게 되었다,,,

별 생각없이 쓰다가 tomcat에 올라간 서비스들의 log를 확인하다 보니 시간이 달라서 꽤나 신경 쓰였다,,,

오늘 생각난 김에 server time 설정하자 라고 해서 작업 했더니

server time은 잘 바뀌었는데 tomcat log에 찍히는 time은 안 바뀌더라,,,

좀 뒤져보다 해결해서 나중을 위해서 정리해 둔다,,,

  • Ubuntu server time 설정
1
sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
  • tomcat time 설정

tomcat 설치 경로로 가서 bin 폴더 하위에 setenv.sh 파일이 있으면 해당 파일에 없으면 생성하여 환경 설정 해준다.

1
export CATALINA_OPTS=-Duser.timezone=Asia/Seoul
Posted in: Java, Programing Tagged: time, Tomcat, ubuntu

Calendar

6월 2025
일 월 화 수 목 금 토
« 4월    
1234567
891011121314
15161718192021
22232425262728
2930  

Recent Posts

  • ubuntu bastion 설정
  • Spring Boot properties 암호화
  • Git Repository Bitbucket과 Issue Tracker Redmine 연동 설정
  • Spring Security 동일 session 제어
  • Spring @Mock, @Mockbean, @InjectMock

Recent Comments

  • pzotov (Ubuntu 14.04에서 Sonarqube 6.7.1 service 등록)
  • cours de theatre paris (AWS ELB와 Auto Scaling 연동, nginx)
  • bayern munich (IntelliJ EAP Font rendering)
  • camiseta del chelsea (OS X에서 APP 아이콘 변경)
  • cheap football shirts replica (jQuery Ajax에서 json Array 직렬화)

Copyright © [the-year] [site-link].

Powered by [wp-link] and [theme-link].