Skip to content

Instantly share code, notes, and snippets.

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
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
#!/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
// 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;
}