安装
复制openjms目录至需要安装的目录
新建一个环境变量 OPENJMS_HOME
在windows下,新建系统变量 OPENJMS_HOME=安装路径
在linux 下,修改/etc/profile文件,加入一行
export OPENJMS_HOME=/usr/local/openjms在mysql中建立数据库openjms
配置
在windows下
l 找到openjms\bin\setenv.bat
编辑红色部分为相应的路径
CLASSPATH=%CLASSPATH%;F:\openjms\lib\mysql-connector-java-3.0.14-production-bin.jarl 找到openjms\config\openjms.xml 
修改下面几行代码中的url、user、password  <DatabaseConfiguration>
    <RdbmsDatabaseConfiguration
      driver="com.mysql.jdbc.Driver"
      url="jdbc:mysql://localhost/openjms" 
      user="root" 
      password="admin" />
   </DatabaseConfiguration>修改<ServerConfiguration host="localhost" embeddedJNDI="true" />为当前机器的IPl 在命令行下执行
cd %OPENJMS_HOME%\bin
dbtool.bat -create -config %OPENJMS_HOME%\config\openjms.xml

此时,数据库openjms中将会建立相应的表在linux下
l 找到openjms/bin/setenv.sh,
编辑红色部分为相应的路径
CLASSPATH=${CLASSPATH}:/usr/local/openjms/lib/mysql-connector-java-3.0.14-production-bin.jar:
l 找到openjms\config\openjms.xml 
修改下面几行代码中的url、user、password
  <DatabaseConfiguration>
    <RdbmsDatabaseConfiguration
      driver="com.mysql.jdbc.Driver"
      url="jdbc:mysql://192.168.1.223/openjms" 
      user="root" 
      password="" />
  </DatabaseConfiguration>
修改<ServerConfiguration host="localhost" embeddedJNDI="true" />为当前机器的IP(在l 在新建终端中执行
cd $OPENJMS_HOME/bin
dbtool.sh -create -config $OPENJMS_HOME/config/openjms.xml运行
l 启动 openjms
windows下运行openjms\bin\startup.bat
linux下运行 openjms/bin/startup.sh在linux下,可能需要为以上的.sh执行文件分配权限
Chmod +x openjms/bin//admin.shl 关闭 openjms
windows下直接关闭窗口
linux下,执行 /usr/local/openjms/bin/openjms.sh stop