전체 글232 쉘스크립트 팁 응용 실행할때 STDOUT, STDERR을 무시 java -jar app.jar > /dev/null 2> /dev/null &1 & OR java -jar app.jar &> /dev/null > /dev/null : 표준 입출력(1생략)을 무시 2> /dev/null : 표준 에러를 무시 : 새로쓰기 >> : 이어쓰기 tail tail -f : 있는 파일 팔로잉 tail -F : 없는 파일도 팔로잉 ln ln -s tomcat_log.$(date +"%Y-%m-%d-0").log tomcat.log 날짜 형식으로 심볼릭 .. 2022. 8. 22. [graylog2] 적용 증가된 서버로 인해 분산된 로그를 한눈에 보고자 도입한 GrayLog2여러 후보중 가장 큰 이유는 오픈소스이고, 최근에 업데이트가 활발했기때문에 다양한 환경에 추가할 수 있도록 라이브러리가 존재했다. 현재 구조는 Front Web과 Backend API의 2-Tier 구조인데목표는 둘다 붙이는 것이었지만 일단 중요한 Backend API 서버군에 목표를 두었다. Backend API는 Grails 2.4.3 프레임워크로 구성이 되어있어, graylog2용 Grails Plugin을 어렵지 않게 구할 수 있었다. dependencies in BuildConfig.groovy--------------------------------------runtime 'org.graylog2:gelfj:1.1.13' C.. 2018. 5. 22. [Nginx + Tomcat] 무중단 배포 구현하기 2 How to doEdit1. nginx 설치https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7sudo yum install epel-release -y sudo yum install nginx -y sudo systemctl start nginx nginx.conf 설정#서브도메인에 prod를 포함하고, 로컬 머신으로 부터 요청이 올경우 중단이 되지 않는 인스턴스로 응답 server { listen 80; server_name ~^prod+.*$ localhost; include /etc/nginx/conf.d/*.inc; # for switch configuration location / { proxy_pas.. 2018. 4. 19. [Nginx + Tomcat] 무중단 배포 구현하기 개요기존의 1 machine = 1 WAS Instance 구조로소스 패치시 해당 머신을 서비스에 사용하지 못하던 부분을 해소하고자동 배포를 구현하기 위해 고안된 구조입니다. In the before as 1 machine = 1 WAS Instance structure,When patching a source, it is possible to solve a situation where the machine can not be used for a service,It is for structure designed to implement automatic deployment. 그림에서 보이는 바와 같이, 기존의 하나의 머신은 하나의 Nginx와 두개의 Tomcat Instance를 가집니다.Nginx의 Re.. 2018. 3. 20. 이전 1 ··· 4 5 6 7 8 9 10 ··· 58 다음