EAS服务从AIX迁移到linux服务器需修改的配置文件

小菜鸟 2013-04-24

1、将AIX服务器文件夹eas,apusictar包。

2、将两个包采用ftp二进制模式传到linux服务器。

3、修改以下配置文件

[list]

/kd/apusic/domains/server1/config/server.xml----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server PUBLIC "-//Apusic//DTD Apusic Server Application 1.1//EN" "http://www.apusic.com/dtds/server_1_1.dtd">

<server>
  <application name="EAS" base="/home/eas/server/deploy/eas.ear" start="auto" />#将路径修改为linux相应路径
  <application name="fileserver" base="/home/eas/server/deploy/fileserver.ear" start="auto" />#将路径修改为linux相应路径
  <application name="EASWeb" base="/home/eas/server/deploy/easweb.ear" start="auto" />#将路径修改为linux相应路径
</server>

[/list]

[list]/kd/eas/server/bin/set-server-env.sh
#!/bin/sh
#===============================================================================
# SCRIPT    : set-server-env.sh
# AUTHOR    : Rock
# Date      : 2007-08-23
# REV       : 5.4
# PLATFORM  : AIX RedHatLinux SuseLinux Solaris HpUnix OS/400
# PURPOSE   : This script is used to define EAS runtime variavables.
# 
# Copyright(c) 2007 Kingdee Co.,Ltd.
# All Rights Reserved 
#===============================================================================
OS_NAME=`uname -s`
export OS_NAME

EAS_HOME=/home/eas
JAVA_HOME=/usr/java/jdk1.6.0_21  #这里的jdk一定是linux版本的,可以自己安装
export EAS_HOME
export JAVA_HOME

if [ $OS_NAME = "HP-UX" ]
then
  CMD_PERL=/opt/perl/bin/perl
  kctune nfile=131000
  kctune maxfiles_lim=65000
  kctune maxfiles=65000
else
  CMD_PERL=/usr/bin/perl
  ulimit -n 65000
fi
export CMD_PERL

LANG=C
export $LANG

ulimit -d unlimited


#PERL5LIB=$EAS_HOME/server/perl/lib
#export PERL5LIB

#application server config
APP_SERVER_TYPE=IA_APPSERVER_NAME
APP_SERVER_HOME=IA_APPSERVER_HOME
APP_SERVER_VERSION=
export APP_SERVER_TYPE
export APP_SERVER_HOME
export APP_SERVER_VERSION

APUSIC_SERVER_HOME=/home/apusic #将路径修改为linux相应路径
WAS_SERVER_HOME=
WLS_SERVER_HOME=
export APUSIC_SERVER_HOME
export WAS_SERVER_HOME
export WLS_SERVER_HOME
EAS_NODEID=EAS830929194762436881947
export EAS_NODEID
HTTPSERVER_PORT=10060
export HTTPSERVER_PORT
ADMINSERVER_PORT=10061
export ADMINSERVER_PORT

[/list]

[list]

/kd/eas/server/profiles/server1/bin/set-server-env.sh
#!/bin/sh
#===============================================================================
# SCRIPT    : set-server-env.sh
# AUTHOR    : Rock
# Date      : 2007-08-24
# REV       : 5.4
# PLATFORM  : AIX RedHatLinux SuseLinux Solaris HpUnix OS/400
# PURPOSE   : This script is used to define EAS runtime variavables.
# 
# Copyright(c) 2007 Kingdee Co.,Ltd.
# All Rights Reserved 
#===============================================================================
OS_NAME=`uname -s`
export OS_NAME

. "./../../../bin/set-server-env.sh"

JVM_INITIAL_HEAP_SIZE=1024m
JVM_MAX_HEAP_SIZE=2048m
JVM_PERM_SIZE=128m
JVM_MAX_PERM_SIZE=368m
JVM_VERBOSE_GC=true
JVM_CUSTOM_PARAMS=""
export JVM_INITIAL_HEAP_SIZE
export JVM_MAX_HEAP_SIZE
export JVM_PERM_SIZE
export JVM_MAX_PERM_SIZE
export JVM_VERBOSE_GC
export JVM_CUSTOM_PARAMS

USE_HTTPSERVER_FOR_DOWNLOAD=false
HTTPSERVER_TYPE=Apache
HTTPSERVER_HOME=
HTTPSERVER_PORT=
export USE_HTTPSERVER_FOR_DOWNLOAD
export HTTPSERVER_TYPE
export HTTPSERVER_HOME
export HTTPSERVER_PORT

#application server config
APP_SERVER_TYPE=apusic
APP_SERVER_VERSION=4.0.3
APP_SERVER_JMX_PORT=17025
APP_SERVER_HTTP_PORT=17025
APP_SERVER_JNDI_PORT=17025
APP_SERVER_SECURITY=true
APP_SERVER_USER=admin
APP_SERVER_PASSWORD=admin
export APP_SERVER_HOME
export APP_SERVER_VERSION
export APP_SERVER_JMX_PORT
export APP_SERVER_HTTP_PORT
export APP_SERVER_JNDI_PORT
export APP_SERVER_SECURITY
export APP_SERVER_USER
export APP_SERVER_PASSWORD

SERVER_NAME=
PROFILES_NAME=server1
PROFILE_PATH=/home/apusic/domains/server1/ #将路径修改为linux相应路径
export SERVER_NAME
export PROFILE_PATH
export PROFILES_NAME
APP_SERVER_HOME=/home/apusic #将路径修改为linux相应路径
export APP_SERVER_HOME
DEPLOY_EASAPP=true
export DEPLOY_EASAPP
DEPLOY_EASWEB=true
export DEPLOY_EASWEB
SERVERRUNNINGEASWEB=
export SERVERRUNNINGEASWEB
DEPLOY_AUTOUPDATEAPP=true
export DEPLOY_AUTOUPDATEAPP

[/list]

4、运行管理控制台./admin.sh

5、注册数据中心导入license