본문 바로가기

centos

[draft] CentOS 7에서 yum update를 실행할 때 kernel 패키지를 제외하는 방법 CentOS 7에서 yum update를 실행할 때 kernel 패키지를 제외하는 방법CentOS 7에서 yum update를 실행할 때 특정 패키지, 예를 들어 커널 패키지를 제외하려면 exclude 설정을 사용할 수 있습니다. exclude 설정을 통해 특정 패키지를 업데이트에서 제외시킬 수 있습니다. 다음은 yum.conf 파일을 편집하여 커널 패키지를 업데이트에서 제외하는 방법입니다. 1. 편집기를 사용하여 yum.conf 파일을 엽니다.vi /etc/yum.conf[main]cachedir=/var/cache/yum/$basearch/$releasever###업데이트 시 kernel 이 포함된 패키지 제외exclude=kernel*keepcache=0debuglevel=2logfile=/var/.. 더보기
[draft] CentOS Linux와 CentOS Stream 비교 CentOS Linux와 CentOS Stream 비교CentOS Linux와 CentOS Stream은 모두 Red Hat Enterprise Linux(RHEL)을 기반으로 하는 오픈 소스 Linux 배포판입니다. 그러나 두 배포판에는 몇 가지 중요한 차이점이 있습니다. CentOS Linux는 RHEL의 안정적인 버전입니다. 새로운 RHEL 릴리스가 출시될 때마다 CentOS Linux는 RHEL의 이전 버전을 기반으로 합니다. CentOS Linux는 안정성과 지원을 중시하는 사용자에게 적합합니다. CentOS Stream은 RHEL의 다음 버전에 대한 개발 플랫폼입니다. 새로운 기능과 개선 사항은 CentOS Stream에 먼저 추가되며 RHEL 릴리스가 출시되면 CentOS Stream에서 이.. 더보기
[draft] HP 서버 스토리지 정보 확인(raid) HP 서버 스토리지 정보 확인(raid)Smart Storage Administrator (ssacli)패키지명 : ssacli-4.21-7.0.x86_64.rpmArray Configuration Utility(acucli)패키지명 : hpssacli-2.40-13.0.x86_64.rpm패키지 설치yum install -y ssacli-4.21-7.0.x86_64.rpm컨트롤러 명령어컨트롤러 정보 확인 명령어컨트롤러의 정보 표시hpssacli ctrl all show config$ hpssacli ctrl all show configSmart Array P410i in Slot 0 (Embedded) (sn: 5001412324380123E5) Port Name: 1I Port Name: .. 더보기
[draft] CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법 CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법테스트 환경운영체제 버전 정보$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)$ getconf LONG_BIT64DB : mysql 5.7.15MySQL 계정 생성groupadd -g 27 mysqluseradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -g 27 -u 27 mysql MySQL Community Server 다운로드 받기https://downloads.mysql.com/archives/community/작업 디렉토리로 이동cd /usr/local/src아카이브 파일 다운로드wget https:/.. 더보기
[draft] CentOS 7에서 Supervisor를 설치하는 방법 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치yum install epel-releaseSupervisor 설치supervisor 패키지 설치yum install -y supervisorsupervisor 버전 정보 확인supervisord --version$ supervisord --version3.4.0Supervisor 서비스 시작 및 활성화systemctl --now enable supervisord$ systemctl status supervisord● supervisord.service - Process Monitoring and Control Daemon Loaded: loaded .. 더보기
[draft] Let's Encrypt(Certbot)로 무료 SSL 인증서 발급하는 방법 Let's Encrypt(Certbot)로 무료 SSL 인증서 발급하는 방법1. Standalone 모드(웹 서버가 없는 경우)웹 서버 없이 Certbot이 자체적으로 임시 웹 서버를 실행해 인증을 처리하는 방식입니다. 특징기존 웹 서버가 없을 때 사용포트 80(HTTP) 또는 443(HTTPS) 가 열려 있어야 함임시 서버 구동 → 인증 → 자동 종료사전 준비방화벽에서 80/443 포트 오픈도메인이 서버 IP로 연결되어 있어야 함(A 레코드 설정)명령어 예시certbot certonly --standalone -d [도메인명1] -d [도메인명2]certbot certonly --standalone -d example.com -d www.example.comCertbot은 자체 HTTP 서버를 실행하여.. 더보기
[draft] CentOS 7에서 NGINX의 최신 버전을 설치하는 방법 CentOS 7에서 NGINX의 최신 버전(안정 버전)을 설치하는 방법nginx : High performance web server RHEL and derivatives : http://nginx.org/en/linux_packages.html#RHEL-CentOS테스트 환경운영체제 버전 정보$ cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2CentOS Linux 7 (Core)NGINX 설치EPEL 저장소 및 YUM Utilities 패키지 설치yum install -y epel-release yum-utilsnginx.repo 파일 생성sudo tee /etc/yum.repos.d/nginx.repo 더보기---nginx.repo 파일 확인cat.. 더보기
[draft] shasum 명령어 shasum 명령어shasum은 파일의 SHA(Secure Hash Algorithm) 체크섬을 계산하는 명령어입니다. 파일이나 데이터의 무결성을 검증하거나 파일이 변경되지 않았는지 확인하는 데 사용됩니다. perl-Digest, perl-Digest-SHA 패키지 설명$ yum info perl-DigestLoaded plugins: extras_suggestions, langpacks, priorities, update-motdInstalled PackagesName : perl-DigestArch : noarchVersion : 1.17Release : 245.amzn2Size : 28 kRepo : installedFrom repo .. 더보기