본문 바로가기

728x90

CentOS

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 2 CentOS Linux 7 (Core) NGINX 설치 EPEL 저장소 및 YUM Utilities 패키지 설치 yum install -y epel-release yum-utils nginx.repo 파일 생성 sudo tee /etc/yum.repos.d/nginx.repo 더보기
[VPN] Linux에서 SoftEther VPN 클라이언트 설치 SoftEther VPN 클라이언트 설치 softether-vpnclient 설치 $ cd /usr/local/src/ $ wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz $ tar xvfz softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz $ make --------------------------------.. 더보기
docker rmi 명령어 docker rmi 명령어 모든 이미지 삭제 docker rmi -f $(docker images -q) untagged 이미지만 조회 docker images -f "dangling=true" -q docker image untagged(none) 삭제 docker rmi $(docker images -f "dangling=true" -q) docker image 필터 적용 reference="registry.binddns.com/playground/elasticsearch:*" docker images -q --filter=reference="registry.binddns.com/playground/elasticsearch:*" $ docker images -q --filter=reference="r.. 더보기
[리눅스] 도커 컨테이너 IP 테이블 설정 실패 오류: IP 테이블 설정 실패: SKIP DNAT 규칙을 활성화할 수 없습니다. 그 이유는 방화벽(systemctl stop firewalld)이 꺼진 후 도커를 다시 시작해야 하기 때문입니다. (docker 데몬 운영 중에 firewalld 데몬을 내려서 발생한 에러입니다.) 도커 서비스 재시작 $ systemctl restart docker.service [오류 현상] docker run -it --rm centos:7 /bin/bash 도커 컨테이너 실행 후 구글 DNS로 ping 체크가 안 되고 있음 $ docker run -it --rm centos:7 /bin/bash Unable to find image 'centos:7' locally 7: Pulling from library/centos.. 더보기
HAProxy 로깅(haproxy logging) 설정하는 방법 HAProxy 로깅(haproxy logging) 설정하는 방법 HAProxy는 로드 밸런서 및 프록시 서버로 사용되는 오픈 소스 소프트웨어입니다. 로깅은 HAProxy에서 중요한 기능 중 하나로, 문제 해결 및 성능 모니터링을 위해 필요합니다. HAProxy의 로깅은 기본적으로 로그 파일 또는 로그 서버로 전송하는 방식으로 설정할 수 있습니다. HAProxy 로깅 설정 방법 로그 형식 정의하기 HAProxy는 로그를 기록할 때 사용할 로그 형식을 정의해야 합니다. 로그 형식은 원하는 정보를 포함하는 서식으로 구성됩니다. 예를 들어, IP 주소, 시간, 요청 메서드, 상태 코드 등을 포함할 수 있습니다. 로그 형식은 log-format 설정으로 정의합니다. 로그 목적지 선택하기 로그는 로그 파일 또는 원.. 더보기
CentOS 7에서 Created slice 및 Starting Session과 같은 로그를 제거하는 방법은 CentOS 7에서 Created slice 및 Starting Session과 같은 로그를 제거하는 방법 테스트 환경 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" message 로그 확인 $ tail -f /var/log/messages Aug 19 13:30:01 bvm-web12 systemd: Started Session 395 .. 더보기
CentOS 8에서 Yum Repository 서버를 구축하는 방법 CentOS 8에서 Yum Repository 서버를 구축하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 Repository 서버 구축 epel 패키지 설치 yum install -y epel-release createrepo 패키지 설치 yum install -y yum-utils createrepo 웹 서버(apache) 패키지 설치 yum install -y httpd mod_ssl 리포지토리 디렉터리 만들기(yum 저장소) mkdir -p /apps/repo_root/repo mkdir -p /apps/repo_root/repo/centos/7/{extras,isos,os,updates} mkdir -p /apps/repo.. 더보기
CentOS 7에서 bash 자동 완성을 사용하는 방법 CentOS 7에서 bash 자동 완성을 사용하는 방법 bash 셸의 자동 완성은 기본적으로 활성화되어 있습니다. 1. bash-completion 설치 CentOS 7에서 bash 자동 완성을 활성화하려면 bash-completion 패키지를 설치해야 합니다. sudo yum install -y bash-completion 2. bash-completion 활성화 bash-completion을 설치한 후에도 기본적으로 활성화되어 있지 않을 수 있습니다. 활성화하려면 .bashrc 파일을 수정합니다. sudo vim ~/.bashrc 3. bash-completion 스크립트 추가 편집기에서 .bashrc 파일을 열면 파일의 맨 끝에 다음 줄을 추가합니다. source /etc/profile.d/bash.. 더보기

728x90