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')"|_##]
INFO: task mysqld:24715 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. mysqld D ffffffff80150939 0 24715 2442 24718 24712 (NOTLB) ffff81000fd03e18 0000000000000086 0000000000000074 ffffffff80225c04 00000000ffffffda 000000000000000a ffff810073667820 ffff810037e57860 00054ecb31e59901 000000000001991f ffff810073667a08 0000000700000000 Call Trace: [<ffffffff80225c04>] sock_aio_read+0x4f/0x5e [<ffffffff800646ac>] __down_read+0x7a/0x92 [<ffffffff80066ad0>] do_page_fault+0x446/0x874 [<ffffffff800a0b5f>]
# yum으로 i?86 패키지 전체 삭제하기yum remove *.i?86 # i386 패키지 전체 삭제하기yum remove *.i386 /etc/yum.conf 파일에 ?86 패키지를 업데이트나 설치시 사용하지 않도록한다.exclude = *.i?86
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 =
빈줄 삭제:g/^$/d # 해당 문자열이 들어간 라인 삭제설명 : 이 문자열이 들어간 라인은 모두 삭제:% g/문자열/d # 특정 문자열만 들어간 라인 삭제설명 : 문자열 앞 뒤로 < 와 > 를 감싸주면 해당 단어만을 의미한다.:% g/<문자열>/d
# gd 소스 설치 tar xvfpz gd-2.0.33.tar.gzcd gd-2.0.33./configure --prefix=/opt/webapps/gd makemake install
# libmcrypt 소스 설치 tar xvfpz libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7./configure --prefix=/opt/webapps/libmcrypt makemake install
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