리눅스 파일시스템 옵션 defaults = 시스템의 기본권한을 사용합니다. sync = 모든 IO와 파일에 대해 동기적으로 동작하게 하는 옵션입니다. user = user도 마운트 가능합니다. noauto = 마운트 시 -a옵션과 동일합니다. nosuid = set-user-id 변경을 하지 못하도록 하는 옵션입니다. nodev = 파일 시스템의 블럭장치를 해석하지 않도록 하는 옵션입니다. unhide = 숨김 속성 파일을 숨기지 않는 옵션입니다. ro = 읽기 전용 옵션입니다. async = 모든 IO와 파일에 대해서 비동기적으로 동작하는 옵션입니다. ================================== defaults (rw, nouser,auto,exec suid 속성을 모두 가지는 옵션) auto : 부팅시 자동 마운트 noauto : 부팅시 자동마운트 안함 exec : 실행파일이 실행되는 것을 허용 no exec : 실행파일이 실행되는 것을 허용 안함 suid : setuid, setgid의 사용을 허용하는 옵션 nosuid : setuid, setgid의 사용을 거부 ro (read only) : 읽기 전용 rw (ead write) :
웹서버 사용에 있어 기대하는 가치은 무엇이었을까 성능(performance) & 안정성(stability) 확장성(scalability) & 덩치(footprint)간편함간편한 설치(installation) 간편한 설정(configuration)간편한 운영(operation)필요한 기능rewritehttp_proxy (간단한 부하분산 기능을 포함하면 더 좋겠다) virtual hostingLinux와 MacOS X에서 사용가능 간단한 웹서버 : lighttpd, cherokee, thttpd, nginx
웹서버 비교리스트 링크 : 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
Is this ok [y/N]: y Downloading Packages Getting kernel-2.4.21-63.EL.i686.rpm kernel-2.4.21-63.EL.i686. 100% |=========================| 7.9 MB 09:56 warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/update/packages/kernel-2.4.21-63.EL.i686.rpm Error: You may want to run yum clean or remove the file: /var/cache/yum/update/packages/kernel-2.4.21-63.EL.i686.rpm Error: You may also check that you have the correct GPG keys installed centos 기준으로 설명합니다. 우선 배포판 확인하기 cat /etc/*release 해결하기 배포판이 3.x 일 경우 :
공유메모리 비우기 for i in `ipcs -s|grep nobody|awk '{print $2}'`;do ipcrm -s $i;done;
php 컴파일시 에러 - Can't figure out your VCS, not cleaning root@web:/opt/install/php-5.2.13# ./buildconf --force Forcing buildconf buildconf: checking installation... buildconf: autoconf version 2.59 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running vcsclean for you. To avoid this, install autoconf-2.13. Can't figure out your VCS, not cleaning. 해결방법 yum install autoconf213 export PHP_AUTOCONF="/usr/bin/autoconf-2.13" export PHP_AUTOHEADER=/usr/bin/autoheader-2.13 끝~~
rsync를 이용하여 특정 디렉토리 제외하고 동기화 할 때 rsyncd.conf 설정법 # 설정 예 [home] path = /home comment = /home exclude = /user/www.user.com/data/userdata/ <= 이 부분을 추가하면 된다. uid = root gid = root use chroot = yes read only = yes hosts allow = 192.168.0.34 timeout = 600 exclude를 추가시 디렉토리 경로는 path 경로를 제외하고 넣어준다.
Korean ProFTPd Reference 버젼 : v0.6 생성 : 2000.09.01 번역 : ProFTPd korea user group 변환 : reference_to_html.php3 v0.1 by 김정균 <admin@oops.org> 이 문서는 Korea User Group의 Project의 한 일편으로 작성 되어 졌다. ProFTPd Reference는 ProFTPd의 설정 파일에 사용이 되는 지시자들의 간략한 소개를 담고 있다. 이 문서에 대한 저작권은 CopyLeft에 따른다. 단 번역에 참가한 사람들에게 조금은 감사하는 마음을 가져 줬으면 하며, 조금의 도움이 될수 있게끔 행동을 해 주셨으면 한다. 길은 열려있다. ProFTPd에 대한 모든 한글 문서는 ProFTPd Korea user group 에서 볼수가 있다. <anonymous> <Directory> <Global> <Limit> <VirtualHost> AccessGrantMsg Allow AllowAll AllowChmod AllowFilter AllowForeignAddress AllowGroup AllowOve
grub 설정을 잘못하여 정상적으로 부팅되지 않고 grub 콘솔 상태로 부팅되는 경우 해결방법 즉, grub 부트로더가 정상적으로 뜨지 않는 상태입니다. # 장애 상황 - 부팅시 grub 부트로더가 보이지 않고 grub 콘솔 상태가 바로 보임 # 해결방법 - grub 명령어를 통해 부팅하고, grub.conf를 수정하여 grub를 MBR에 재설치 한다. # grub 명령어 - cat : 파일 내용을 보여줌 - root : 부팅 이미지가 있는 파일 시스템을 마운트 - kernel : 커널 이미지를 로딩 - initrd : 커널을 램디스크에 로딩 - boot : 부팅 시작 # 복구예 부팅 이미지가 있는 파일 시스템 마운트 root (hd0,0) 커널 이미지 로딩 kernel /vmlinuz-2.6.18-194.26.1.el5 ro root=/dev/sda2 커널을 램디스크에 로딩 initrd /initrd-2.6.18-194.26.1.el5.img 부팅 boot # 파일 시스템 마운트 설명 root (hd0,0) : 이 명령어는 첫번째 하드의 /dev/sda1 을 마운트 함 리눅스 파일 시스템에서는 장치명이 1번부터 시작하지만 grub에서는 0부터 시작함 따라서
php session 관련 설정값 php에서 세션 시간을 정의할때 php.ini 값을 설정한다. 세션의 쓰레기 처리(garbage collection) 설정하기 session.gc_maxlifetime = 세션을 지울 시간의 설정 session.gc_probability = 세션을 지울 확률을 설정 세션 타임아웃 값 설정하기 session.cache_expire = 초 gc_maxlifetime의 값을 변경하면 된다. 단위 (초), 기본값 1440 특정 페이지에서 세션지속시간을 늘리고 싶은 경우 해당 페이지에 아래 코드를 추가한다. ini_set("session.cache_expire", 3600); ini_set("session.gc_maxlifetime", 3600); // 단위 : 초
Linux에서 error: "package name" specifies multiple packages 발생시 rpm 삭제방법 rpm이 중복되어 있는 경우 rpm -e 로는 삭제되지 않는다. 다음과 같은 메세지가 출력된다. [root@localhost]# rpm -e gcc-gnat-4.1.2-48.el5.i386 error: "gcc-gnat-4.1.2-48.el5" specifies multiple packages 중복되는 rpm 삭제하기 rpm --erase --allmatches gcc-gnat-4.1.2
# xen 레퍼런스 모음 http://www.howtoforge.com/centos_5.0_xen [##_1C|1043856286.docx|style="width: 90px; height: 30px; border: 2px outset #796; background-color: #efd; background-repeat: no-repeat; background-position: center center; background-image: url('/image/extension/unknown.gif')"|_##][##_1C|1317063161.docx|style="width: 90px; height: 30px; border: 2px outset #796; background-color: #efd; background-repeat: no-repeat; background-position: center center; background-image: url('/image/extension/unknown.gif')"|_##]
출처 : http://www.ioncannon.net/system-administration/80/how-to-transfer-linux-from-virtualbox-to-xen/ There have been times recently when I wanted to pull a VirtualBox Linux instance I had into Xen. I kept thinking it had to be fairly easy but I kept putting off trying it until recently when I ran into something I wanted to install from a CD image into an Amazon EC2 AMI. It turns out the main hurdle in transferring an image is lack of documentation. I'm using VirtualBox 2.1.0 so some of the following commands may not work with older versions. I learned the hard way that they have changed a numb
yum으로 update 안될 경우 # 에러 ---> Package python-libs.x86_64 0:2.4.3-43.el5 set to be updated addons/filelists | 197 B 00:00 base/filelists_db | 4.0 MB 00:00 extras/filelists_db | 225 kB 00:00 updates/filelists_db | 1.2 MB 00:00 --> Finished Dependency Resolution gcc-gnat-4.1.2-48.el5.i386 from installed has depsolving problems --> Missing Dependency: libgnat = 4.1.2-48.el5 is needed by package gcc-gnat-4.1.2-48.el5.i386 (installed) gcc-gnat-4.
시스템 하드웨어 정보 보기 파일 업로두 후 make만 수행하면 된다. 컴파일 후 실행파일은 lshw-B.02.15/src 안에 있다. ./lshw : 서버정보 전체보기 ./lshw -short : 서버정보 간략하게 보기 ./lshw –businfo : bus에 대한 자세한 정보 확인 ./lshw -html > system.html : html 페이지로 만들기 ./lshw -help : 옵션 보기 [##_1C|8517759422.gz|style="width: 90px; height: 30px; border: 2px outset #796; background-color: #efd; background-repeat: no-repeat; background-position: center center; background-image: url('/image/extension/unknown.gif')"|_##]