0


金蝶中间件Apusic单机部署并发布服务

1.上传apusic安装包并解压

  1. [root@CentOS7 opt]# mkdir /usr/AAS
  2. [root@CentOS7 opt]# cd /usr/AAS/
  3. [root@CentOS7 AAS]# unzip AAS-V9.0.zip
  4. [root@localhost AAS]# ls
  5. 3RD-PARTY-LICENSE.txt AAS-V9.0.zip bin classes common docs domains domains.xml lib license.xml readme.html sp src templates tools

2.配置环境变量

  1. [root@localhost AAS]# cd /usr/AAS/bin/
  2. [root@localhost bin]# vi setenv

配置自己的jdk路径,esc退出,:wq保存。

3.启动运行

  1. [root@localhost /]# cd /usr/AAS/domains/mydomain/bin
  2. [root@localhost bin]# sh ./startapusic

启动后我这里显示license过期,需要替换license.xml文件

进入到金蝶中间件的安装目录下,替换license.xml文件并重新启动

  1. [root@localhost bin]# cd /usr/AAS/
  2. [root@localhost AAS]# ls
  3. 3RD-PARTY-LICENSE.txt AAS-V9.0.zip bin classes common docs domains domains.xml lib license.xml readme.html sp src templates tools
  4. [root@localhost AAS]# cd /usr/AAS/domains/mydomain/bin
  5. [root@localhost bin]# sh ./startapusic

第一次启动时需要输入管理员密码

输入完成后中间件成功启动,服务器就绪。

但以上运行方式在关闭终端窗口后会导致 AAS 进程退出,因此后续运行可以使用 nohup + 后台方式运行:

nohup ./startapusic > apusic-start.log 2>&1 &

注意:首次运行时建议不要使用该命令,因为首次运行需要设置中间件管理控制台初始密码,而以上命令无法接受终端输入。

通过http://IP地址:6888/admin访问金蝶管理平台,输入账号密码登录,至此金蝶中间件安装完成。(默认账号:admin 密码:首次启动时管理员初始化密码)

4.在金蝶中间上部署服务

首先停止金蝶中间件的运行

  1. [root@localhost bin]# ps -ef|grep apusic
  2. root 8642 8425 0 14:22 pts/0 00:00:00 /bin/sh ./startapusic
  3. root 8660 8642 10 14:22 pts/0 00:00:09 /usr/jdk/jdk1.8.0_201/bin/java -Dcom.apusic.domain.home=/usr/AAS/domains/mydomain -server -Djava.net.preferIPv4Stack=true
  4. root 8733 8425 0 14:24 pts/0 00:00:00 grep --color=auto apusic
  5. [root@localhost bin]# ^C
  6. [root@localhost bin]# kill -9 8660
  7. [root@localhost bin]# ps -ef|grep apusic
  8. root 8737 8425 0 14:25 pts/0 00:00:00 grep --color=auto apusic

进入金蝶中间件的domains域中,删除掉默认的mydomain,复制一份samples重命名为restcloud(也可以不删除mydomain,直接进入mydomain下的applications里上传war包)。

  1. [root@localhost /]# cd /usr/AAS/domains
  2. [root@localhost domains]# rm -rf mydomain/
  3. [root@localhost domains]# ls
  4. samples
  5. [root@localhost domains]# cp -r samples/ restcloud
  6. [root@localhost domains]# ls
  7. restcloud samples

修改金蝶中间件的默认端口,我这里把端口修改为8080。(也可以不进行使用默认端口:6888)

  1. [root@localhost /]# cd /usr/AAS/domains/restcloud/config/
  2. [root@localhost config]# vi apusic.conf

再进入bin目录下修改启动类文件(在下图标记出后面加上 -Djava.awt.headless=true)。

  1. [root@localhost /]# cd /usr/AAS/domains/restcloud/bin/
  2. [root@localhost bin]# vi startapusic

最后进入到applications下,清空原本的文件并上传war包。

  1. [root@localhost /]# cd /usr/AAS/domains/restcloud/applications/
  2. [root@localhost applications]# ls
  3. default jpa.ear jsp.ear mdb.ear servlet.ear stateful.ear stateless.ear
  4. [root@localhost applications]# rm -rf *
  5. [root@localhost applications]# ls
  6. ROOT.war

然后启动金蝶中间件,使用8080端口访问服务管理平台并登录。

最后正常访问服务平台,服务部署完成

标签: linux 中间件

本文转载自: https://blog.csdn.net/weixin_50791990/article/details/126781556
版权归原作者 伍十八i 所有, 如有侵权,请联系我们删除。

“金蝶中间件Apusic单机部署并发布服务”的评论:

还没有评论