AIX, sendmail 구동, 정지, 확인 방법

참고 URL : http://ttend.tistory.com/202
긴 한데 내용이 잘못된게 있다…

—– 내가 확인한 명령 —–

기동 : startsrc -s ‘sendmail’ -a ‘-bd -q30 m’

중지 : stopsrc -s ‘sendmail’

기동확인 : lssrc -a | grep sendmail

기동 -> 기동확인 -> 중지 -> 기동확인 증빙Cap 2016-03-02 10-34-51-404

—– 삽질내용 —–
startsrc -s ‘sendmail’ 이렇게 하면 기동 안된다

Cap 2016-03-02 10-37-34-847.jpg

덕분에 삽질을 너무 오래했다

———————————————————

Cap 2016-02-25 10-48-43-563

Cap 2016-02-25 10-49-52-926

 

APACHE2.4 설치기록 및 RPM 목록 (AIX 7.1)

AIX 7.1 환경에서 apache2.4.12 버전을 rpm 설치 성공한 버전을 정리하여 올립니다. 많은 삽질이 있었지만 아래 순서대로 설치성공 했습니다.

사용한 RPM 버전들이 7.1 이전버전들것을 쓰기때문에 다른 AIX 버전에서도 잘 될 것으로 예상됩니다 (해보진 않았어요. 더이상 클린한 서버가 없습니다. -_-)

사용한 RPM 첨부는 추후에…

0. 통신방식

HTTP: 88
HTTPS:8443 -> AJP:8109 (톰켓)

1.RPM설치

/app/apache>rpm -ivh gettext-0.10.40-8.aix5.2.ppc.rpm
gettext ##################################################
/app/apache>
/app/apache>rpm -ivh libiconv-1.14-2.aix5.1.ppc.rpm
libiconv ##################################################
/app/apache>
/app/apache>rpm -ivh bash-4.3-16.aix5.1.ppc.rpm
bash ##################################################
/app/apache>
/app/apache>rpm -ivh apr-1.5.1-1.aix5.2.ppc.rpm
apr ##################################################
/app/apache>
/app/apache>rpm -ivh expat-2.1.0-1.aix5.1.ppc.rpm
expat ##################################################
/app/apache>
/app/apache>rpm -ivh apr-util-1.5.4-1.aix5.1.ppc.rpm
apr-util ##################################################
/app/apache>
/app/apache>rpm -ivh openssl-1.0.1l-1.aix5.1.ppc.rpm
warning: /var/ssl/openssl.cnf saved as /var/ssl/openssl.cnf.rpmorig
openssl ##################################################
/app/apache>
/app/apache>rpm -ivh openldap-2.4.23-0.1.aix5.1.ppc.rpm
openldap ##################################################
/app/apache>
/app/apache>rpm -ivh apr-util-ldap-1.5.4-1.aix5.1.ppc.rpm
apr-util-ldap ##################################################
/app/apache>
/app/apache>rpm -ivh bzip2-1.0.2-4.aix5.1.ppc.rpm
bzip2 ##################################################
/app/apache>
/app/apache>rpm -ivh zlib-1.2.4-2.aix5.1.ppc.rpm
zlib ##################################################
/app/apache>
/app/apache>rpm -ivh info-5.0-2.aix6.1.ppc.rpm
warning: /opt/freeware/info/dir created as /opt/freeware/info/dir.rpmnew
info ##################################################
/app/apache>rpm -ivh readline-5.2-1.aix5.1.ppc.rpm
readline ##################################################
/app/apache>rpm -ivh libidn-1.29-1.aix5.1.ppc.rpm
libidn ##################################################
/app/apache>
/app/apache>rpm -ivh db4-4.7.25-2.aix5.1.ppc.rpm
db4 ##################################################
/app/apache>
/app/apache>rpm -ivh pcre-8.36-1.aix5.1.ppc.rpm
pcre ##################################################
/app/apache>
/app/apache/httpd2.4.12>rpm -ivh httpd-2.4.12-1.aix5.1.ppc.rpm
3004-686 그룹 “apache”이(가) 존재하지 않습니다.
3004-687 사용자 “apache”이(가) 존재하지 않습니다.
httpd ##################################################

