参考《Linux部署东方通TongWeb7》
将supermap-iserver-10.2.0-war.zip放到/opt目录下进行解压
unzip supermap-iserver-10.2.0-war.zip
cd /opt/supermap-iserver-10.2.0-war
chmod 755 *
tar -zxf support_linux_x64.tar.gz
cd support_linux_x64
./dependencies_check_and_install.sh install -y
cd /opt/supermap-iserver-10.2.0-war/support_linux_x64/SuperMap_License/Support/
tar -xvf aksusbd-8.11.1.tar
cd aksusbd-8.11.1
./dinst
cd /opt/supermap-iserver-10.2.0-war/support_linux_x64/objectsjava/
tar -zxf bin.tar.gz
cd Bin/
ldd libWrapjC* | grep not
编辑/etc/profile,增加UGO_HOME/SUPERMAP_ROOT/LD_LIBRARY_PATH/PATH,最终自定义环境变量如下:
export JAVA_HOME=/opt/jdk
export JRE_HOME=/opt/jdk/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib
export UGO_HOME=/opt/supermap-iserver-10.2.0-war/support_linux_x64/objectsjava
export SUPERMAP_ROOT=/opt/supermap-iserver-10.2.0-war/support_linux_x64
export LD_LIBRARY_PATH=$UGO_HOME/Bin:$LD_LIBRARY_PATH
export PATH=$UGO_HOME/Bin:$JAVA_HOME/bin:$PATH
修改完成后让环境变量生效
source /etc/profile
确保TongWeb7没有启动
只修改startserver.sh即可,后台启动的TongWeb7脚本也是调用此脚本
vi /root/TongWeb7.0/bin/startserver.sh
文件最末尾增加后保存
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"
vi /root/TongWeb7.0/conf/tongweb.properties
文件最末尾增加后保存
tongweb.util.scan.StandardJarScanFilter.jarsToSkip=jersey-*.jar,hadoop-*.jar
进入SuperMap iServer War包解压目录
cd /opt/supermap-iserver-10.2.0-war
将iserver#iClient.war和iserver#help.war重命名,去掉#号
mv iserver#iClient.war iclient.war
mv iserver#help.war help.war
拷贝到/root/TongWeb7.0/autodeploy/目录
cp iserver.war /root/TongWeb7.0/autodeploy/
cp iserver#iClient.war /root/TongWeb7.0/autodeploy/
cp iserver#help.war /root/TongWeb7.0/autodeploy/
最终进入/root/TongWeb7.0/autodeploy后查看
cd /root/TongWeb7.0/autodeploy/
[root@supermap autodeploy]# ll
total 3377736
-rwxr-xr-x 1 root root 565144235 Oct 21 14:35 help.war
-rwxr-xr-x 1 root root 829057853 Oct 21 14:35 iclient.war
-rwxr-xr-x 1 root root 2064583690 Oct 21 14:35 iserver.war
cd /root/TongWeb7.0/bin
./startserver.sh
打开浏览器, 输入TongWeb7.0控制台地址 http://IP地址:9060/console/
默认登录用户名密码为:thanos/thanos123.com
查看/root/TongWeb7.0/logs/iserver.log日志
东方通没有读取到组件环境变量,检查组件环境变量是否配置正确,参考3.5说明。
需要修改应用前缀,界面修改参考3.11说明。
文件方式修改位置:/root/TongWeb7.0/conf/tongweb.xml,重启东方通TongWeb7生效
(转发请注明出处:https://blog.csdn.net/zhang90522 如发现有错,请留言,谢谢)