본문 바로가기

반응형

Linux

gzip 명령어, gunzip 명령어 gzip 명령어, gunzip 명령어 gzip과 gunzip은 유닉스(리눅스) 시스템에서 사용되는 명령어로, 파일들을 압축하거나 해제하는데 사용됩니다. gzip은 파일을 압축하고, gunzip은 압축된 파일을 해제합니다. gzip 명령어의 기본 구문 gzip [옵션] [파일] gunzip 명령어의 기본 구문 gunzip [파일.gz] 주요 옵션 (gzip) -c: 압축한 파일을 표준 출력으로 출력 (stdout) -d 또는 --decompress: 압축 해제 -r 또는 --recursive: 디렉토리를 재귀적으로 압축 또는 해제 -v 또는 --verbose: 상세 정보 출력 사용 예시 파일 file.txt를 압축하여 file.txt.gz로 저장 gzip file.txt file.txt: 압축할 파일 fi.. 더보기
CentOS 7에서 PHP rdkafka 확장(Extension) 모듈을 설치하는 방법 CentOS 7에서 PHP rdkafka 확장(Extension) 모듈을 설치하는 방법 테스트 환경 nginx php-fpm PHP 버전 확인 php -v $ php -v PHP 7.3.27 (cli) (built: Feb 2 2021 10:32:50) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.27, Copyright (c) 1999-2018, by Zend Technologies PHP 저장소 버전 확인 yum info php | egrep 'Name|Arch|Version|Repo' 2 $ yum info p.. 더보기
ssh 접속 시 no matching key exchange method found 에러 ssh 접속 시 no matching key exchange method found 에러 테스트 환경 $ cat /etc/redhat-release CentOS release 5.6 (Final) $ getconf LONG_BIT 32 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [에러] Unable to negotiate with 192.168.0.101 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-h.. 더보기
CentOS 8에서 Webalizer를 설치하는 방법 CentOS 8에서 Webalizer를 설치하는 방법 Webalizer는 웹 서버 로그를 분석하고 웹 사이트 트래픽을 시각화하는 데 사용되는 오픈 소스 웹 로그 분석 도구입니다. Webalizer는 다양한 유형의 웹 서버 로그를 지원하며, 다양한 시간 범위 및 요약 수준으로 웹 사이트 트래픽을 분석할 수 있습니다. Webalizer는 또한 웹 사이트 트래픽의 원천을 분석하고, 가장 인기 있는 웹 페이지를 식별하고, 각 웹 페이지의 평균 다운로드 시간을 계산할 수 있습니다. Webalizer를 사용하려면 먼저 웹 서버 로그를 Webalizer의 데이터베이스에 저장해야 합니다. Webalizer는 다양한 방법으로 웹 서버 로그를 가져올 수 있습니다. 가장 일반적인 방법은 Webalizer를 웹 서버에 설치하.. 더보기
[linux] rpcgen install for centos 8 rpcgen install for centos 8 CentOS-PowerTools.repo create file $ vim /etc/yum.repos.d/CentOS-PowerTools.repo # CentOS-PowerTools.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 client. You should use this for CentOS updates # unless you are manually picking other m.. 더보기
curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 버전 정보 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets http code 출력 curl -s -o /dev/nul.. 더보기
[리눅스] Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 구성 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 카프카 클러스터 다이어그램 이미지 출처 : http://www.liferaysavvy.com/2021/07/setup-kafka-cluster.html Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 java 설치 $ yum install -y java-11-openjdk.x86_64 $ java --version openjdk 11.0.13 2021-10-19 LTS OpenJDK Runtime Environment 18.9 (build 11.0.13+8-.. 더보기
CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치 yum install epel-release Supervisor 설치 supervisor 패키지 설치 yum install -y supervisor supervisor 버전 정보 확인 supervisord --version $ supervisord --version 3.4.0 Supervisor 서비스 시작 및 활성화 systemctl --now enable supervisord $ systemctl status supervisord ● supervisord.service - Process Monitoring and Control Daemon Load.. 더보기

728x90
반응형