Getting Started with S2AP in 1 Minute

我承认,这篇 post 有标题党嫌疑… -_-

不过如果你觉得 SpringSource 官方用户指南有点儿长、没时间但又想快速玩玩 S2AP,俺这篇“一分钟快速起步指南”就有点儿用了。

安装

解开下载的 S2AP 1.0.0 beta 包即可。
$ unzip springsource-ap-1.0.0.beta.zip

设定环境变量

$ export PLATFORM_HOME=/opt/springsource-ap-1.0.0.beta

个人觉得这个变量名不好,太 general 了,最好能改为类似 $S2AP_PLATFORM_HOME 或者 $SPRING_PLATFORM_HOME 这样的名字。

启动

常规启动:
$ bin/startup.sh

调试模式启动:
$ bin/startup.sh -debug
将会运行一个 debug agent,默认监听 8000 端口。可以在 -debug 参数后面跟一个数字参数来修改监听端口,比如:
$ bin/startup.sh -debug 8001

允许 JMX 访问模式启动:
$ bin/startup.sh -jmxremote
将允许本地 JMX 访问。如果需要远程 JMX 访问,在 -jmxremote 后跟一个端口参数即可,比如:
$ bin/startup.sh -jmxremote 9009

启动成功后,可以尝试访问其管理页面 http://localhost:8080/admin 缺省的用户名和密码是 admin/springsource

停止

$ bin/shutdown.sh

Now start exploring, have fun!

This entry was posted in Development and tagged . Bookmark the permalink.

One Response to Getting Started with S2AP in 1 Minute

  1. Pingback: SpringSource dm Server 1.0.0 GA | 细柳营

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">