最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Glassfish 安装配置与调试详解
时间:2022-11-14 22:08:38 编辑:袖梨 来源:一聚教程网
一、安装GlassFish
从以下地址:https://glassfish.de*v*.*java.net/public/downloadsindex.html
下载 Milestone binary builds Linux 版本: b32g-glassfish-linux.jar size 77M
在安装GlassFish之前请需事先安装设置好以下环境 /etc/profile
#config java
系统需要安装J2SE 5.0
export JAVA_HOME=/usr/local/jdk1.5.0_06
export PATH=/usr/local/jdk1.5.0_06/bin:$PATH
#config ant
export ANT_HOME=/usr/local/apache-ant-1.6.2
export PATH=/usr/local/apache-ant-1.6.2/bin:$PATH
然后运行 java -Xmx256m -jar glassfish-installer-9.0-b32g.jar
cd glassfish
运行 ant -f setup.xml
将系统安装在: /usr/local/glassfish/
系统默认的 administration 属性值有:
domain.name="domain1"
instance.name="server"
admin.user="admin"
admin.password="adminadmin"
admin.port="4848"
instance.port"="8080"
orb.port="3700"
imq.port="7676"
https.port="8181"
二、运行GlassFish
cd /usr/local/glassfish/bin
[root@fc3-3 bin]# ./asadmin start-domain domain1
打开浏览器,输入
http://192.*168*.*1.3:8080/
Logon to the Administration Console
http://192.1*68*.*1.3:4848/
user name: admin
password: adminadmin
三、构建您的第一个 GlassFish 应用程序
下载 hello.war
cp hello.war domains/domain1/autodeploy/
或用 asadmin deploy 的方式部署应用, 另外 asadmin updeploy 卸载应用
通过asadmin deploy --help 和 asadmin undeploy --help 获得更多帮助
http://192.*168*.*1.3:8080/hello
运行 asadmin stop-domain domain1 可关闭服务器
相关文章
- 原神2025最新兑换码有哪些 限时前瞻福利领取 11-16
- 百炼英雄2025兑换码大全 最新礼包福利领取合集 11-16
- 寻道大千2025兑换码 最新可用的礼包码合集 11-16
- 蛋仔派对2025兑换码 最新礼包码合集 11-16
- 元气骑士2025兑换码大全 最新可用礼包码合集 11-16
- 明日方舟终末地测试资格查询入口 官方验证方法一览 11-16