한글로 된 URL을 정상적으로 처리할 수 있게 하는 mod_url.c의 설치 방법은 다음과 같습니다. 현재 실행되고 있는 httpd 프로세스를 확인하여 DSO(Dynamic Shared Object)가 사용 가능한지 확인합니다. 다운 로드 : http://kle.kldp.org/apache/mod_url.c http://kle.kldp.org/apache/readme.mod_url 1. DSO 확인 =========== # httpd -l (in debian) Compiled-in modules: http_core.c mod_so.c mod_php3.c # /usr/sbin/httpd -l |grep mod_so (in redhat) mod_so.c 여기서 mod_so.c 가 보이면 DSO를 통해 간편하게 mod_url.c를 설치할 수 있습니다. 2.1. 컴파일(일반적인 경우 RedHat은 아래 참조) ============================================ 설치는 아파치 확장 툴인 apxs를 이용합니다. #apxs -i -a -c mod_url.c 이렇게 실행하면 됩니다. $ apxs -i -a -c mod_url.c gcc -fpi
selinux 끄는 3가지 방법 1. 수동으로 끄기 (일시적으로만 먹힘) system-config-securitylevel setenforce 0 2. 커널 명령행에 다음 옵션 추가. (grub.conf 등에) selinux=0 3. /etc/selinux/config 파일 수정 SELINUX=enforcing ==> SELINUX=disabled 수정
웹서버 사용에 있어 기대하는 가치은 무엇이었을까 성능(performance) & 안정성(stability) 확장성(scalability) & 덩치(footprint)간편함간편한 설치(installation) 간편한 설정(configuration)간편한 운영(operation)필요한 기능rewritehttp_proxy (간단한 부하분산 기능을 포함하면 더 좋겠다) virtual hostingLinux와 MacOS X에서 사용가능 간단한 웹서버 : lighttpd, cherokee, thttpd, nginx
kernel: ip_conntrack: table full, dropping packet ip_conntrack 모듈에서 연결 추적을 기록하는 테이블의 객수 제한때문에 생긴다.ip_conntrack table 가득차서 발생. # ip_conntrack table 확인방법cat /proc/net/ip_conntrack 해결하기================================================================== # 계산하기(32비트)CONTRACK_MAX = RAMSIZE(단위: byte) / 16384 / ( x / 32) HASHSIZE = CONNTRAK_MAX / 8 = RAMSIZE(단위: byte) / 131072 / (x / 32) CONTRACK_MAX = 2048M * 1024 * 1024 / 16384 * 32 = 131072 * 32 = 4194304HASHSIZE = CONNTRAK_MAX / 8 = 4194304 / 8 = 524288, # 계산하기(64비트)CONTRACK_MAX = RAMSIZE(단위: byte) / 16384 / ( x / 64) HASHSIZE = CONNTRAK_MAX / 8 =
pvcreate /dev/xvdb1 vgcreate nidap01-lv /dev/xvdb1 lvcreate -L 20G -n NID1 nidap01-lv mkfs.ext3 /dev/nidap01-lv/NID1 mount /dev/nidap01-lv/NID1 /usr/sap/NID /dev/nidap01-lv/NID1 /usr/sap/NID ext3 acl,user_xattr 1 2 volume group확인: pvdisplay /dev/sdb5logical volume확인: lvdisplay -v /볼륨그룹명 volume group활성화: vgchange -a y /볼륨그룹명 root@ns2:/b# lvdisplay lotusport --- Logical volume --- LV Name /dev/lotusport/root VG Name lotusport LV UUID DHefTA-d2xi-nm9H-tLgV-ifbg-MAM5-nzKwXb LV Write Access read/write LV Status available # open 1 LV Size 293.84 GB Cur
현재 랜카드 전송속도 구하기 sar -n DEV 2 3 2초간 총 3번 조사하고, 평균값 마지막 출력하기 참고 http://perso.wanadoo.fr/sebastien.godard/use_sar.html
두개, 세개의 아이피를 동시에 사용하려면 위와 같은 방식으로 계속 추가하면 되겠다. 추가한 아이피를 삭제할 경우엔 해당 이더넷을 다운시키면 된다. ifconfig eth0:0 down 으로 삭제할 수 있다.
# apache 1.3.x apache_1.3.x/src/include/httpd.h HARD_SERVER_LIMIT 256 # apache 2.0.x - prefork httpd-2.0.63/server/mpm/prefork/prefork.c DEFAULT_SERVER_LIMIT 256 - worker httpd-2.0.63/server/mpm/worker/worker.c DEFAULT_SERVER_LIMIT 16 DEFAULT_THREAD_LIMIT 64
출처 : 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
웹서버 비교리스트 링크 : http://en.wikipedia.org/wiki/Comparison_of_web_servers Server Developed by Cost (USD) Open source Software license Last stable version Release date Abyss Web ServerApreliumFree - $59Noproprietary2.62009-01-21And-httpdJames AntillFreeYesLGPL0.99.112006-09-11AOLserverNaviSoftFreeYesAOLserver Public License4.5.12009-02-02Apache HTTP ServerApache Software FoundationFreeYesApache License2.2.132009-08-08Apache TomcatApache Software FoundationFreeYesApache License6.0.202009-06-01AppWeb Web ServerEmbedthis SoftwareFree and Commercial VersionsYesGPL2.4.22008-03-14BadBlueWorking Resources
빈줄 삭제:g/^$/d # 해당 문자열이 들어간 라인 삭제설명 : 이 문자열이 들어간 라인은 모두 삭제:% g/문자열/d # 특정 문자열만 들어간 라인 삭제설명 : 문자열 앞 뒤로 < 와 > 를 감싸주면 해당 단어만을 의미한다.:% g/<문자열>/d
Setting static ports for NFS on LinuxThis document (7000524)is provided subject to the disclaimerat the end of this document. EnvironmentNovell SUSE Linux Enterprise Server 11Novell SUSE Linux Enterprise Server 10SituationIn some cases, especially for firewall considerations, static ports need to be set for NFS services. This can be more complex that initially thought, because NFS relies on a collection or various services. ResolutionOverview NFS services (v2 and v3) generally require 5 services be running an accessible through a firewall:portmappernfsdmountdlockdstatdIf there are firewalls be