리눅스 (1605) 썸네일형 리스트형 [Jenkins] Jenkins와 Slack를 연동하여 알림받기 Jenkins와 Slack를 연동하여 알림받기 Slack Notification Plugin 설치 slack Credential 등록 생성한 프로젝트 구성 변경 빌드 후 조치에서 빌드 후 조치 추가 버튼을 클릭하여 드롭다운 목록을 확인할 수 있습니다. 고급 버튼을 클릭하면 아래와 같은 화면 출력됩니다. slack 메세지 Jenkins 이용하여 PHP 소스 배포하기 Jenkins 이용하여 PHP 소스 배포하기Publish over SSH 세팅Dashboard > Jenkins 관리 > System Configuration > 시스템 설정젠킨스에 GitLAB Access Tokens 등록하기[GitLab 작업] GitLab로그인 - User Setting - Access Tokens[Jenkins 작업]Dashboard > Jenkins 관리 > Security > Manage Credentials신규 프로젝트 생성프로젝트 이름 : php-projectSource files : **/**Exec command : systemctl restart php-fpm.service nginx.service MySQL DB 접속 테스트 MySQL DB 접속 테스트 dbconnectionTest.sh 스크립트 생성 vim dbconnectionTest.sh #!/bin/bash dbHost=192.168.20.145 dbPort=3306 dbUser=root dbPassword=P@ssw0rd1! dbDatabase=test while true; do mysql -s -N --host=${dbHost} --user=${dbUser} --password=${dbPassword} --port=${dbPort} --database=${dbDatabase} -e "select now();" sleep 1; done chmod +x dbconnectionTest.sh bash dbconnectionTest.sh $ bash dbconnection.. Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법 Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법DNS 모드는 도메인 소유권 검증을 DNS 레코드를 통해 처리하는 방식입니다.EPEL 패키지 설치yum install -y epel-release1. Certbot 설치Certbot을 설치합니다. CentOS 7의 경우 다음과 같이 수행할 수 있습니다.sudo yum install certbot python2-certbot-nginx설치된 패키지는 시스템에 따라 다를 수 있습니다.2. DNS API 키 준비DNS 모드로 SSL 인증서를 발급받기 위해서는 해당 DNS 제공업체의 API 키가 필요합니다. Certbot이 DNS 레코드를 자동으로 추가하고 수정하도록 하기 위함입니다. DNS 제공업체별로 다양한 설정이 필요하므로, 해당 업체.. [LDAP] OpenLDAP 설치 및 구성-v2 OpenLDAP 설치 및 구성 LDAP 경량 디렉터리 액세스 프로토콜(Lightweight Directory Access Protocol)은 TCP/IP 위에서 디렉터리 서비스를 조회하고 수정하는 응용 프로토콜입니다. 호스트 네임 아이피 역할 비고 VIP 3.3.3.3 ldap1 1.1.1.1 Master(Active) ldap2 2.2.2.2 Slave(Standby) rsync(rsyncd) 설치 및 설정 $ yum install -y rsync $ systemctl --now enable rsyncd.service $ vim /etc/rsyncd.conf [ldap_config] path = /root/openldap comment = openldap setup configure exclude = .. [LDAP] OpenLDAP 이중화 구성(syncrepl) OpenLDAP 이중화 구성(마스터-슬레이브 구성) OpenLDAP 설치 및 구성 : https://anti1346.tistory.com/1014 마스터 구성 replicator.ldif 편집 $ cat replicator.ldif dn: uid=replicator,dc=4wxyz,dc=com uid: replicator objectclass: account objectClass: simpleSecurityObject description: Replication User userPassword: qwER12#$ ### # ldapadd -x -D cn=Manager,dc=4wxyz,dc=com -w password1! -f replicator.ldif $ ldapadd -x -D cn=Manager,dc.. [Docker] GitLab(Omnibus) Let's Encrypt 갱신 GitLab(Omnibus) Let's Encrypt 갱신 docker 컨테이너 이름 확인 $ docker-compose ps Name Command State Ports ------------------------------------------------------------------------------------------------------------------------------------------ gitlab /assets/wrapper Up (healthy) 22/tcp, 0.0.0.0:2222->2222/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5000->5000/tcp, 0.0.0.0:80->80/tcp gitlab Let's Encrypt renewal d.. [LDAP] OpenLDAP ldif_read_file: checksum error OpenLDAP ldif_read_file: checksum error $ slaptest -u 6131c3f9 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}monitor.ldif" 6131c3f9 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif" config file testing succeeded perl-Archive-Zip 패키지 설치 $ yum install -y perl-Archive-Zip 이전 1 ··· 115 116 117 118 119 120 121 ··· 201 다음