Apusic文档中心
首页
  • 应用服务器 AAS
  • 负载均衡器 ALB
  • 分布式消息队列 ADMQ
  • 分布式缓存 AMDC
  • 分布式配置中心 ADCC
  • Java开发工具包软件 AJDK
  • 搜索引擎 ASE
  • 中间件云平台 ACP
  • 统一管理平台 AUMP
  • 云原生中间件管理 ACMP
  • DevOps平台 ADOP
  • 许可授权中心 ACLS
  • Copilot智能问答系统 ACS
  • 监控平台 AMP
  • 智能日志 AILP
  • 应用性能管理 AAPM
  • 智能告警 AAlarm
  • 金蝶Apusic AI 极光
  • 主数据管理 AMDM
  • 数据交换平台 ADXP
  • 企业服务总线 AESB
  • 数据智脑 ADPR
  • 服务治理 ASGP
  • 统一身份管理 AIDM
  • 标准模板
  • Markdown教程 (opens new window)
  • VuePress官方社区 (opens new window)
  • 帮助
贡献文档 (opens new window)
首页
  • 应用服务器 AAS
  • 负载均衡器 ALB
  • 分布式消息队列 ADMQ
  • 分布式缓存 AMDC
  • 分布式配置中心 ADCC
  • Java开发工具包软件 AJDK
  • 搜索引擎 ASE
  • 中间件云平台 ACP
  • 统一管理平台 AUMP
  • 云原生中间件管理 ACMP
  • DevOps平台 ADOP
  • 许可授权中心 ACLS
  • Copilot智能问答系统 ACS
  • 监控平台 AMP
  • 智能日志 AILP
  • 应用性能管理 AAPM
  • 智能告警 AAlarm
  • 金蝶Apusic AI 极光
  • 主数据管理 AMDM
  • 数据交换平台 ADXP
  • 企业服务总线 AESB
  • 数据智脑 ADPR
  • 服务治理 ASGP
  • 统一身份管理 AIDM
  • 标准模板
  • Markdown教程 (opens new window)
  • VuePress官方社区 (opens new window)
  • 帮助
贡献文档 (opens new window)
文档中心
  • 金蝶Apusic应用服务器

    • 产品白皮书
    • 产品更新说明
    • Product Whitepaper
    • 產品白皮書
    • V10.0.8SP12标准版

    • V10.0.8SP12标准版_繁體

    • V10.0.8SP12标准版_EN

      • Installation and Deployment
      • Quick Start
      • User Manual
      • Console User Manual
      • Command Line Operation Guide
      • Monitoring Metrics
      • API Documentation
      • Release Notes
    • V10.0.8SP11企业版

    • V10.0.8SP11标准版

    • V10.0.8SP10企业版

    • V10.0.8SP9企业版

    • V10.0.8SP9标准版

    • V10.0.8SP8企业版

    • V10.0.8SP8标准版

    • V10.0.8SP9智能安全版

    • V9.0.0SP9企业版

    • V9.0.0SP8企业版

    • V10.0.8SP8国际版

    • V10.0.10标准版

    • V10.0.10SP1企业版

    • V10.0.11标准版

    • 迁移工具V1.0

    • 金蝶Apusic应用迁移工具

  • 金蝶Apusic负载均衡器

  • 金蝶Apusic分布式消息队列

  • 金蝶Apusic分布式缓存

  • 金蝶Apusic分布式配置中心

  • 金蝶Apusic Java开发工具包软件

  • 金蝶Apusic全文检索

Quick Start

# Preface

This document is the quick start guide for Kingdee Apusic Application Server V10 Standard Edition. It covers system environment requirements, installation methods, basic usage, and more, and is intended for developers who develop applications with Kingdee Apusic Application Server, system administrators of production environments, and operations personnel.

# Intended Audience

This manual is primarily intended for developers who develop applications with Kingdee Apusic Application Server, system administrators of production environments, application release engineers, and technical operations personnel. The following skills will help you better understand and use the Kingdee Apusic Application Server manuals:

  • Familiar with common Linux commands
  • Basic system administration tasks
  • Installing and managing software

