본문 바로가기

반응형

리눅스

NGINX 및 PHP 파일 업로드 크기 제한 변경 NGINX 및 PHP(PHP-FPM) 파일 업로드 크기 제한 변경NGINX와 PHP-FPM 환경에서 파일 업로드 용량을 50MB로 늘리는 방법입니다.NGINX 설정 변경최대 파일 업로드 크기를 50MB로 설정합니다. 설정 파일 수정(nginx.conf, default.conf)NGINX에서는 client_max_body_size 값을 설정합니다.http 블록 설정vim /etc/nginx/nginx.confhttp { ... client_max_body_size 50M; ...}서버 블록 설정vim /etc/nginx/conf.d/default.confserver { listen 80; server_name scbyun.com; location / { .. 더보기
[Jenkins] Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) [Jenkins 작업] Jenkins 플러그인 설치 GitLab Plugin을 설치합니다. Dashboard > Jenkins 관리 > Plugin Manager GitLab API token 등록(Credentials) Dashboard > Jenkins 관리 > Manage Credentials Dashboard > Jenkins 관리 > System Configuration > 시스템 설정 프로젝트(PHP_Deployment) 설정 Webhooks URL, Webhooks Secret token 잘 기억합니다. Webhooks URL : http://jenkins.xxxxx.com:8080/project/PHP_Deploymen.. 더보기
[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.. 더보기

728x90
반응형