참고 : http://docs.fluentd.org/v0.12/articles/install-by-rpm Cent OS 기준 1. Install packageautomake, libtool, gcc-c++, geoip-devel$ sudo yum install automake libtool gcc-c++ geoip-devel 2. Source DownloadOS 버전마다 설치 파일이 다르니 현재 OS버전 확인 후 다운로드 하시기 바랍니다.6 : http://ftp.daumkakao.com/daum.kakao/binaries/td-agent/2/redhat/6/x86_647 : http://ftp.daumkakao.com/daum.kakao/binaries/td-agent/2/redhat/7/x86_64 ..
참조 : https://stackoverflow.com/questions/10527124/how-to-query-data-via-spring-data-jpa-by-sort-and-pageable-both-out-of-box final PageRequest page1 = new PageRequest( 0, 20, Direction.ASC, "lastName", "salary" ); final PageRequest page2 = new PageRequest( 0, 20, new Sort( new Order(Direction.ASC, "lastName"), new Order(Direction.DESC, "salary") ) ); dao.findAll(page1);
$ nginx -s signal signal- stop : fast shutdown- quit : graceful shutdown- reload : reloading the configure file- reopen : reopening the log files 기동$ nginx 리로드$ nginx -s reload 셧다운$ nginx -s stop 환경 파일 테스트$ nginx -t https://www.nginx.com/resources/wiki/start/topics/tutorials/commandline/
gzip 관련 설정 중에 gzip_static 이라는 옵션이 있다.이 옵션은 정적 파일을 미리 gzip 압축해서 요청시 마다 압축하지 않고 미리 압축해둔 걸로 제공하는 기능이다. 설정법은 대략 아래와 같다.gzip_static on; 그러나 설정하고 nginx -t 를 돌려보면 에러가 발생할 것이다. 이 기능을 사용하려면 ngx_http_gzip_static_module 을 설치해야 한다.참고 : http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html#gzip_static NGINX 설치 또는 재설치 이 옵션을 설정하려면 NGINX를 재설치하여야 한다.재설치시 ngx_http_gzip_static_module 도 설치되게 옵션을 지정해야 한다.설정..
작게 생각하기– 조만간 규모가 커질거라면 MySQL ecosystem을 봐야된다. – 그리고 캐싱 빡시게 안 하는 메이저 웹사이트는 없다. – develooper.com의 Hansen PT랑 Ilia 튜토리얼 볼 것 – 처음부터 확장 가능하게 아키텍처 잘 쪼개놔야된다. – 복제랑 파티셔닝 어떻게 할지 미리 계획 세워놔라. – 파일 기반 세션 좀 쓰지마 -_- – 그렇다고 너무 쓸데없이 크게 생각하지도 말 것 – 특히 성능하고 확장성 구분 못 하면 난감함 EXPLAIN 안 써보기– SELECT 앞에 EXPLAIN 이라고 붙이기만 하면 되는 것을 (..) – 실행 계획 확인 – 타입 컬럼에 index 써있는거랑 Extra 컬럼에 index 써있는거랑 “매우 큰” 차이 있음 * 타입에 있으면 Full 인덱스 ..
GIT : https://github.com/yuku-t/jquery-textcomplete $.fn.mention = function(param, callback){ // JSON 은 '아이디|이름|소속'으로 구성됨 var url = [주소]; var __this = this; $.getJSON(url, function(jdata){ $(__this).textcomplete([ { mentions: jdata.data, match : /\B@([\.\w]*)$/, search: function (term, callback) { callback($.map(this.mentions, function (mention) { if(mention.indexOf(term) === 0){ var arryMention..
Ajax 를 이용할 때 로딩 이미지를 보여주는 기능을 만들어 보자.이미지는 Bootstrap3 를 이용하였다. 사용법// 초기화 및 시작var loading = new AjaxLoading('list_id');// 종료loading.end(); function lodingImgTop(){ var h = document.documentElement.clientHeight; var y = (window.pageYOffset) ? window.pageYOffset : (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : (document.body) ? document.docume..
/** [Bootstrap3 paging html] totalSize : 총 건수 pageNum : 현재 페이지 countPerPage : 한페이지에 출력할 건수 **/ function pagingHtml(totalSize, pageNum, countPerPage) { var divisionVal = Math.floor(totalSize / countPerPage); var remainderVal = Math.floor(totalSize % countPerPage); if (remainderVal === 0) pageSize = pageSize - 1; var pageSize = divisionVal + 1; if (totalSize === 0) pageSize = 1; var nanugi = Math...
root 계정이 아닌 일반계정으로 apache를 설치한 경우 well known port(0~1023) 를 LISTEN 할 수 없다.80 포트로 서비스를 하고자 할 경우 아래와 같이 설정하면 된다. 설정법 # apache bin 디렉토리로 이동 $ cd $APACHE_HOME/bin # httpd 파일의 소유자를 root 로 변경 및 sticky bit 추가$ chown root:root httpd$ chmod +s httpd 아래와 같이 나오면 성공-rwsr-sr-x 1 root root 1469025 Sep 27 2012 httpd
pom.xml dev src/main/filters/dev.properties svc src/main/filters/svc.properties dev.properties 샘플db.driver=oracle.jdbc.OracleDriverdb.url=jdbc:oracle:thin:@IP:PORT:SIDdb.username=usernamedb.password=passwd jenkins 배포 시Build > Goals and options 에서 'clean package -P svc' 설정 개발일 경우 'clean package -P dev'
1. $TOMCAT_HOME/bin/catalina.sh 파일 열기 2. 구문 수정변경전 : >> "$CATALINA_OUT" 2>&1 & 변경후 : >> /dev/null 2>&1 & 3. 예제touch "$CATALINA_OUT" if [ "$1" = "-security" ] ; then if [ $have_tty -eq 1 ]; then echo "Using Security Manager" fi shift "$_RUNJAVA" "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ -Djava.security.manager \ -Djava.securi..
* 먼저 Apache가 설치되어 있어야 한다. apache의 apxs를 이용하여 설치함. https://tomcat.apache.org/download-connectors.cgi 에서 소스 다운로드서버에 업로드 후 압축해제 (tar xvfz ooo.tar.gz) 소스홈/native 밑에서# ./configure --with-apxs=[Apache홈]/bin/apxs# make# make install 다 끝나면[Apache홈]/modules 디렉토리 밑에mod_jk.so 파일이 생성된다.
체크박스 체크 여부.is 와 .prop 를 통해서 체크여부를 파악할 수 있음 $('#inpt').change(function(){ var $input = $(this); console.log( $input.prop('checked') ) // true/false console.log( $input.is(':checked') ) // true/false }); JSON키 개수 구하기Object.keys(JSON_DATA).length
vi ~/.bash_profile 또는 vi ~/.profile 하여 아래 문구 추가export TERM="xterm-color"export CLICOLOR=1export LSCOLORS=ExFxCxDxBxegedabagacad sudo vi /usr/share/vim/vimrc 실행아여 아래 문구 추가set ai " auto indentingset history=100 " keep 100 lines of historyset ruler " show the cursor positionsyntax on " syntax highlightingset hlsearch " highlight the last searched termfiletype plugin on " use the file type plugins "..
SELECT 111 ~ E'^[-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$' FROM dual --결과 값 : t SELECT 1.11 ~ E'^[-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$' FROM dual --결과 값 : t SELECT -111 ~ E'^[-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$' FROM dual --결과 값 : t SELECT 'aaa' ~ E'^[-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$' FROM dual --결과 값 : f --t : true f : false
다운로드 : http://pecl.php.net/package/pecl_http 위 사이트에서 맞는 버전을 잘 골라 다운로드 한다.PHP 버전과 OS 버전을 잘 맞춰서 골라야 한다.필자는 설치하고자 했던 서버가 Linux RHEL5 였는데 curl 버전이 안맞아서 최신 버전이 설치되지 않아서 1.7.6 버전으로 설치하였다. 먼저 PHP가 설치되어야 한다. 설치: 여기서 $PHP_HOME 은 PHP설치한 위치임. 1. 다운로한 파일 디렉토리로 이동 후 아래 구문 실행 (여기서 $PHP_HOME 은 PHP설치한 위치)# $PHP_HOME/bin/phpize 2. 1번을 실행하면 configure 파일이 생성됨# ./configure -with-php-config=$PHP_HOME/bin/php-config ..
- Total
- Today
- Yesterday
- 젠킨스
- URL Encoding
- 리눅스
- 쉘스크립트
- 데브옵스
- 쓰레드덤프
- Playbook
- PostgreSQL
- openssl
- Config History
- 플레이북
- Shell Script
- Docker
- Thread Dump
- vagrant
- 엔서블
- 엔시블
- Nexus
- Linux
- groovy
- DevOps
- Ansible
- ssl
- rsync
- 파이프라인
- Password manager
- nginx
- JVM
- iTerm2
- Jenkins
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |