virgo tomcat

1. 启动命令

   1>  startup.dat

   2> startup.dat -clean

   3> startup.dat -debug

   4> startup.dat -debug 8001

   5> startup.dat -debug -suspend

   6> startup.dat  -configDIr   可以启动多个tomcat容器,但是serviceability 和work目录是同一个。

   7> startup.dat -clean -noStart  清理除pickup和repository目录文件

2. 关闭命令

   1> shutdown.dat 

   2> shutdown.dat -immediate

   3>  shutdown.dat -jmxport 9090


3. 提供 Equinox console 方式,默认是disable的。

    开启端口方式:

     1> user region : 配置ext目录下的osgi.console.telnet.properties 或者osgi.console.ssh.properties文件来实现。

     2> kernal shell :   在config目录下的 osgi.console.telnet.properties 或者osgi.console.ssh.properties文件来实现。

在uer region模式下,提供了一个vsh命令和subvsh命令,用于管理bundle、config、package等。

SubcommandDescription
bundleManages and displays information about bundle artifacts.
configManages and displays information about configuration artifacts.
packageDisplays information about exported packages.
parManages and displays information about PAR artifacts.
planManages and displays information about plan artifacts.
serviceDisplays information about services in the OSGi service registry.
installInstalls an artifact to Web Server.
shutdownShuts down the Web Server instance to which the Equinox Console is connected.
helpDisplays help about the list of available subcommands, as well as more detailed help about individual subcommands.
exitReturns to the Equinox console with no effect.

  bundle diag id 能够现实导入的virgo 不能resolve的包。当virgo 遇到unresolveable bundles的时候,会dump和配置失败。

  bundle headers id 现实idbundle对应完整的manifest headers信息。

  bundle examine id 现实bundle的jar包的物理地址及导入导出包信息,发布及使用的服务。

  

config Subcommand 用于查看和管理已经发布的configuration artifact。

4. bundle生命周期

   1> Installed: The bundle is installed but its dependencies have not yet been resolved.

   2> Resolved: The bundle is resolved and you can now start it. 

   3> Uninstalled: The bundle is uninstalled and you cannot use it.

   4> Starting: The bundle is in the process of starting. 

   5> Active: The bundle is running and you can now use it.

   6> Stopping: The bundle is in the process of stopping.


5. 类加载命令列表

 Class Loading Commands

CommandDescription
clhasLists all bundles that contain a class.
clexportLists all bundles that export a class or package.
clloadLists all bundles that can load a class.

6. scoped 和 atomic

   scoped 用于指定配置的par或者plan是本范围可访问,或是全局可访问。

   atomic 用于指定plan或者par中的所有成员是一体的,即一起启动或者一起停止。

7. virgo tomcat repository

   usr: watched ,用于存放用户自己的bundles,因此经常变化,virgo自动通过watched来监听bundles的变化。

   ext: 第三方类,基本稳定,不会发生变化,因此只会在start -clean的时候加载。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值