# 커널 부트로더 부트 디바이스 수정하기# grub 부팅이 안되는 경우 1. CD부팅 -> 프롬프트 옵션 : linux rescue 2. 부팅완료 후 디렉토리 변경 : >chroot /mnt/sysimage(여기에서 grub.conf 수정, 이것만 해서는 안됨.. 아래가 중요) 3. grub로 들어가기 : >grub 4. 부트 디바이스 설정 : grub> device (hd0) /dev/cciss/c0d0 5. 부트 디바이스 설정 : grub> root (hd0,0) 6. 부트 디바이스 설정 : grub> setup (hd0)
openssl req -new -x509 -days 3650 -sha1 -newkey rsa:2048 # 인증서확인openssl x509 -noout -modulus -in cert.crt | openssl sha1 # 개인키확인openssl rsa -noout -modulus -in privkey.pem | openssl sha1
xen 운영관련 주요 명령어 virt-install --paravirt --name vm01 --ram 2048 --file /vm/vm01.img --file-size 200 --nographics --location http://ftp.daum.net/centos/5.6/os/x86_64/virt-install --paravirt --name vm02 --ram 1536 --file /vm/vm02.img --file-size 200 --nographics --location http://ftp.daum.net/centos/5.6/os/x86_64/ xm list xm console vm01xm create /etc/xen/vm01xm shutdown vm01 cd /etc/xen/
php 컴파일시 아래와 같은 에러 대처하기 -lcrypt -lnsl -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o libphp5.la/usr/bin/ld: cannot find -lltdlcollect2: ld returned 1 exit statusmake: *** [libphp5.la] Error 1 문제ltdl 라이브러리를 찾을 수 없다는 에러임 아래 rpm을 설치해준다.lltdl-devellibtool-ltdl-devel
# samba 계정 추가하기 adduser -d /home2/manage managesmbpasswd -a manage /etc/init.d/smb stop/etc/init.d/smb start
vi 색깔 나오게 하기 yum -y install vim-enhanced vi /root/.bashrc alias vi='vim'
여러개의 tar.gz 압축 한번에 풀기 find . -name "*.tar.gz" -exec tar zxvf {} ;
리눅스 파일시스템 옵션 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;