大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
介绍以后再补,先给出怎么用.
官网:https://glassfish.java.net
下载地址https://glassfish.java.net/download.html
解压到你的工作目录下,
先看jdk是否安装了,java -version.
启动glassfish,
进入到你的glassfish目录下,运行
./asadmin start-domain
接着指示输入用户的密码,创建一个domain.
localhost:bin haiwang$ ./asadmin start-domain
This domain requires an administrative password to be set before
the domain can be started. Please specify an administrative password.
Enter an admin password for user “admin”>
Enter an admin password for user “admin” again>
Waiting for domain1 to start …..
Successfully started the domain : domain1
domain Location: /Users/haiwang/Programe/GlassFish/glassfish3/glassfish/domains/domain1
Log File: /Users/haiwang/Programe/GlassFish/glassfish3/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
启动和终止domain
localhost:bin haiwang$ ./asadmin start-domain
Waiting for domain1 to start ….
Successfully started the domain : domain1
domain Location: /Users/haiwang/Programe/GlassFish/glassfish3/glassfish/domains/domain1
Log File: /Users/haiwang/Programe/GlassFish/glassfish3/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
localhost:bin haiwang$ ./asadmin stop-domain
Waiting for the domain to stop ….
Command stop-domain executed successfully.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/171308.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...