목록리눅스 (196)
변군이글루 미러 사이트(Mirror Site)

CentOS 7 RabbitMQ 설치 방법 1. EPEL 저장소 설치 yum install -y epel-release 2. erlang 설치 yum install -y erlang 3. RabbitMQ 설치 yum install -y rabbitmq-server 4. Web Console 활성화 rabbitmq-plugins enable rabbitmq_management 5. RabbitMQ 서비스 등록 $ systemctl list-unit-files | grep rabbitmq-server rabbitmq-server.service disabled systemctl enable rabbitmq-server 6. RabbitMQ 서비스 기동 systemctl start rabbitmq-server ..

iperf3를 설치하고 사용하는 방법 TCP/UDP 대역폭 성능 측정 도구 iperf3는 네트워크 대역폭을 측정하기 위한 도구로 서버와 클라이언트 간의 대역폭 및 성능을 테스트하는 데 사용됩니다. 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 1. iperf3 패키지 설치 서버, 클라이언트 패키지 설치 CentOS 시스템 yum install -y iperf3 Ubuntu 시스템 sudo apt-get update sudo apt-get install iperf3 iperf3 버전 정보 iperf3 --version $ iperf3 --version iperf 3.1.7 Linux master 3.10.0-1160.36.2.e..

리눅스에서 HTTP Proxy Server 설정하기 1. 로그인 세션 동안만 유지되는 방법 export http_proxy=[proxy서버]:[proxy포트] export https_proxy=[proxy서버]:[proxy포트] unset http_proxy unset https_proxy 2. 로그인 세션이 종료된 후에도 프록시를 유지시키는 방법 *** .bashrc, .bash_profile, /etc/profile vim ~/.bashrc export http_proxy=[proxy서버]:[proxy포트] export https_proxy=[proxy서버]:[proxy포트] source ~/.bashrc 3. Proxy 설정 적용 확인 env | grep -i proxy http_proxy 및 ht..

Rkhunter(Rootkit Hunter)을 소스 코드로부터 컴파일하여 설치하는 방법 rkhunter로 해킹 여부 체크하기 단계 1: rkhunter 소스 코드 다운로드 Rkhunter의 최신 소스 코드를 다운로드합니다. cd /usr/local/src wget https://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz 압축을 해제합니다. tar -xvf rkhunter-1.4.0.tar.gz 단계 2: rkhunter 컴파일 및 설치 rkhunter 디렉토리로 이동합니다. cd rkhunter-1.4.0 다음 명령어를 사용하여 rkhunter를 컴파일하고 설치합니다. sudo ./installer.sh ..

PHP MongoDB 확장 모듈을 설치하는 방법(mongodb.so 모듈) MongoDB PHP 확장 모듈 소스 코드 다운로드 git clone https://github.com/mongodb/mongo-php-driver.git 빌드 및 설치 cd mongo-php-driver/ git submodule update --init /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make all make install $ make install --output-- PATH="$PATH:/sbin" ldconfig -n /usr/local/src/mongo-php-driver/modules -------..

OpenSSL을 사용하여 파일을 암호화하고 복호화하는 방법 OpenSSL은 암호화 및 복호화를 수행할 수 있는 강력한 도구 중 하나입니다. 테스트 환경 운영체제 버전 및 BIT $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 OpenSSL 버전 $ openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 참고: 아래의 예제에서는 대칭 키(암호화 및 복호화에 사용되는 키)를 생성하고 파일을 암호화하는 방법을 설명합니다. 이 예제에서 사용된 대칭 암호화 알고리즘은 AES (Advanced Encryption Standard)입니다. 1. 대칭 키 생성 먼저 대칭 키를 생성합니다..

rsync 명령어 사용법(Push) rsync [OPTION...] SRC... [USER@]HOST::DEST rsync -avzhpgoq /data/resize_img/2021/{01,02,03,04,05} root@1.1.1.1:/data/resize_img/2021/ 옵션 설명 -v, --verbose increase verbosity -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) -r, --recursive recurse into directories -b, --backup make backups (see --suffix & --backup-dir) -u, --update skip files that are newer on the rece..

OpenLDAP SSL(cert) 적용 시 에러 certs.ldif 생성 $ vim certs.ldif dn: cn=config changetype: modify replace: olcTLSCertificateFile olcTLSCertificateFile: /etc/openldap/certs/sangchul_kr_cert.pem dn: cn=config changetype: modify replace: olcTLSCertificateKeyFile olcTLSCertificateKeyFile: /etc/openldap/certs/sangchul_kr_key.pem 에러 ldap_modify: Other (e.g., implementation specific) error (80) $ ldapmodify -..