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
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
# 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
chattr, lsattr 루트도 지우지 못하는 파일을 설정한다. chattr [옵션] [+=-속성] [파일명] [옵션] -V: 파일속성을 바꾼 다음에 보여줌 -R: 하위 디렉토리까지 재귀적으로 바꿈 [속성] a: 파일을 추가모드로만 열수 있다. 단, vi편집기로는 내용을 추가 할 수 없다. c: 압축되어 있는 상태로 저장함 d: dump명령을 통하여 백업받을 경우 백업받지 않음. i : 파일을 read-olny로만 열 수 있게 설정한다. 링크도 허용하지 않고 루트만이 이 속성를 제거할 수 있다. 속성를 추가 할때는 "+속성" 속성를 제거할 때는 "-속성" "=속성"를 사용할 경우 현재의 속성는 제거되고 오직 "=속성"로 설정된 속성만 적용된다. * lsattr 이라는 명령으로 파일의 chattr 속성를 확인할 수 있다. ---------------------------------------------------------------------- 예) file1에 i 속성를 추가할 때 chatr +i file1 예) 파일의 chattr 속성 확인 [root@ezvil log]# lsattr messages -----a------- messages 예) a 속
리눅스는 런레벨이라는 개념을 가지고 있는데, 어떤 런레벨을 사용하느냐에 따라 다른 서비스가 시작된다. 0: 시스템 정지(예약영역) 1: 단일 사용자 모드(예약영역) 2: NFS를 사용하지 않는 다중 사용자 모드 3: 완전한 다중사용자 모드 4: 사용하지 않음 5: 완전한 다중 사용자모드 + X11(xdm) 로그인 6: 시스템 리부팅(예약영역) S,s: 런레벨을 1로 하는데 사용되는 스크립트-직접 사용하지 않음 7-9: 유효하지만 일반적으로 사용하지 않음 런레벨은 init 에 의해 제어되며, init는 커널 부트 시퀀스의 마지막 단계에서 시작된다. 디폴트 런레벨은 /etc/inittab 파일 안에서 다음과 같이 정의 되어 있다. id:3:initdefault:
Dec 24 11:03:01 48s crond[13447]: (*system*) RELOAD (/etc/crontab) 1. 퍼미션 확인 chmod 600 /etc/crontab 퍼미션 수정 후 crond을 재시작 해준다
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/
# 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')"|_##]
# 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/
date : 071417352008 >> 월일 >> 시간 >> 년도
#passwd -l 아이디 "아이디" 사용자는 패스워드에 락이 걸림으로써 어떠한 패스워드로도 인증을 받을 수 없다. FTP, SSH, TELNET은 접속이 불가능. 단, 웹과 DB는 정상적으로 운영된다. 해제하기 #passwd -u 아이디
EXT3-fs error (device sda2) in start_transaction: Journal has aborted EXT3-fs error (device sda2) in start_transaction: Journal has aborted 위와같은 에러 메시지가 발생되면서 특정 파티션이나 혹은 모든 파티션이 읽기모드로(Read Only mode) 변경된다. 이러면서 업데이트가 불가능해지는데... 원인은 아래와 같다. 1. 파워 불량 2. 일시적인 전원 불량 3. 비정상적인 서버 종료 InstructionsThings You'll Need:A linux Rescue CD, like SysRescueCD or a bootable OS from CD or disk, like Tomcat. Step 1Reboot the server, and watch for the moment when it asks you to push "Y" to start a filesystem check, and let it cleanup the system. If you never get the opportunity to do the "Y" selection because it