glassfish3新建domain
下载路径:http://download.oracle.com/glassfish/3.1.2.2/release/index.html
.zip (解压缩)
cd /glassfish3/glassfish/bin (到bin目录下)
./asadmin start-domain domain1 (启动domain1)
./asadmin change-admin-password (设置管理员账号和口令)
Enter admin user name [default: admin]> admin
Enter the admin password>空
Enter the new admin password>新密码
Enter the new admin password again>新密码
Command change-admin-password executed successfully.(提示成功)
./asadmin enable-secure-admin (开启远程访问)
Enter admin user name> admin
Enter admin password for user "admin">
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully. (提示成功)
./asadmin restart-domain domain1(重启domain1)
重启服务后,可以使用上面创建的账号远程连接控制台
server ip:4848
账号密码:admin/上面设置的新密码