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
# openssl 소스 설치 tar xvfpz openssl-0.9.8g.tar.gzcd openssl-0.9.8g ./config -fPIC --prefix=/opt/webapps/openssl shared threads zlib makemake install echo "/opt/webapps/openssl/lib" >> /etc/ld.so.conf
# 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/
rsync를 이용하여 동기화 할때 특정 폴더 제외하기 예) /home/src/ 폴더를 /home/dest/ 폴더로 동기화하는데 /home/src/a/ 폴더는 제외시킬 경우 rsync -av --delete --exclude 'a' /home/src/ /home/dest/ 주의사항: --exclude 는 상대경로를 써줘야 함. exclude 패턴을 여러개 지정하고 싶을 경우엔--exclude-from 에 파일 경로를 지정해 주면 된다. 예) /home/src/ 폴더를 /home/dest/ 폴더로 동기화하는데 /home/src/a/, /home/src/b/ 을 제외 할 경우 /home/pattern.txt 란 파일에 패턴을 저장. a/ b/ 아래의 명령어 실행. rsync -av --delete --exclude-from '/home/pattern.txt'/home/src/ /home/dest/
# 차례1. 본딩이란?2. 본딩 설정 종류3. 본딩 설정하기3-1) redhat linux(centos포함)에서 본딩 설정하기3-2) debian linux에서 본딩 설정하기3-3) gentoo linux에서 본딩 설정하기 1. 본딩(bonding)이란?여러개의 이더넷을 하나로 묶어 네트워크 대역폭을 늘리는 방법이다.이와 비슷한 기술은 시스템에 따라 다양한 이름으로 명명된다.HP-UX : APASUN : SunTrunkingCisco : EtherChannelWindows : TeamingLinux : Bonding 이기술은 제한적인 인터페이스의 대역폭 향상을 목적으로 두고 있지만개념적 특성으로 인해 클러스터링의 기본 기술로 사용 가능하다. 2. 본딩 설정 종류 mode는 해당 bonding 정책을 정의 한다.Default는 0이다. Mode의 정의는 다음과 같다. 0 : Round-robin 정책 첫 번째 가능한 슬레이브부터 마지막까지 순차적으로 전송한다. 이 모드는 부하분산과 failover를 제공한다. (Active-Active, 이론상 슬레이브 수 만큼의 배수대로 대역폭을 확장가능하다.) 1 : Active-backup 정책 bond에서 하
How To Configure Root Login for TelnetThis document (3485070)is provided subject to the disclaimerat the end of this document. EnvironmentSituationResolutionChange LogDocumentDocument ID:3485070Creation Date:10-05-2006Modified Date:03-16-2012Product:SUSE Linux Enterprise ServerDisclaimerThis Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "
[root@ktoplogapdev03 ~]# fdisk -l Disk /dev/xvda: 107.3 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/xvda1 * 1 131 1052226 83 Linux/dev/xvda2 132 4047 31455270 83 Linux/dev/xvda3 4048 6658 20972857+ 83 Linux/dev/xvda4 6659 13054 51375870 5 Extended/dev/xvda5 6659 9269 20972826 83 Linux/dev/xvda6 9270 11880 20972826 83 Linux/dev/xvda7 11881 12924 8385898+ 82 Linux swap / Solaris/dev/xvda8 12925…
# php4.4.9 설치시 에러 PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0 # 해결방법 /usr/share/file/magic.mime Line 273:수정하기 0 regex BEGIN[[:space:]]*[{] application/x-awk#0 regex BEGIN[[:space:]]*[{] application/x-awk php4.3.x 에서는 관련이 없는 것 같음