# Related Documentation

For more information about the AAS V10 Standard Edition product, refer to the following AAS V10 product documentation set:

No.DocumentationDescription
1Kingdee Apusic Application Server V10 Standard Edition Installation GuideProvides detailed instructions on how to install AAS on various operating systems, as well as AAS service start/stop operations and the product registration process
2Kingdee Apusic Application Server V10 Standard Edition Quick Start GuideBriefly introduces how to quickly get started with AAS
3Kingdee Apusic Application Server V10 Standard Edition User ManualProvides detailed instructions on the usage and operation of AAS-related features, guiding users through system installation and deployment, feature operations, parameter configuration, daily operations and maintenance, and troubleshooting
4Kingdee Apusic Application Server V10 Standard Edition Administration Console User ManualProvides detailed instructions on the usage and operation of AAS Administration Console features, guiding users to perform operations through the visual administration console
5Kingdee Apusic Application Server V10 Standard Edition Command-Line Operation GuideProvides detailed instructions on how to operate and use AAS through the command line
6Kingdee Apusic Application Server V10 Standard Edition Monitoring Metrics DocumentationProvides detailed descriptions of various types of AAS monitoring metrics
7Kingdee Apusic Application Server V10 Standard Edition API DocumentationProvides detailed information about AAS APIs

# Technical Support

The Kingdee Apusic Application Server product provides comprehensive technical support services. You can obtain technical support in the following ways:

  • Website: www.apusic.com
  • Phone: 400-855-5800
  • Email: support@apusic.com
  • Kingdee Cloud Community: https://vip.kingdee.com/?productId=73&productLineId=14&lang=zh-CN

When seeking technical support, please provide the following information:

  1. Your name
  2. Company information and contact details
  3. Operating system and version
  4. Product version number
  5. Details of any exceptions and errors, such as logs and screenshots

# Product Introduction

Kingdee Apusic Application Server V10 Standard Edition is a JAVAEE-compliant web application server. As a lightweight application server, it is typically used in scenarios that require efficient application system development.

# Terms

​ AAS: Kingdee Apusic Application Server

​ AE: Product identifier of Kingdee Apusic Application Server Standard Edition

​ APUSIC_HOME: Installation directory of Kingdee Apusic Application Server

# Environment Preparation

Before installation, confirm the Java environment. JDK 1.8.0_201 or later is recommended. Run the following command to check the JDK version:

[user@test bin]# java -version
java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
1
2
3
4

You can specify the Java runtime environment by adding JAVA_HOME at the beginning of apusic.sh or apusic.bat, for example in apusic.sh:

set JAVA_HOME="/opt/java/jdk1.8.0_271"
1

# Installation

Prepare the installation package AAMS-V10.0.8-SP12-AE-20260701.tar.gz or AAMS-V10.0.8-SP12-AE-20260701.zip, copy it to a directory with the required permissions, and extract it.

The installation is complete once the package is extracted.

Run tar -zxvf AAMS-V10.0.8-SP12-AE-20260701.tar.gz
or unzip AAMS-V10.0.8-SP12-AE-20260701.zip
1
2

# Uninstallation

Delete all files under the installation directory ${APUSIC_HOME}/ to uninstall the product. Uninstallation loses all configured files of the current AAS instance. Proceed with caution.

# License Authorization

AAS requires a valid license to work properly. Normally, Kingdee Apusic provides a matching license according to the product version purchased. If the license expires or becomes invalid during use, contact your Kingdee Apusic service representative first to apply for a new license.

The product provides two authorization modes: standard authorization and centralized authorization.

# Standard Authorization

Standard authorization generates a license.xml file based on the IP address, domain name, or the like, and the license file is placed in the installation directory: ${APUSIC_HOME}/license.xml.

image1

If the management console is installed, the system administrator admin logs in to the management console, clicks the license icon in the upper-right corner, clicks "Update License", uploads a valid license file, and saves it to complete the update. The new license file takes effect after AAS is restarted.

