본문 바로가기
반응형

분류 전체보기78

bash shell 실행 명령어 확인하기 출처 : http://mywiki.wooledge.org/BashFAQ/050 쉘을 생성해서 명령어를 실행할때 명령어를 확인 또는 출력을 위해서 명령어를 변수에 담는 경우가 있는데 명령어를 변수에 담게 되면 원하는대로 명령어가 실행되지 않는 경우가 있다. 명령어를 변수에 담지 않고 확인하는 방법 스크립트 실행 bash -x ./test.sh 스크립트 안에서 원하는 영역에서만 출력 #!/bin/bash A="echo hi" B="echo hello" C="$A && $B" echo $C // prints "echo hi && echo hello" set -x $C set +x echo "$A && $B" // prints "echo hi && echo hello" $A && $B #!/bin/bash A=.. 2020. 8. 20.
jquery ajax jsonp (CORB) blocked 경고 jsonp를 이용하여 다른 도메인에서 데이타를 읽어오도록 처리를 했는데 보안 설정을 추가하고 나서 크롬에서 아래와 같은 경고 문구가 발생했다. Cross-Origin Read Blocking (CORB) blocked cross-origin response ..... with MIME type application/json. var url = etcDomain + '/getCount'; try { $.ajax({ url: url, type: 'GET', dataType: 'jsonp', error: function(XHR, textStatus, errorThrown) { console.log('textStatus : ', textStatus); console.log('errorThrown : ',erro.. 2020. 6. 25.
nginx rewrite 설정 nginx에서 uri에서 특정 값을 포함하거나 파라미터에서 특정 값이 포함됐을때 다른 uri로 rewrite시키는 설정이다. nginx variable에 대한 설명은 아래 사이트에서 확인 가능하다. nginx.org/en/docs/http/ngx_http_core_module.html Module ngx_http_core_module Module ngx_http_core_module Directives Syntax: absolute_redirect on | off; Default: absolute_redirect on; Context: http, server, location This directive appeared in version 1.11.8. If disabled, redirects issued.. 2020. 6. 12.
logback 설정 정보 확인하기 http://logback.qos.ch/manual/introduction.html Chapter 1: Introduction Chapter 1: Introduction The morale effects are startling. Enthusiasm jumps when there is a running system, even a simple one. Efforts redouble when the first picture from a new graphics software system appears on the screen, even if it is only a rectangle. logback.qos.ch public class HelloWorld2 { public static void main(Stri.. 2020. 6. 10.
반응형