반응형
-----------------------------------------------------------------------------------------
./mqlicense.sh -accept

Licensed Materials - Property of IBM

 5724-H72

 (C) Copyright IBM Corporation 1994, 2009 All rights reserved.

US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.


./mqlicense.sh: ./lap/jre/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

ERROR:  Installation will not succeed unless the license
        agreement can be accepted.

        If the error was caused by a display problem,
        read the license agreement file  (LA_xx, where
        xx represents your language ) in the 'licenses'
        directory, and then run the following command:

            mqlicense.sh -accept

        Only use this command if you accept the license
        agreement.

        For other errors, contact your IBM support centre.



이럴 경우 대비책

1) config 값을 바꾼다.
You need to disable Selinux.
Go to /etc/selinux directory, open the file config, which would look like:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

Change the line SELINUX=enforcing to
SELINUX=disabled

2) java bin가 연결이 안되어 있을수도 있다..
./mqlicense.sh -accept -jre /usr/bin/java

이렇게 둘중에 하나 하면 될지도... ㅡㅡ
개인적으로 난 2번째껄로 하니깐 해결됨.
-----------------------------------------------------------------------------------------

MQ Requirement
검증이된 OS
Red Hat Enterprise Linux AS V3.0 및 Update 2
SuSE Linux Enterprise Server(SLES) V8 및 Service Pack 3

WebSphere MQ 파일 시스템 작성
제품 코드에 대한 설치 디렉토리(바이너리)는 /opt/mqm이고, 작업 데이터(오브젝트)는 /var/mqm에 저장됩니다.
해당 위치를 변경 할 수는 없고, GSKit도 디폴트 위치에 설치 되어야 합니다.
파일 시스템이 제품을 포함하기에 너무 작아서 제품 코드를 설치할 수 없는 경우는 다음중 하나를 수행 할 수 있습니다.
/bigdisk/mqm 에 설치를 하고 싶다면 다음과 같이 bigdisk로의 심볼릭 링크를 작성해 줍니다.
ln -s /bigdisk/mqm /opt/mqm
커널 구성
공유 세그먼트의 최대 크기를 256MB 이상 설정을 해야 합니다.
확인방법은 cat /proc/sys/kernel/shmmax
설정 방법은 echo 268435456 > /proc/sys/kernel/shmmax
시스템 로드가 큰 경우 열린 파일의 최대 개수를 늘려야하는데 32768 이상 설정합니다.
확인방법은 cat /proc/sys/fs/file-max
설정 방법은 echo 32768 > /proc/sys/fs/file-max
시스템을 다시 시작할 때마다 이러한 값을 구성하려면 이 명령을 /etc/rc.d/...의 시동 스크립트에 추가하는 것이 좋습니다.

리눅스 32bit mq 설치
1. root로 로그인
2. mqm그룹과 mqm그룹에 속하는 mqm 계정 생성
3. mq라이센스 승인
./mqlicense.sh -accept
4. rpm -ivh rpm파일명.rpm 로 하면 설치가 된다.
MQSeriesRuntime-6.0.0-0.i386.rpm
MQSeriesServer-6.0.0-0.i386.rpm 이 두개가 기본
MQSeriesClient-6.0.0-0.i386.rpm
MQSeriesMsg_ko-6.0.0-0.i386.rpm
MQSeriesMan-6.0.0-0.i386.rpm
MQSeriesSamples-6.0.0-0.i386.rpm
MQSeriesSDK-6.0.0-1.i386.rpm
그리고 나서 mq 설치와 동일한 방법으로 픽스를 설치를 한다.

리눅스 64bit mq 설치
1. root로 로그인
2. mqm그룹과 mqm그룹에 속하는 mqm 계정 생성
3. mq라이센스 승인
./mqlicense.sh -accept
4. rpm -ivh rpm파일명.rpm 로 하면 설치가 된다.
MQSeriesRuntime-6.0.1-0.x86_64.rpm
MQSeriesServer-6.0.1-0.x86_64.rpm 이 두개가 기본
MQSeriesClient-6.0.1-0.x86_64.rpm
MQSeriesMsg_ko-6.0.1-0.x86_64.rpm
MQSeriesMan-6.0.1-0.x86_64.rpm
MQSeriesSamples-6.0.1-0.x86_64.rpm
MQSeriesSDK-6.0.1-0.x86_64.rpm
그리고 나서 mq 설치와 동일한 방법으로 픽스를 설치를 한다.
QMGR을 만들때는 /var/mqm/mqs.ini의 파일에 정의 되어있는 값들을 기본으로 생성을 합니다.
로그 사이즈는 하루 얼마나 쌓이는지 확인하고, 대략 한달치 정도 쌓이도록 저장을 합니다.
로그파일 사이즈는 16384가 최대 큰 값이고, 16384*4KB 하면 64MB 이다.

리눅스 mq 삭제 방법
1. root로 로그인
2. dspmq 명령을 사용하여 시스템에 있는 모든 큐 관리자의 상태를 표시
3. endmqm 명령을 사용하여 실행 중인 모든 큐 관리자를 정지
3. 리스너 정지, 트리거모니터링.. 기타 등등 동일.
endmqlsr -m {QMgrName}
4. ps -ef | grep mq MQ프로세스 모두 정지 했는지 확인.
amq 또는 runmq로 시작하여 명령행을 실행 중인 프로세스가 나열되지 않는지 점검, amqi로 시작하는 프로세스는 무시하여도 됩니다.
5. 설치 제거하기 전에 현재 설치되어 있는 패키지(구성요소)의 이름을 알아야함
rpm -q -a | grep MQSerise
rpm -q -a | grep gsk
*설치에 FIX가 적용이 되어있는 경우에는 기본 설치를 제거하기 전에 FIX 부터 먼저 제거 하여야 한다.
6. rpm 명령은 해당 패키지에 다른 패키지가 종속된 경우 이를 제거하지 않습니다.
이러한 이유로, 다른 패키지에 종속되지 않은 순서로 각 패키지를 설치 제거해야 합니다.
예를 들어, 런타임, 서버 및, SDK구성요소를 제거하려면 다음을 입력하십시오.
rpm -ev MQSeriseRuntime MQSeriesServer MQSeriesSDK
7. 설치가 제거된 후에는 오브젝트 디렉토리는 삭제가 되지 않고 남아 있습니다.
마이그레이션 혹은 재 설치를 할때 자동으로 이러한 오브젝트를 그대로 가져와 사용을 합니다.
기존의 QMGR과 동일하게 생성을 할려면 /var/mqm/qmgrs/{QMgrName}/qm.ini 의 파일 속성을 그대로 mqs.ini파일에 설정을 한 다음에 생성하면 됩니다.(%메모장등에 복사 필요)
반응형

+ Recent posts