본문 바로가기
반응형

IT/리눅스17

패키지 다운로드 리눅스 패키지 다운로드 http://rpm.pbone.net/ RPM Search Please enter searched expression rpm.pbone.net https://rpmfind.net/ Rpmfind mirror Rpmfind mirror located at Insa-lyon.fr News: Location: This server is located in Lyon, within the Creatis laboratory. Like other rpmfind mirrors, this machine is using a large amount of bandwidth, and credits go to the CISR, Centre Inter-Etablissement pour rpmfind.net .. 2022. 4. 28.
SELinux 현재 SELinux 의 동작 모드는 sestatus 명령어로 확인할 수 있다. # getenforce //상태확인 # setenforce 0 //Permissive 허용 # setenforce 1 //enforce 강제 selinux log -> /var/log/audit/audit.log selog -> ps -ef | grep auditd # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 24 Policy from config file: targeted 특정 daemon 이나 서비스에 문제가 있을 경우 -> set.. 2022. 4. 6.
tomcat 설치 https://www.oracle.com/java/technologies/downloads/ ==================================== vi /usr/local/tomcat8/conf/server.xml /usr/local/tomcat8/bin/startup.sh logs/catalina.out //로그 확인 ==================================== vi /etc/profile //하단에 입력 ... JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-3.el8.x86_64 CATALINA_HOME=/usr/local/tomcat8 CLASSPATH=$JAVA_HOME/jre/lib:$JAVA_HOME/lib.. 2022. 4. 6.
쉘 스크립트 //!-- 쉘 확인 [root@j ~]# echo $SHELL /bin/bash //!-- 특정 디렉터리 n일 전부터 m일 전까지 변경 파일 목록 vi find-mtime.sh #!/bin/sh logdir="/var/log" # 2일~7일 사이 변경 로그 목록 find $logdir -name "*.log*" -mtime -7 -mtime +2 -print #오래된 로그파일 삭제 find $logdir -name "*.log*" -mtime +365 -print | xargs rm -fv ※무한 반복 스크립트 시간 while true; do date; sleep 1 ; clear ; done 값 증가 #!/bin/sh i=0 while [ $i -le 2] do echo Number: $1 ((i++).. 2022. 3. 25.
반응형