# Centralized Authorization

Centralized authorization connects to an authorization center for unified licensing. The Kingdee Apusic authorization center must be set up first. For details, refer to the Kingdee Apusic License Authorization Center User Manual, or contact Kingdee Apusic technical support.

Configure environment variables in the operating system, or create an acls.properties file in the root directory of the AAS installation directory and add the following parameters:

apusic_acls_enable=true
apusic_acls_authUrls=127.0.0.1:6886
apusic_acls_ns=apusic
apusic_acls_tenant=ApusicTest
1
2
3
4

Description of the connection parameters:

Table 5: Connection parameters of the Kingdee Apusic license authorization center

Parameter Description
apusic_acls_enable Whether to enable authorization center authentication. Valid values: true or false; true enables authorization center authentication. If this parameter is absent or set to false, authorization center authentication is disabled;
apusic_acls_authUrls Address of the authorization center. Multiple authorization addresses can be set in the format ip1:port1,ip2:port2; if one authorization address fails to connect, the others are polled in turn. Required if authorization center authentication is enabled; the port is the HTTPS port of the authorization center;
apusic_acls_ns Namespace that the instance belongs to. Optional parameter; default value: public. You can view the available namespaces in the authorization center management console under System Management - Authorization Management.
apusic_acls_tenant Tenant that the instance belongs to. Optional parameter.

AAS automatically connects to the Apusic authorization center at startup.

# Obtaining the Auth Code

If the license expires or becomes invalid during use, contact your Kingdee Apusic service representative first to apply for a new license. When applying for a new license, provide the product auth code to the Kingdee Apusic representative.

In ${APUSIC_HOME}/bin, run apusic.sh -ac [ethname or ip], where [ethname or ip] is an IP address or a network interface name, for example:

apusic.sh -ac 127.0.0.1
1

The auth code is printed as follows, where Auth Code= is followed by the auth code:

Using APUSIC_BASE:   /opt/AAS/AAMS-V10.0.0
Using APUSIC_HOME:   /opt/AAS/AAMS-V10.0.0
Using APUSIC_TMPDIR: /opt/AAS/AAMS-V10.0.0/temp
Using JRE_HOME:        /usr/local/java/jdk1.8.0_231/jre
Using CLASSPATH:       /opt/AAS/AAMS-V10.0.0/bin/bootstrap.jar:/opt/AAS/AAMS-V10.0.0/bin/aas-juli.jar
Using APUSIC_OPTS:
Auth Code=SZTY829390371
1
2
3
4
5
6
7

After obtaining the auth code, provide it to apply for the license file.

# Obtaining the Auth Code (Embedded Deployment)

When AAS is integrated with Spring Boot, the apusic command for obtaining the auth code is unavailable, and the auth code must be obtained through your application.

If you have a temporary license file that allows the application to start, remove the license file first, then add the JVM parameter apusic-ac to the startup command. Its value is an IP address or a network interface name, for example (eth3 is the network interface name of the test machine; change it according to your actual network information):

java -jar -Dapusic-ac=eth3 boot-quickstart-1.0.jar
1

Because no license file is present, the application stops during startup. Before it stops, the auth code is printed as follows, where Auth Code= is followed by the auth code:

Auth Code=SZTY263537626
license is invalid.
1
2

# Starting the Server

# On Linux

After the installation is complete and the license file is updated, go to ${APUSIC_HOME}/bin and run apusic.sh run.

You can also run ./startapusic.sh to start the service.

# On Windows

After the installation is complete and the license file is updated, go to ${APUSIC_HOME}\bin and run apusic.bat run.

You can also run startapusic.bat to start the service.

# Stopping the Server

# On Linux

​ 1. Ctrl + C

​ If the server was started in the foreground, press Ctrl + C to exit and stop AAS.

​ 2. stopapusic.sh

​ Go to ${APUSIC_HOME}/bin and run stopapusic.sh.

​ 3. Kill the process

​ The server can be stopped with kill [PID]

# On Windows

​ 1. Ctrl + C

