본문 바로가기

728x90

리눅스

[Jenkins] Jenkins와 Slack를 연동하여 알림받기 Jenkins와 Slack를 연동하여 알림받기 Slack Notification Plugin 설치 slack Credential 등록 생성한 프로젝트 구성 변경 빌드 후 조치에서 빌드 후 조치 추가 버튼을 클릭하여 드롭다운 목록을 확인할 수 있습니다. 고급 버튼을 클릭하면 아래와 같은 화면 출력됩니다. slack 메세지 더보기
[Jenkins] 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-project Source 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-release 1. 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 더보기

728x90
반응형