glass fish配置管理

glassfishv3安装后,登录http://localhost:4848/,可以看到默认的匿名用户就有管理的权限,这个还是很不好的,安装完之后一定要去掉这个用户。

 

使用命令行管理也比较麻烦,还是直接使用平台管理吧。

首先进入安全-》领域-》admin-realm  添加一个管理员的帐号,例如admin,密码设定好,然后把匿名用户删掉。

这里要注意:一定要建好其他的用户再删除匿名帐号,不然就惨了,登陆不进去了。。。

 

今天还发现个怪问题,通过管理平台上传war包,死活部署不了,什么乱七八糟的错误。

error ...url-pattern.... 可能是web.xml里的url-pattern中带空格了吧

jdkerror...   可能是环境的原因吧。

 

通过命令行部署,很容易部署上去了

asadmin -deploy xx.war

 

 

刚刚开始安装glassfish,晚上做个性能的测试,看看和tomcat的性能孰优孰劣。

 

 

another auth article:

http://developers.sun.com.cn/blog/functionalca/entry/%E5%9C%A8glassfish%E4%B8%AD%E4%B8%BAweb%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E8%AE%BE%E7%BD%AE%E7%94%A8%E6%88%B7%E8%AE%BF%E9%97%AE%E6%9D%83%E9%99%90

GlassFish Server 9.1 帮助手册,包括了bin目录下所有命令的详细用法,是管理、配置glassfish的必备工具!!!!<br><br>例如asadmin start-domain 命令:<br>Name: start-domain – starts a domain<br>Synopsis: start-domain [--domaindir domain-dir]<br> --user admin_user --passwordfile file_name<br> [--terse={true|false}] [ --echo ={true|false}]<br> [ --interactive ={true|false}] [ --verbose ={true|false}]<br> [ --debug ={true|false}] [domain_name]<br>Description: Use the start-domain command to start a domain. If the domain directory is not specified,<br> the domain in the default install_dir/domains directory is started. If there are two or more<br> domains, the domain_name operand must be specified.<br> You can use the start-domain command to upgrade domains of Application Server 8.x or 9.0<br> to Application Server 9.1. Use one of the following ways to upgrade your domain:<br>Options:<br> --domaindir<br> The directory where the domain is to be started. If specified, the path must be accessible in<br> the filesystem. If not specified, the domain in the default install_dir/domains directory is<br> started.<br> -u --user<br> The authorized domain application server administrative username.<br> --passwordfile<br> The file containing the domain application server password associated with the<br> administrative instance. The password is defined in the following form:<br> AS_ADMIN_PASSWORD=password. Where password is the actual administrator password for<br> the domain.<br> -t--terse<br> Indicates that any output data must be very concise, typically avoiding human-friendly<br> sentences and favoring well-formatted data for consumption by a script.Default is false.<br> Name<br> Synopsis<br> Description<br> Options<br> start-domain(1)<br> Sun Java System Application 658 Server 9.1 ReferenceManual ? Last Revised 11 Jul 2007<br> -e --echo<br> Setting to true will echo the command line statement on to the standard output.Default is<br> false.<br> -I --interactive<br> If set to true (default), only the required password options are prompted.<br> --verbose<br> By default this flag is set to false. If set to true, detailed server startup output is displayed.<br> On Windows, press CTRL-Break in the domain's window to print a thread dump. On<br> UNIX, press CTRL-C to kill the server and press CTRL-\\ to print a thread dump.<br> --debug<br><br>。。。。。。。。。。。。。。。。。。。。。。。。。。。<br>更多、更详细的内容请下载该文档查阅。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值