리눅스 썸네일형 리스트형 [리눅스] ping, telnet으로 통신(포트) 상태 확인 ping, telnet으로 통신(포트) 상태 확인 ping test(ICMP) $ ping -c 3 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=105 time=26.5 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=105 time=26.5 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=105 time=26.5 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 26.519.. 더보기 [리눅스] PHP redis 확장(Extension)을 설치하는 방법 PHP redis 확장(Extension)을 설치하는 방법 redis 설치 $ yum -y install gcc gcc-c++ make jemalloc tcl $ yum install redis $ systemctl --now enable redis $ redis-cli -h 127.0.0.1 -p 6379 ping redis extension 모듈 설치 phpredis 패키지 다운로드 $ wget https://github.com/phpredis/phpredis/archive/develop.zip $ unzip develop.zip $ cd phpredis-develop PHP 확장 컴파일, 구성 환경, 컴파일 #PHP 확장 컴파일 $ /usr/local/php/bin/phpize #구성 환경 $ ./.. 더보기 [리눅스] OpenLDAP cert(TLS/SSL) 적용 시 에러 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 -.. 더보기 [리눅스] Zabbix 로그 파일 시간 형식(Log time format) Zabbix 로그 파일 시간 형식(Log time format) zabbix agent 로그 tail -f /var/log/zabbix/zabbix_agentd.log $ tail -f /var/log/zabbix/zabbix_agentd.log | grep agent.ping 14938:20210624:114055.396 Requested [agent.ping] 14937:20210624:114155.373 Requested [agent.ping] 14939:20210624:114255.787 Requested [agent.ping] 14938:20210624:114355.987 Requested [agent.ping] 14939:20210624:114455.011 Requested [agent.pin.. 더보기 [리눅스] 자체 서명된 SSL 인증서 만들기(openssl) 자체 서명된 SSL 인증서 만들기(openssl) 인증서 생성 openssl req -newkey rsa:4096 \ -x509 \ -sha256 \ -days 3650 \ -nodes \ -out www_sangchul_kr.crt \ -keyout www_sangchul_kr.key \ -subj "/C=KR/ST=Seoul/L=Jongno-gu/O=SangChul Co., Ltd./OU=Infrastructure Team/CN=www.sangchul.kr" $ openssl req -newkey rsa:4096 \ > -x509 \ > -sha256 \ > -days 3650 \ > -nodes \ > -out www_sangchul_kr.crt \ > -keyout www_sangchul_kr.k.. 더보기 [리눅스] 메일 SMTP 오류 코드 정리 메일 SMTP 오류 코드 정리 400 에러(송신단계의 문제) 1. 421 Server too busy - 수신 측 서버의 일시 장애로 연결이 안되는 현상으로 이는 수신 측 서버의 SMTP 세션이 Full 이거나 수신 측 서버의 트래픽으로 인해 새로운 SMTP 연결을 만들지 못하는 경우 발생할 수 있습니다. 잠시 후 다시 시도해 보거나 오류가 계속 될 경우 수신 측 관리자에게 문의 하시기 바랍니다. 2. 421-Microsoft ESMTP MAIL Service, Version: 5.0.2195.5600 ready at Service not available, closing transmission channel - 수신 측 서버인 Microsoft ESMTP 서비스가 정상적으로 동작하지 않아 메일을 송신하.. 더보기 [리눅스] OpenLDAP 설치 및 구성 OpenLDAP 설치 및 구성 OpenLDAP 설치 $ yum install -y compat-openldap openldap openldap-servers openldap-clients OpenLDAP 데이터베이스 설정 $ cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG $ chown ldap. /var/lib/ldap/DB_CONFIG $ systemctl --now enable slapd.service $ systemctl status slapd.service ● slapd.service - OpenLDAP Server Daemon Loaded: loaded (/usr/lib/systemd/system/slapd.se.. 더보기 [리눅스] jenkins 도커 컨테이너로 올리기 jenkins 도커 컨테이너로 올리기 docker-compose.yml 편집 $ git clone https://github.com/anti1346/docker-jenkins.git $ cd docker-jenkins $ vim docker-compose.yml version: '3' services: master: image: jenkins/jenkins:lts restart: always container_name: jenkins privileged: true #user: root #environment: volumes: - /usr/share/zoneinfo/Asia/Seoul:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock - /usr.. 더보기 이전 1 ··· 65 66 67 68 다음