2.아파치 기동테스트
– /opt/freeware/etc/httpd/conf/httpd.conf 에서 LISTEN 80 -> 88 로 변경 (선택)
– /opt/freeware/sbin/apachectl start
http://서버ip:88 로 접속테스트시 It Works 가 뜨면 정상구동된 것임

3.SSL, MOD_JK 설치
/app/apache>
/app/apache>rpm -ivh mod_ssl-2.4.12-1.aix5.1.ppc.rpm
mod_ssl ##################################################
Please restart your web server using: ‘/opt/freeware/sbin/apachectl restart’
/app/apache>rpm -ivh mod_jk-ap24-1.2.40-1.aix5.1.ppc.rpm
mod_jk-ap24 ##################################################
Please restart your web server using: ‘/opt/freeware/sbin/apachectl restart’
/app/apache>

4.SSL 인증서 복사
/opt/freeware/etc/httpd/conf>mkdir certs
/opt/freeware/etc/httpd/conf>cd certs
/opt/freeware/etc/httpd/conf/certs>cp SSL파일경로 ./

5.SSL 인증서 설정적용
경로 : /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf

httpd-ssl.conf 내용수정
Listen 8443
<VirtualHost *:8443>
ServerName 아파치 서버IP:8443

SSLCertificateFile 주석처리
SSLCertificateKeyFile 주석처리

SSLEngine on 밑에 아래 내용 추가
SSLCertificateFile “/opt/freeware/etc/httpd/conf/certs/cert.pem”
SSLCertificateKeyFile “/opt/freeware/etc/httpd/conf/certs/key.pem”
SSLCACertificateFile “/opt/freeware/etc/httpd/conf/certs/RootCA.crt”

JkMountFile conf/extra/uriworkermap.properties

6.MOD_JK 설정적용
JkMountFile conf/extra/uriworkermap.properties 주석해제

7.uriworkermap.properties 작성
/opt/freeware/etc/httpd/conf/extra/uriworkermap.properties
/*=balancer

8.workers.properties
worker.balancer.type=lb 밑에 아래 내용추가
worker.balancer.balance_workers=node1,node2
worker.balancer.sticky_session=true

worker.balancer.balance_workers=node1 주석처리
worker.node1.host=1번 WAS IP
worker.node1.port=8109

#worker.balancer.balance_workers=node2 주석처리
worker.node2.host=2번 WAS IP
worker.node2.port=8109

9. 기동시 트러블슈팅

[에러1]

/opt/freeware/sbin>./apachectl start
AH00526: Syntax error on line 79 of /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf:
SSLSessionCache: ‘shmcb’ session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
/opt/freeware/sbin>

위 에러일때는 /opt/freeware/etc/conf/httpd.conf 에서 아래 줄 주석해제한다
LoadModule socache_shmcb_module /opt/freeware/lib/httpd/modules/mod_socache_shmcb.so

[에러2]

/opt/freeware/sbin>./apachectl start
AH00526: Syntax error on line 125 of /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf:
JkMountFile: Can’t find the mount file specified
/opt/freeware/sbin>

uriworkermap.properties 파일을 http/conf/extra 밑으로 이동

AIX, JAVA1.6 install

IBM 사이트에서 JAVA6를 다운받은 상태에서 시작

tar -xvf Java6.sdk.6.0.0.460.tar
Cap 2015-10-20 21-06-56-657

root 계정으로 변경

Java6.sdk 파일이 있는 곳으로 이동후

smitty installp (엔터)Cap 2015-10-20 21-09-44-439

엔터

Cap 2015-10-20 21-10-39-618

./Java6.sdk 입력후 엔터

Cap 2015-10-20 21-12-04-108

Cap 2015-10-20 21-12-30-140

방향키로  ACCEPT new license agreements 로 이동

Cap 2015-10-20 21-13-21-705

tab 입력 하면 no -> yes로 바뀜

Cap 2015-10-20 21-13-54-450

엔터

Cap 2015-10-20 21-14-37-133

엔터

아래처럼 설치가 진행됨

Cap 2015-10-20 21-15-02-995

설치종료

Cap 2015-10-20 21-16-45-459

esc + 0 을 입력하여 나온다

/usr/java6/bin 으로 이동하여 정상적으로 설치되었는지 확인

./java -version

Cap 2015-10-20 21-18-43-764

설치 끝~