exportfs 명령어는 nfs서버를 다시 시작하지 않고도 공유목록을 수정할 수 있다. -a : /etc/exports 파일을 읽어 들인다. -r : /etc/pxports 파일을 다시 읽어 들인다. -u IP:/디렉토리 : 입력한 디렉토리를 공유목록에서 제외한다. -v : 현재 공유 목록을 확인한다.
서론memcached는 고속의 분산형 Memory Cache이며, 주로 DB에의 참조 결과를 Cache, 웹시스템에 있어서의 성능향상을 위해 많이 사용된다. 웹시스템에 있어서의 부하대책서버의 구성을 살펴본다.Scale Out (서버의 수를 늘린다)Scale Up (CPU/Memory 등의 하드웨어를 향상시킨다)OS/Middleware의 설정을 살펴본다.네트워크구성을 살펴본다.어플리케이션 로직을 살펴본다.위의 대책 중에 DB서버에의 대책에는 데이터의 배치, 데이터 액세스방법을 어떻게 구현했는지가 문제가 된다.DB서버에의 부하를분산 (DB파티션팅 등의 기술을 사용해 Scale Out)DB서버에 있어서의 쓸때없는 처리를 줄인다. (DB Query를 다시 살펴본다)바로 memcache가 위의 문제가 될 수 있는 곳의 해결책이 될 수 있을 것 같다. memcached에 의한 성능향상파일 입출력 (File I/O)가 줄어듬파일의 내용을 캐쉬해 둠으로써 파일 입출력에 의한 부하가 줄어든다.세션정보의 공유유져의 세션정보를 캐쉬해 둠으로써, 복수의 아팟치서버사이의 세션정보를 공유한다.memcached의 캐쉬 방식분산형memcache서버 자체에는 분산장치을 가지고 있지않다.
XCache http://xcache.lighttpd.net/
root@root:/opt/install/jdom-1.1# ./build.sh JDOM Build System ------------------- Building with classpath /usr/local/java/lib/tools.jar:/usr/local/java/lib/dev.jar:./lib/ant.jar:./lib/xml-apis.jar:./lib/xerces.jar: Starting Ant... Buildfile: build.xml init: [echo] ----------- JDOM 1.1 ------------ prepare: prepare-src: [mkdir] Created dir: /opt/install/jdom-1.1/build/src [mkdir] Created dir: /opt/install/jdom-1.1/build/classes [copy] Copying 69 files to /opt/install/jdom-1.1/build/src compile: [javac] Compiling 62 source files to /opt/install/jdom-1.1/build/classes about: [javac] C
SSL/TLS Strong Encryption: FAQAvailable Languages: en The wise man doesn't give the right answers, he poses the right questions. -- Claude Levi-Strauss This chapter is a collection of frequently asked questions (FAQ) and corresponding answers following the popular USENET tradition. Most of these questions occurred on the Newsgroup comp.infosystems.www.servers.unix or the mod_ssl Support Mailing List modssl-users@modssl.org. They are collected at this place to avoid answering the same questions over and over. Please read this chapter at least once when installing mod_ssl or at least search for
selinux 끄는 3가지 방법 1. 수동으로 끄기 (일시적으로만 먹힘) system-config-securitylevel setenforce 0 2. 커널 명령행에 다음 옵션 추가. (grub.conf 등에) selinux=0 3. /etc/selinux/config 파일 수정 SELINUX=enforcing ==> SELINUX=disabled 수정
출처 : http://www.osqna.com Cacti Install ~ Configure Cacti 의 작동원리 DATA 추출 -> DATA 저장 -> DATA 발표 Cacti 설치 요구사항 RRDTool 1.0.49 or 1.2.x or 그 이상 MySQL 4.1.x or 5.x or 그 이상 PHP 4.3.6 or 그 이상, 5.x 이상이 부가적 기능 이용할수 있고 추천한다고 한다. Apache 부가적으로 snmp host, agent (모니터링 대상 host는 반드시 snmp허용이 되어야한다.) rrdtool은 수동 설치방법에 대해서는 생략한다. snmp도 다 설치했다고 보고 생략한다. 수동설치가 귀찮은 사람은 이렇게 하면 된다. 여기 가면 왠만한 소스들은 모두 rpm 제공한다. 자주 애용하는 곳이다. http://dag.wieers.com/rpm/ url http://dag.wieers.com/rpm/packages/rrdtool/ 에 보면 최신 버전이 존재하므로 rpm 받아서 설치한다. wget http://dag.wieers.com/rpm/packages/rrdtool/perl-rrdtool-1.2.23-1.el5.rf.i386.rp
# gd 소스 설치 tar xvfpz gd-2.0.33.tar.gzcd gd-2.0.33./configure --prefix=/opt/webapps/gd makemake install
# libmcrypt 소스 설치 tar xvfpz libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7./configure --prefix=/opt/webapps/libmcrypt makemake install
wget http://dev.centos.org/centos/5/CentOS-Testing.repo mv CentOS-Testing.repo /etc/yum.repos.d/ yum --enablerepo=c5-testing update php
프로세스별로 오픈된 파일 개수 확인하기 지정한 프로세스가 몇개의 파일을 사용중인지 확인하기 lsof -p PID | wc -l lsof -p 23425,24255 |wc -l
# libiconv 소스 설치 tar xvfpz libiconv-1.9.2.tar.gzcd libiconv-1.9.2./configure --prefix=/usr makemake install
# libidn 소스 설치 tar xvfpz libidn-0.5.9.tar.gzcd libidn-0.5.9./configure --prefix=/usr makemake install
# mysql 소스 설치 tar xvfpz mysql-5.0.83.tar.gzcd mysql-5.0.83 useradd -M -r -d /var/lib/mysql -s /bin/bash -c "MySQL Server" -u 27 mysql./configure --prefix=/opt/webapps/mysql5 --localstatedir=/var/lib/mysql5 --with-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-thread-safe-client --without-debug --without-docs --without-bench --with-charset=utf8 --with-language=korea --with-extra-charsets=all --with-plugins=innobase makemake install mv my.cnf /etc/my.cnfmv mysqld.log /etc/logrotate.d/mysqldmv mysqld_5 /etc/init.d/mysqld chmod 700 /etc
# httpd 소스 설치 tar xvfpz httpd-2.0.63.tar.zcd httpd-2.0.63 # apache + 64bit problemrm -f configurerm -f srclib/apr-util/configure./buildconf ./configure --prefix=/opt/webapps/apache2 --enable-so --enable-ssl --with-ssl=/usr --enable-lib64 --libdir=/usr/lib64 --enable-cache --enable-deflate --enable-proxy --enable-mem-cache --enable-expires --enable-rewrite --enable-mods-shared=mod_rewrite --enable-security --with-module=proxy:mod_security.c makemake install mkdir /var/log/httpdchmod 711 /opt/webappschmod 755 /opt/webapps/apache2chmod 644 /opt/webapps/apache2/conf/*chmod 600 /opt/