安装ibm jdk1.7 并设置环境生效

1\从IBM 官网下载ibm-java-x86_64-sdk-7.0-10.15,并用Ftp客户端软件,例如,FileZilla软件,传到Linux测试机器.

2\因为下载的ibm-java-x86_64-sdk-7.0-10.15是bin文件,因而要赋于执行权限

#chmod a+x ibm-java-x86_64-sdk-7.0-10.15.bin

然后./ibm-java-x86_64-sdk-7.0-10.15.bin ,完成安装。

3、设置环境变量,让ibm-java 成为本机的jdk环境:

# vi /etc/profile

在profile后面加上如下设置:也可以将下面这些复制,并粘贴VI窗口,但要注意,粘贴时,要切换插入模式。

export JAVA_HOME=/opt/ibm/java-x86_64-70
export JAVA_BIN=/opt/ibm/java-x86_64-70
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH

4、确认环境变量生效:

. /etc/profile(点和/之间有空格)

5、确认Java 生效:

[root@ibmtest ~]# java -version
java version “1.7.0”
Java(TM) SE Runtime Environment (build pxa6470sr10fp15-20171116_01(SR10 FP15))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20171011_366933 (JIT enabled, AOT enabled)
J9VM – R26_Java726_SR10_20171011_1726_B366933
JIT – r11_20171011_366933
GC – R26_Java726_SR10_20171011_1726_B366933_CMPRSS
J9CL – 20171011_366933)
JCL – 20171109_01 based on Oracle jdk7u161-b13

 

LINUX排除cicstg 配置工具ctgcfg启动时的报错

晚上,在虚拟机设置好ibm jdk的运行环境后,尝试启动ctg的配置工具,在shell命令符执行ctgcfg命令报错,提示找不到相关的so文件,循着报错信息,一路排查,一路尝试,最后终于解决问题,终于成功启动ctgcfg配置工具窗口,下面为排障过程,重点地方,会用红色字体标注。。

[root@ibmtest ~]# cd /opt/ibm/cicstg
[root@ibmtest cicstg]# ls
bin deployable installlogs lib msgs readme.html sdk wlp
classes icons installResponseSamp.txt lib64 product.xml readme.txt uninstall91
copybook include jvm170 license properties samples uninstallResponseSamp.txt

[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:222)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:432)
at javax.swing.JFrame.<init>(JFrame.java:236)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类

阅读更多

IBM WAS 通过命令创建概要文件和Server 和删除概要文件

在WAS ND版的服务器上全新创建一个概要文件和Server,创建命令如下:
./manageprofiles.sh -create \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword wasadmin \
-serverName server02 \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv02 \
-profileName AppSrv02 \
-portsFile /opt/portdef.props \
-validatePorts
其中/was/portdef.props文件为端口映射文件:
##################portdef.props########################################
1. WC_defaulthost=9082
2. WC_adminhost=9061
3. WC_defaulthost_secure=9444
4. WC_adminhost_secure=9045
5. BOOTSTRAP_ADDRESS=2811
6. SOAP_CONNECTOR_ADDRESS=8881
7. IPC_CONNECTOR_ADDRESS=9634
8. SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=9407
9. CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=9408
10. CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=9409
11. DCS_UNICAST_ADDRESS=9355
12. SIB_ENDPOINT_ADDRESS=7278
13. SIB_ENDPOINT_SECURE_ADDRESS=7287
14. SIB_MQ_ENDPOINT_ADDRESS=5559
15. SIB_MQ_ENDPOINT_SECURE_ADDRESS=5579
16. SIP_DEFAULTHOST=5062
17. SIP_DEFAULTHOST_SECURE=5063
18. ORB_LISTENER_ADDRESS=9101

阅读更多