centos 7 썸네일형 리스트형 [리눅스] kcat(kafkacat) 명령어 kcat(kafkacat) 명령어 kcat - Apache Kafka 생산자(producer) 및 소비자(consumer) 도구 기본 환경 설명 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 kafkacat 설치 gcc-c++, git, librdkafka-devel 설치 $ yum install -y gcc-c++ git librdkafka-devel kafkacat 다운로드(git clone), 컴파일 및 설치 $ git clone https://github.com/edenhill/kafkacat $ cd kafkacat $ ./configure $ make && make install $ kca.. 더보기 [리눅스] supervisor(supervisord 데몬) 설치하기(centos) supervisor(supervisord 데몬) 설치 UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치 yum install epel-release supervisor 설치 supervisor 패키지 설치 yum install -y supervisor supervisor 버전 정보 확인 supervisord --version $ supervisord --version 3.4.0 부팅 시 시작하도록 supervisord 데몬을 시작하고 활성화합니다. systemctl --now enable supervisord $ systemctl status supervisord ● supervisord.service - Process Monitoring and Control Daemon Loade.. 더보기 [PHP] PHP-FPM 최신(php-fpm 7.4) 버전 설치하기 PHP-FPM 최신(php-fpm 7.4) 버전 설치하기 php-fpm : PHP FastCGI Process Manager EPEL 및 YUM Utilities 패키지 설치 $ yum -y install epel-release yum-utils Remi 저장소 설치 $ yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm remi 저장소 활성화 PHP 5.4 비활성화(default version) 및 PHP 7.4 활성화 default version 정보 $ yum info php | egrep 'Name|Arch|Version|Repo' Name : php Arch : x86_64 Version : 5.4.45 php 5.4 비.. 더보기 [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 --------------------------------.. 더보기 [명령어] mkpasswd 명령 mkpasswd 명령 $ mkpasswd -bash: mkpasswd: command not found expect 패키지 설치(mkpasswd 명령) $ yum install -y expect $ which mkpasswd /usr/bin/mkpasswd 사용법 usage: mkpasswd [args] [user] where arguments are: -l # (length of password, default = 9) -d # (min # of digits, default = 2) -c # (min # of lowercase chars, default = 2) -C # (min # of uppercase chars, default = 2) -s # (min # of special chars, defa.. 더보기 [명령어] 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:*" 48cbfb7e4f8e $ docker rmi -f `docker.. 더보기 [리눅스] 도커 컨테이너 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.. 더보기 [리눅스] CentOS Yum Repository 서버 구축 CentOS 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/r.. 더보기 이전 1 2 3 다음