​ If the server was started in the foreground, press Ctrl + C to exit and stop AAS

​ 2. stopapusic.bat

​ Go to ${APUSIC_HOME}\bin and run stopapusic.bat.

​ 3. Stop the process

​ Open Task Manager, locate the process, and stop it.

# Accessing the Console

The management console starts by default when the server starts. Visit the system address in a browser: https://127.0.0.1:6848/aas-console.

Log in with the system administrator account:

  • Username: admin
  • Password: Apusic@123

Note: The password must be changed on first login.

image1

# Deploying Applications

# Auto Deployment

Kingdee Apusic Application Server supports automatic application deployment. Place the application package file, such as test1.war, in the ${APUSIC_HOME}/webapps/ directory and start the application server to complete the deployment.

# Console Deployment

Kingdee Apusic Application Server supports deploying applications through the console. The system administrator logs in to the management console, goes to [App Management] - [Applications], clicks "Deploy Application", uploads the application as instructed, and confirms the deployment to complete the operation.

# Command-Line Deployment

Kingdee Apusic Application Server supports deploying applications from the command line. Go to ${APUSIC_HOME}/bin, run ./aascli.sh, enter the username and password, and run app deploy --app-name=<name> --app-path=<app-path>

# Accessing Applications

On a client such as a browser, the URL format is usually http://[IP]:[port]/[application context path], for example http://127.0.0.1:6888/test1 .

Alternatively, in the management console, go to [App Management] - [Applications] and use the accessible link in the row of the application to open the application.

Note: If the application defines its own access URL, access the application according to the actual URL.

# Undeploying Applications

# Console Undeployment

Applications can be undeployed through the console. The system administrator logs in to the management console, goes to [App Management] - [Applications], clicks "Uninstall" in the row of the application to remove, and confirms the uninstallation to complete the operation.

Note: Undeploying an application makes it inaccessible. Proceed with caution.

# Command-Line Undeployment

Kingdee Apusic Application Server supports undeploying applications from the command line. Go to ${APUSIC_HOME}/bin, run ./aascli.sh, enter the username and password, and run app delete <name>

# Configuring Data Sources

# Prerequisites

Prepare the data source environment and the driver of the corresponding version.

# Console Configuration

Data sources can be configured through the console. The system administrator logs in to the management console, goes to [Resources] - [Data Sources], clicks "New", enters the data source information, follows the steps, and clicks "Save" to save the configuration.

Note: The name must be unique and must match the JNDI name defined in the application.

# Configuration File

You can also configure the data source by editing the configuration file. Edit ${APUSIC_HOME}/config/context.xml and add the data source configuration as follows:

<Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://127.0.0.1:3306/test_platform?useUnicode=true&characterEncoding=utf-8" username="[YOUR_USERNAME]"
    password="[YOUR_PASSWORD]" maxTotal="100" maxIdle="30" maxWaitMillis="10000" />
1
2
3

Also place the driver of the corresponding version in the ${APUSIC_HOME}/lib/ directory.

Note: To look up the JNDI name in code, add the java:comp/env prefix, for example java:comp/env/jdbc/test for the preceding data source.

# Log Configuration

Kingdee Apusic Application Server provides log configuration features. Log in to the management console and go to [Logs] - [Log Config] to configure logging.

# System Logs

Log in to the management console and go to [Logs] - [Log Config] - [System Log Config]. Alternatively, configure logging in ${APUSIC_HOME}/config/logging.properties.

By default, log files are stored in ${APUSIC_HOME}/logs/ .

# Access Logs

Log in to the management console and go to [Logs] - [Log Config] - [Access Log Config]. Alternatively, modify the configuration file; the valve can be configured in application or service. If it is configured in host, all application accesses under that host are logged.

<Valve className="com.apusic.ams.valves.AccessLogValve" directory="logs" prefix="access_log" suffix=".txt"
    pattern="common" />
1
2

By default, log files are stored in ${APUSIC_HOME}/logs/ .

编辑页面 (opens new window)

← Installation and Deployment User Manual→

  • 浅色模式