glassfish4.1 simple operation

Run asadmin in the windows directory , run ./asadmin under FreeBSD , and enter the GlassFish console. The entry of asadmin in Windows and FreeBSD is only different in form, but not in essence.

 

# Create a domain (ZIP is unzipped, there is already a domain1 by default), and another: After modifying the administrator name, you will be prompted to set a password, otherwise the password will be skipped.
create-domain domain1

 

# Delete a domain. If there are files that need to be backed up and deleted, please check them clearly, because the entire domain directory will be terminated directly, and there is no recycle bin.
delete-domain domain1

 

# start a domain
start-domain domain1

 

# stop a domain
stop-domain domain1

 

# Modify the administrator password. To enable remote, you must first set the password
change-admin-password

 

# Enable remote management. Note: After modifying this setting, the GlassFish service should be restarted, and the domain must have a password.
enable-secure-admin

 

# Turn off remote management, and only allow local access after it is turned off. You will be prompted to enter a user name and password. You can choose to do this in development environments or environments with high server security requirements. After modifying this setting, you should restart the GlassFish service.
disable-secure-admin

 

# 将指定的domain注册为一个Windows服务,方便开机时自启动,运行该命令结束后,会在 domain\bin 目录内产生 Service 文件用于控制服务。
create-service domain1


Windows 下,domain 作为“服务”以后,可以使用 Windows Services Manager 控制该服务, 也可以使用 Windows Services Wrapper:

相应得命令如下:
安装命令: domain1\bin\domain1Service.exe  install
卸载命令: domain1\bin\domain1Service.exe  uninstall
启动命令: domain1\bin\domain1Service.exe  start
停止命令: domain1\bin\domain1Service.exe  stop
重新启动命令: domain1\bin\domain1Service.exe  restart
状态命令: domain1\bin\domain1Service.exe status


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325964571&siteId=291194637