본문 바로가기

반응형

centos 7

HAProxy 로깅(haproxy logging) 설정하는 방법 HAProxy 로깅(haproxy logging) 설정하는 방법 HAProxy는 로드 밸런서 및 프록시 서버로 사용되는 오픈 소스 소프트웨어입니다. 로깅은 HAProxy에서 중요한 기능 중 하나로, 문제 해결 및 성능 모니터링을 위해 필요합니다. HAProxy의 로깅은 기본적으로 로그 파일 또는 로그 서버로 전송하는 방식으로 설정할 수 있습니다. HAProxy 로깅 설정 방법 로그 형식 정의하기 HAProxy는 로그를 기록할 때 사용할 로그 형식을 정의해야 합니다. 로그 형식은 원하는 정보를 포함하는 서식으로 구성됩니다. 예를 들어, IP 주소, 시간, 요청 메서드, 상태 코드 등을 포함할 수 있습니다. 로그 형식은 log-format 설정으로 정의합니다. 로그 목적지 선택하기 로그는 로그 파일 또는 원.. 더보기
CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 PHP-FPM : PHP FastCGI Process Manager CentOS 7은 PHP 5.x를 지원하며, PHP 8.1은 공식 CentOS 7 저장소에 포함되어 있지 않습니다. EPEL 저장소 및 YUM Utilities 패키지 설치 sudo yum install -y epel-release yum-utils Remi 저장소 설치 sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm CentOS 7의 기본 PHP 버전 정보 yum info php | egrep 'Name|Arch|Version|Repo' $ yum info php | egrep 'Name|Ar.. 더보기
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.. 더보기
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.. 더보기
rdate 명령어 | 시간 동기화 rdate 명령어 rdate 명령어는 리눅스나 유닉스 시스템에서 시간 서버로부터 시간 정보를 가져오는 명령어입니다. rdate 명령어는 특정 시간 서버와 동기화하여 시스템 시간을 조정하는 데 사용됩니다. 일반적으로는 다음과 같이 사용됩니다. rdate 명령어 설치 rdate 명령어는 대부분의 리눅스 시스템에 기본적으로 설치되어 있습니다. 따라서 별도의 설치 과정이 필요하지 않을 수 있습니다. rdate 명령어 사용 예시 rdate 명령어는 다음과 같은 구문을 가집니다. rdate [옵션] [서버 주소] [서버 주소]: 시간 정보를 가져올 시간 서버의 주소입니다. 일반적으로 공용 NTP(Network Time Protocol) 서버를 사용합니다. 원격지(time.bora.net) 시간 확인 rdate -p.. 더보기
[리눅스] 킥스타트로 설치 자동화하기 킥스타트로 설치 자동화하기 selinux perl -pi -e 's/^SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config reboot reboot Packages Installation yum install -y tftp tftp-server syslinux-tftpboot xinetd dhcp dhcp-devel syslinux yum install -y epel-release yum install -y nginx tftp sed -i '/disable/ s/yes/no/' /etc/xinetd.d/tftp dhcpd cat /usr/share/doc/dhcp*/dhcpd.conf.example > /etc/dhcp/dhcpd.conf cat > /e.. 더보기
KVM Virsh Console Access On CentOS 7 KVM Virsh Console Access On CentOS 7 Enable Serial Console on the Virtual Machine 1. console=ttyS0 추가 GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 crashkernel=auto rhgb quiet console=ttyS0 vi /etc/default/grub $ vi /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_.. 더보기
[리눅스] CentOS 7에서 방화벽(firewalld) 설정하기 CentOS 7에서 방화벽(firewalld) 설정하기 방화벽 실행 여부 확인 firewall-cmd --state $ firewall-cmd --state not running 방화벽 실행 systemctl start firewalld.service 방화벽 실행 여부 확인 firewall-cmd --state $ firewall-cmd --state running FTP 서비스 추가 firewall-cmd --add-service=ftp $ firewall-cmd --add-service=ftp success public에 속한 모든 서비스/포트 목록 출력 firewall-cmd --zone=public --list-all $ firewall-cmd --zone=public --list-all publ.. 더보기

728x90
반응형