본문 바로가기

Server/리눅스

(5)
[Centos7] 리눅스 로그 자동 삭제 스크립트 -type f -mtime +10 -exec rm {} + 타입 -type f -type f : 파일 -type d : 디렉토리 -mtime -mtime : 수정된 날짜 시간 기록을 찾는 옵션입니다. -ctime : 생성된 날짜 시간 기록을 찾는 옵션입니다. -atime :은 읽히거나 실행 됐을때의 기록을 찾는 옵션입니다. - + 로 수정된 날짜 기준
[Centos7] Tomcat7 버전 memory leak 및 서버관리 SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Jul 08, 2021 9:10:04 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads SEVERE: The web application [] appears to have started a thread named [Abandoned..
Apache + tomcat7, mod-jk 설치까지 yum 업데이트 1. yum -y update httpd firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload systemctl enable httpd systemctl start httpd jdk 설치 yum install java-1.8.0-openjdk-devel.x86_64 톰캣 설치 wget http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.76/bin/apache-tomcat-7.0.76.tar.gz tar xvfz apache-tomcat-7.0.76.tar.gz mv apache-tomcat-7.0.76 ..
데스크탑에 DB 및 Web서버용 리눅스 설치하기 LAN 카드 모델에 따라 필수적으로 드라이버를 설치해 줘야 하는 경우도 있음. 설치 정보 1. CentOS 7.5 - JAVA(JDK 1.8+) ==> 개발용 jdk - Apache 2.2.34 - Tomcat 8.5 - MariaDB 10.4 Apache2.2.34 + tomcat 8.5.21 연동 작업 내용 ð /app/apache/conf 폴더 내의 httpd.conf, workersproperies 연동 및 각 사이트 설정 ð /app/apache/conf/extra 폴더 내의 httpd-vhosts.conf 파일로 가상 호스트 설정 ð /app/tomcat8.5.21/conf 폴더 내의 server.xml 파일을 통해 각 서버 포트 설정 2. java, apache, tomcat전부 /app 폴..
top 명령어 top 명령어는 서버의 cpu 및 메모리 등 사용률을 알 수 있다. PID : 프로세스 아이디 USER : 프로세스를 실행한 계정 PR : 우선순위 NI : Nice Value값. 값이 낮으면 Nice Value 우선순위가 높음 VIRT : 가상 메모리 사용률 RES : 현재 페이지의 크기(Resident Size) SHR : 프로세스에 의해 사용된 메모리를 나눈 메모리의 총합 S : 프로세스의 현재 상태 S R W Z sleeping running swapped out porcess zombies %CPU : CPU의 사용률 %MEM : 메모리의 사용률 TIME+ : 프로세스가 사용된 시간 COMMEND : 시행된 명령어 자주 사용하던 명령어만 작성했다. 추후에 업데이트할 예정 단축키 설명 Ctrl +..