Jenkins에 LDAP을 연결하였는데 너무 빈번하게 로그인 실패가 발생하였다.로긴 한번 하려면 2~3번 정도는 실패..안되겠다 싶어 로그를 보니 아래와 같은 로그가 많았다.org.acegisecurity.AuthenticationServiceException: LdapCallback::; socket closed 일방적으로 끊는 것 같은데.. 일단 더 구글링 하였다.찾아보니, https://docops.ca.com/ca-privileged-identity-minder/12-90-2/KR/%EB%81%9D%EC%A0%90-%EB%B0%8F-%EC%84%9C%EB%B2%84-%EA%B5%AC%EC%84%B1-%EC%9A%94%EC%86%8C-362747000.html 발췌하면 아래와 같다. 해결책: Act..
어디서 다운로드 하는가?http://download.redis.io/releases/ 다운을 받았으니 어떻게 설치하나?# 소스 다운로드wget http://download.redis.io/releases/redis-4.0.10.tar.gz # 압축 해제$ tar xvfz redis-4.0.10.tar.gz # 빌드$ cd redis-3.2.1$ make PREFIX=/home/program/redis-4.0.10 install 실행nohup sudo $REDIS_HOME/bin/redis-server --protected-mode no >> $LOG_HOME/redis.log & 좀 더 자세한 내용을 보려면?https://github.com/antirez/redis/blob/unstable/README.md
개요shell 이나 command 모듈을 사용하게 되면 아래와 같은 메시지가 나올 때가 있다.뭐 요약하자면 file module 있으니 그거 사용하라는 말. [WARNING]: Consider using the file module with state=absent rather than running rm. If you need to use commandbecause file is insufficient you can add warn=False to this command task or set command_warnings=False inansible.cfg to get rid of this message. 그럼 어떻게 설정하나?두가지 방식1. ansible.cfg 에서 전역 설정2. task에서 설정 a..
데이터 타입m: minutesh: hoursd: daysw: weeksINF: infinite접속$ influx Database 선택> use telegrafRetention Policy 조회> SHOW RETENTION POLICIES ON telegraf Retention Policy 추가이름은 retention_1s, 보관 주기는 30d, Default 지정> CREATE RETENTION POLICY retention_1s ON telegraf DURATION 30d REPLICATION 1 DEFAULTDefault 로 사용하지 않을 경우 뒤에 Default 설정은 생략하면 된다.> CREATE RETENTION POLICY retention_1s ON telegraf DURATION 1h RE..
엑세스로를 JSON형태로 남기고 싶을 경우 아래와 같이 설정하면 됩니다.남길 내역은 입맛에 맞게 변경하면 되구요. 더 많은 Variables 를 확인하려면 아래 링크를 확인하세요.http://nginx.org/en/docs/varindex.html log_format to_json '{ "time": "$time_iso8601", ' '"remote_addr": "$remote_addr", ' '"remote_user": "$remote_user", ' '"body_bytes_sent": "$body_bytes_sent", ' '"request_time": "$request_time", ' '"status": "$status", ' '"request": "$request", ' '"request_meth..
https://stackoverflow.com/questions/32017527/access-config-values-in-flask-from-other-files manage.py myapp/ __init__.py config.py views/ __init__.py login.py ... 위 구성에서 다른 파일에서 해당 config 값을 불러오려면 아래와 같이 하면 된다.1. 해당 파일에서 from flask import current_app 2. config.py 파일에서 DEBUG 키 정의3. print(current_app.config['DEBUG'] confilg.pyDEBUG=True new_file.pyfrom flask import current_app print(current_app .c..
조건특정 아이피와 DELETE 메소드 조합(AND조건)의 요청이 오면 차단 (403리턴) 한다. 설정법geo $blocked_ip { ranges; default 0; 192.168.100.0-192.168.100.255 1; 192.168.50.0-192.168.50.255 1;} server { location / { # 변수 선언시 초기화 한다. 초기화 하지 않아도 되지만 error_log에 초기화라고 계속 나온다. set $blocked _; if ($blocked_ip) { set $blocked A; } if ($request_method == DELETE) { set $blocked "${blocked}B"; } if ($blocked == AB) { return 403; } }}
war 파일 다운로드https://jenkins.io/download/ 에서 맨 아래에 있는 jenkins.war 형태 다운로드 실행java -jar jenkins.war > 백그라운드 모드와 로그를 파일로 쌓기jenkins_java_opts=-Xms8g -Xmx8gjenkins_log_path=/home/paint/logsnohup java $jenkins_java_opts -jar /kakao/service/jenkins/jenkins.war >> $jenkins_log_path/application.log &
개요- 버전 3.0 부터 LDAP 지원- 메뉴얼 상엔 설정법은 없지만 코드를 까보면 이미 구현되어 있음 설정법> ldap3 라이브러리 설치sudo pip install ldap3 # ========================================= $ sudo pip install ldap3Collecting ldap3 Downloading ldap3-2.4-py2.py3-none-any.whl (373kB) 100% |████████████████████████████████| 378kB 1.8MB/sRequirement already satisfied: pyasn1>=0.1.8 in /usr/local/lib/python2.7/dist-packages (from ldap3)Installing..
Spring BootSpring boot에서 기본적으로 제공해주고 있어서 설정이 매우 간단하다.참조 : https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-jmx.htmlSpring Security 사용 시엔 /jolokia 에 대한 권한 설정을 해줘야 한다. build.gradlecompile("org.jolokia:jolokia-core:1.3.7") properties# 이걸 해야 dbpool 모니터링이 가능spring.datasouce.jmx-enabled: true 별도의 Jolokia 프로세스를 띄우는 방법https://jolokia.org/download.html 페이지에서 jokokia-jvm-x.x..
아래 사이트로 접속http://jenkins-contrib-themes.github.io/jenkins-material-theme/ Installation컬러 선택CSS 주소에 컬러 기입 https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-{COLOR}.csshttps://wiki.jenkins.io/display/JENKINS/Simple+Theme+Plugin Jenkins 플러그인 설치Jenkins 설정에 가서 Theme 부분에 위 CSS 주소 넣고 저장 끝
su - root vi /etc/postgresql/{Version}/main/pg_hba.conf 에서 아래 구문 추가host all all 0.0.0.0/0 md5 vi /etc/postgresql/{Version}/main/postgresql.conf 에서 아래 구문 추가listen_addresses = '*' # what IP address(es) to listen on; 재시작/etc/init.d/posgresql restart
# 지정된 시간 이후 로그를 삭제 또는 압축하는 스크립트bzip2 설치$ sudo yum install bzip2 vi /home/paint/script/log_compression.sh#!/bin/bash # ====================================================# 로그 파일 압축 및 삭제# ----------------------------------------------------# DELETE 에 지정된 일자가 되면 삭제# COMPRESS 에 지정된 일자가 되면 압축. 압축은 bzip2 을 이용# ==================================================== DELETE=365COMPRESS=10LOGS=("/home/pain..
- Total
- Today
- Yesterday
- 엔시블
- ssl
- Linux
- openssl
- Shell Script
- Playbook
- Jenkins
- 데브옵스
- 엔서블
- 쉘스크립트
- URL Encoding
- JVM
- Password manager
- Nexus
- groovy
- 젠킨스
- 쓰레드덤프
- 파이프라인
- 플레이북
- Config History
- nginx
- PostgreSQL
- DevOps
- rsync
- Thread Dump
- 리눅스
- Ansible
- vagrant
- Docker
- iTerm2
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |