우선 SUN JDK 설치 후 VMWare tcServer 설치
작업 환경 : CentOS 5.9, SUN Java 1.6, tcServer 2.9.3
[root@was was]# cat /etc/redhat-release
CentOS release 5.9 (Final)
[root@was was]# uname -a
Linux was 2.6.18-348.16.1.el5 #1 SMP Wed Aug 21 04:00:25 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
1. 설치 파일 확보 : SUN JDK 및 VMWare tcServer
[root@was was]# ls
jdk-6u45-linux-i586-rpm.bin
jdk-6u45-linux-x64-rpm.bin
vfabric-tc-server-standard-2.9.3-RELEASE.noarch.rpm
2. SUN JDK 1.6 설치 및 확인
* 여기선 x32설치, 필요시 x64 설치
[root@was was]# mkdir tt;cd tt
[root@was tt]# sh ../jdk-6u45-linux-i586-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u45-linux-i586.rpm
inflating: sun-javadb-common-10.6.2-1.1.i386.rpm
inflating: sun-javadb-core-10.6.2-1.1.i386.rpm
inflating: sun-javadb-client-10.6.2-1.1.i386.rpm
inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm
inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm
inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
Preparing... ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]
Done.
[root@was tt]# whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java
[root@was tt]# java -fullversion
java full version "1.6.0_45-b06"
[root@was tt]# rpm -qa | egrep -e java -e jdk
jdk-1.6.0_45-fcs
sun-javadb-demo-10.6.2-1.1
sun-javadb-common-10.6.2-1.1
sun-javadb-client-10.6.2-1.1
sun-javadb-docs-10.6.2-1.1
sun-javadb-core-10.6.2-1.1
sun-javadb-javadoc-10.6.2-1.1
3. VMWare tcServer 설치 및 확인
[root@was tt]# cd ..
[root@was was]# rpm -i vfabric-tc-server-standard-2.9.3-RELEASE.noarch.rpm
[root@was was]# rpm -qa | grep vfabric
vfabric-tc-server-standard-2.9.3-RELEASE
[root@was was]# cd /opt/vmware/vfabric-tc-server-standard/
[root@was vfabric-tc-server-standard]# ls
lib README.txt tcruntime-instance.bat tomcat-6.0.37.A.RELEASE
licenses tcruntime-ctl.bat tcruntime-instance.sh tomcat-7.0.42.A.RELEASE
quickstart tcruntime-ctl.sh templates
4. server01 인스턴스 구성 및 확인
* 여기에선 기본인 tomcat7 대신 tomcat6를 선택하였음
** 필요에 따라 server01/conf/tomcat-users.xml 등 수정
tcServer 설치시 생성된 tcserver 라는 계정 사용
[root@was vfabric-tc-server-standard]# tail -1 /etc/passwd
tcserver:x:503:502:tc Server User:/home/tcserver:/bin/bash
[root@was vfabric-tc-server-standard]# chmod g+w .
[root@was vfabric-tc-server-standard]# su - tcserver
[tcserver@was ~]$ cd /opt/vmware/vfabric-tc-server-standard/
[tcserver@was vfabric-tc-server-standard]$ JAVA_HOME=/usr/java/default ./tcruntime-instance.sh create -v 6.0.37.A.RELEASE server01
Creating instance 'server01' ...
Using separate layout
Creating bin/setenv.sh
Applying template 'base'
Copying template's contents
Applying fragment 'context-fragment.xml' to 'conf/context.xml'
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying fragment 'web-fragment.xml' to 'conf/web.xml'
Applying fragment 'tomcat-users-fragment.xml' to 'conf/tomcat-users.xml'
Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties'
Applying template 'base-tomcat-6'
Copying template's contents
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying fragment 'web-fragment.xml' to 'conf/web.xml'
Applying template 'bio'
Copying template's contents
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Configuring instance 'server01' to use Tomcat version 6.0.37.A.RELEASE
Setting permissions
Instance created
Connector summary
Port: 8080 Type: Blocking IO Secure: false
[tcserver@was vfabric-tc-server-standard]$ ls server01
bin conf lib logs README.txt temp webapps work
[tcserver@was vfabric-tc-server-standard]$ JAVA_HOME=/usr/java/default ./tcruntime-instance.sh list
Listing instances in '/opt/vmware/vfabric-tc-server-standard'
server01 Info:
Instance name: server01
Runtime version: 6.0.37.A.RELEASE
tc Runtime Base: /opt/vmware/vfabric-tc-server-standard/server01
Status: NOT RUNNING
[tcserver@was vfabric-tc-server-standard]$
5. server01 인스턴스 확인, 구동 후 graceful 정지
[tcserver@was vfabric-tc-server-standard]$ JAVA_HOME=/usr/java/default ./tcruntime-ctl.sh server01 status
Instance name: server01
Runtime version: 6.0.37.A.RELEASE
tc Runtime Base: /opt/vmware/vfabric-tc-server-standard/server01
Status: NOT RUNNING
[tcserver@was vfabric-tc-server-standard]$ JAVA_HOME=/usr/java/default ./tcruntime-ctl.sh server01 start
Using CATALINA_BASE: /opt/vmware/vfabric-tc-server-standard/server01
Using CATALINA_HOME: /opt/vmware/vfabric-tc-server-standard/tomcat-6.0.37.A.RELEASE
Using CATALINA_TMPDIR: /opt/vmware/vfabric-tc-server-standard/server01/temp
Using JRE_HOME: /usr/java/default
Using CLASSPATH: /opt/vmware/vfabric-tc-server-standard/tomcat-6.0.37.A.RELEASE/bin/bootstrap.jar
Using CATALINA_PID: /opt/vmware/vfabric-tc-server-standard/server01/logs/tcserver.pid
Status: RUNNING as PID=11482
[tcserver@was vfabric-tc-server-standard]$ JAVA_HOME=/usr/java/default ./tcruntime-ctl.sh server01 stop
Instance is running as PID=11482, shutting down...
Instance is running PID=11482, sleeping for up to 60 seconds waiting for shutdown
Instance shut down gracefully
[tcserver@was vfabric-tc-server-standard]$
댓글 없음:
댓글 쓰기