1 服务器管理

可使用 STA 命令管理和检验各种 STA 组件的状态。本章包括以下几节:

STA 命令概览

STA 命令变量分为以下几类:

  • 用于启动或关闭整个 STA 环境或者检查整个 STA 环境的状态的命令

  • 启动或关闭单个 STA 服务或检查单个 STA 服务的状态的命令。

注意:

单个 STA 服务命令仅供参考。不要执行这些命令,除非受到 Oracle 技术支持人员的指示。

可以随时使用命令 STA help 获得有效 STA 命令参数列表。

受管服务器

各种 STA 进程分入以下三个受管服务器:

  • staUi-STA 用户界面

  • staEngine-基本 STA 内部函数

  • staAdapter-SNMP 通信

可以单独管理这些服务器。请参见单个服务管理命令

内存使用要求

表 1-1 显示了 STA 域服务器、STA 受管服务器和 MySQL 的内存使用要求。

表 1-1 内存使用要求

项目
内存要求

STA 域服务器

2 GB 堆大小

STA 受管服务器

2 GB 堆大小

MySQL

2 GB 内存


全局管理命令

可以使用以下 STA 命令启动和停止整个 STA 环境并检查其状态。

  • STA start all 可启动整个 STA 环境。例如:

    # STA start all

    Starting mysql Service..
    mysql service was successfully started
    Starting staservd Service.
    staservd service was successfully started
    Starting weblogic Service......
    weblogic service was successfully started
    Starting staengine Service.........
    staengine service was successfully started
    Starting staadapter Service..........
    staadapter service was successfully started
    Starting staui Service..........
    staui service was successfully started
    #
    
  • STA stop all 可停止整个 STA 环境。例如:

    # STA stop all

    Stopping the staui service......
    Successfully stopped the staui service
    Stopping the staadapter service......
    Successfully stopped the staadapter service
    Stopping the staengine service......
    Successfully stopped the staengine service
    Stopping the weblogic service......
    Successfully stopped the weblogic service
    Stopping the staservd Service...
    Successfully stopped staservd service
    Stopping the mysql service.....
    Successfully stopped mysql service
    #
    
  • STA status all 可显示整个 STA 环境的状态。例如:

    # STA status all

    mysql is running
    staservd service is running
    weblogic service is running
    staengine service is running
     .... and the deployed application for staengine is in an ACTIVE state
    staadapter service is running
     .... and the deployed application for staadapter is in an ACTIVE state
    staui service is running
     .... and the deployed application for staui is in an ACTIVE state
    

单个服务管理命令

可以使用以下 STA 命令启动和停止单个 STA 组件或检查这些组件的状态。

注意:

单个 STA 服务命令仅供参考。仅当受到 Oracle 技术支持人员的指示才使用这些命令。
  • STA start|stop|status mysql

    启动或停止 MySQL,或显示其状态。

  • STA start|stop|status staservd

    启动或停止 STA 服务守护进程,或显示其状态。

  • STA start|stop|status weblogic

    启动或停止 WebLogic AdminServer,或显示其状态。

  • STA start|stop|status staadapter

    启动或停止 staAdapter 受管服务器,或显示其状态。

  • STA start|stop|status staengine

    启动或停止 staEngine 受管服务器,或显示其状态。

  • STA start|stop|status staui

    启动或停止 staUi 受管服务器,或显示其状态。