Linux

리눅스 서버에서 ssl 인증서 만료일 확인하는 방법! 사용하는 서버마다 경로가 다를텐데 보통 /etc 하위에 넣는 것으로 보입니다. 만료일 확인 만료일 확인 [~~~ /etc/ssl/certs]$ openssl x509 -enddate -noout -in /etc/ssl/certs/ca-bundle.crt notAfter=Dec 31 09:37:37 2030 GMT 인증서 전체 유효기간 확인 인증서 전체 유효기간 확인 [~~~ /etc/ssl/certs]$ openssl x509 -dates -in /etc/ssl/certs/ca-bundle.crt notBefore=May 5 09:37:37 2011 GMT notAfter=Dec 31 09:37:37 2030 GMT
tail -f A.log | grep 'TIMESTAMP' | grep '12' grep 명령어는 리눅스에서 로그를 볼 때 자주 사용하는 명령어로 여러 옵션을 알아두면 좋을 것이라고 생각이 들어서 정리해 봤습니다! 실시간으로 로그를 보려면 tail -f 명령어 사용 이미 찍힌 로그들 확인하려면 cat 명령어 사용 gerp 명령어 OR 조건 1. -E 옵션을 붙여서 | 로 구분해주면 됩니다. tail -f A.log | grep 'Exception|ERROR' -> A.log 에서 'Exception' OR 'ERROR'가 있는 로그 출력 2. 아래와 같이 로그 2개를 동시에 grep 잡을 수도 있습니다 cat A.log -f B.log | grep -E 'Exception|ERROR' -> A.log 와..
확인 방법 $ which watch /usr/bin/watch 사용법 $ watch --help Usage: watch [options] command Options: -b --beep beep if command has a non-zero exit -c --color interpret ANSI color and style sequences -d --differences[=] highlight changes between updates -e --errexit exit if command has a non-zero exit -g --chgexit exit when output from command changes -n --interval seconds to wait between updates -p --p..
- 광속거북이 -
'Linux' 태그의 글 목록