This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// enter key 처리 | |
var stopRKey = function(evt) { | |
var evt = (evt) ? evt : ((event) ? event : null); | |
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); | |
if ((evt.keyCode == 13) && (node.type=="text")) { | |
$("#akc_kwd").val( $.trim($("#akc_kwd").val()) ); | |
if ($("#akc_kwd").val() == '') { | |
alert('검색어를 입력해 주세요.'); | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# nginx Startup script for nginx | |
# | |
# chkconfig: - 85 15 | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx | |
# pidfile: /var/run/nginx.pid | |
# description: nginx is a HTTP and reverse proxy server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.varnish-cache.org/installation/redhat | |
http://repo.varnish-cache.org/source/ | |
https://www.varnish-cache.org/docs/3.0/tutorial/starting_varnish.html | |
yum install pcre | |
yum install pcre-devel | |
wget http://repo.varnish-cache.org/source/varnish-3.0.0.tar.gz | |
tar xvzf varnish-3.0.0.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. apache 설정 | |
1. mpm 모듈 - prefork로 설정 초기10개) | |
2. keepAlive 설정 ( KeepAliveTimeOut/MaxKeepAliveRequests) | |
3. Vary 설정 | |
4. mod_expires.c 모듈을 이용한 cache(last-modified, ETag) 설정 | |
5. mod_deflate 모듈을 이용한 deflate 압축설정 | |
6. LD_PRELOAD=tcmalloc.so | |
2. 리눅스 설정 | |
1. strip 을 이용한 httpd 슬림화 | |
3. DB |