본문 바로가기

728x90

전체 글

C276x260 리눅스 rsync 명령어 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.. 더보기
C276x260 [리눅스] 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 -.. 더보기
C276x260 자체 서명된 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" -newkey rsa:4096: RSA 4096 비트 개인 키를 생성합니다. -x509: 자체 서명된 인증서를 생성합니다. -sha256: SHA-256 해시 알고리즘을 사용합니다. -days 3650: 인증서의 유효 기간을.. 더보기
C276x260 [리눅스] 메일 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 서비스가 정상적으로 동작하지 않아 메일을 송신하.. 더보기
C276x260 CentOS 7에서 chrony를 설치하고 설정하는 방법(ntpd 대체) CentOS 7에서 chrony를 설치하고 설정하는 방법 chrony 설치 yum install -y chrony chrony 서비스 활성화(enable) 및 서비스 시작(start) systemctl --now enable chronyd (또는) systemctl enable chronyd systemctl start chronyd chrony 설정(chrony.conf) 파일 편집 NTP 서버 설정 time.bora.net 추가 times.postech.ac.kr 추가 vim /etc/chrony.conf # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.or.. 더보기
C276x260 [LDAP] phpLDAPadmin 설치 및 연동 phpLDAPadmin 설치 및 openldap 연동 phpLDAPadmin 설치 $ yum install -y epel-release $ yum install -y phpldapadmin phpldapadmin.conf 편집 - Require all granted 추가 $ vim /etc/httpd/conf.d/phpldapadmin.conf # # Web-based tool for managing LDAP servers # Alias /phpldapadmin /usr/share/phpldapadmin/htdocs Alias /ldapadmin /usr/share/phpldapadmin/htdocs # Apache 2.4 Require local Require all granted # Apache 2... 더보기
C276x260 [LDAP] openldap server 삭제 openldap server 삭제 서비스 중지 $ systemctl stop slapd 패키지 삭제 $ yum remove openldap-servers Removing: openldap-servers DB 삭제 $ rm -rf /var/lib/ldap 계정 삭제 $ userdel ldap 더보기
C276x260 [리눅스] 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.. 더보기

728x90