---
title: "glassfish常用命令"
author: "thoughtfly"
date: "2012-09-06T20:22:29Z"
tags: []
categories: ["开源软件"]
slug: "glassfish"
draft: false
lastmod: "2012-09-06T20:22:29Z"
id: 1673031
url: "https://thoughtfly.iteye.com/blog/1673031"
---

运行 asadmin 工具 glassfish\\bin\\asadmin

 

**对域的操作**

 

list-domain

start-domain

stop-domain

delete-domain domain1

create-domain --adminport 4848 domain1

 

 

**更改控制台管理用户密码**

 change-master-password domain1

 

**开启管理台的DAS**

enable-secure-admin

 

**忘记了管理台密码**

删除域,重新创建域,再重新部署

 

**部署项目**

deploy  --contextroot / /root/test.war