Linux 10

[Linux 오류] "Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again" 해결

원인 ca-bundles.crt가 너무 오래되면 생기는 오류이다 최신 버전의 CentOS로 업그레이드하지 않을 거라면 다른 방법으로 해결한다. 해결 해결 방법은 epel.repo를 https 사용에서 http로 변경하는 것이다. [root@centos1 centos]# yum -y update Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "T..

Linux/오류 2022.03.31

[Linux 오류] "[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"Trying other mirror." 해결

오류 "http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"Trying other mirror." [root@centos1 centos]# yum -y update Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile http://download.fedoraproject.org/pub/epel/6/x86_64/rep..

Linux/오류 2022.03.31

[Linux] yum "[Errno 14] Peer cert cannot be verified or peer cert invalid" 버그 해결

CentOS6 에서 나타나는 버그다. # /etc/yum.conf에 sslverify=false를 추가하여 SSL 유효성 검사를 비활성화 한 후 # yum --disablerepo=\* --enablerepo=base,updates update 하면 해결 된다. 안되면 /etc/yum.repos.d/CentOS-Base.repo 파일이 아래와 일치하는지 확인한다 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the..

Linux/오류 2022.03.31

[Linux] /var/spool/mail/root 삭제

먼저, 메시지를 삭제하기 전에 먼저 모든 루트 메일을 읽어보고 일부 중요한 이메일이 삭제되지 않게 주의해야한다. Linux stdout 사용 가장 간단한 방법이다. # > /var/spool/mail/root 리눅스의 블랙홀 파일 /dev/null 이용 /dev/null 파일 의 내용을 읽으면 즉시 EOF ( End Of File )가 반환된다. # cat /dev/null > /var/spool/mail/root 파일을 버린 후 cat, more 또는 less 명령어로 파일 내용이 성공적으로 지워졌는지 확인한다. less 명령어는 바로 END를 반환 해야한다. crontab 설정 예시는 자정마다 실행되는 crontab 작업이다. # 0 0 * * * cat /dev/null > /var/spool/ma..

Linux 2022.01.31

[CentOS] You have new mail in /var/spool/mail/root

/var/spool 이란 /var/spool 에는 일종의 나중 처리를 기다리는 데이터가 들어 있습니다. /var/spool어떤 종류의 나중 처리를 기다리는 데이터를 포함합니다. 데이터 /var/spool입력은 미래에 (프로그램, 사용자 또는 관리자에 의해) 수행될 작업을 나타냅니다. 데이터가 처리된 후 삭제되는 경우가 많습니다 /var/spool 하위 디렉토리 lpd 프린터 스풀 디렉토리(선택 사항) mqueue 보내는 메일 대기열(선택 사항) news 뉴스 스풀 디렉토리(선택 사항) rwho Rwhod 파일(선택 사항) uucp UUCP용 스풀 디렉토리(선택 사항) 참고 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s14.html

Linux/CentOS 2022.01.31