注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

0与1构筑世界,程序员创造时代

软件架构设计 Java编程

 
 
 

日志

 
 

GlassFish - 在Linux上安装  

2008-11-17 15:47:21|  分类: GlassFish |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
  文章声明

  
作者:
傲风(aofengblog@163.com)       编写时间:2008年11月17日

网址:http://aofengblog.blog.163.com


一、预备
操作系统:SUSE LINUX Enterprise Server 9
JDK:JDK1.5 或 JDK1.6(须已经安装)
工具:apache-ant-1.7.1(须已经安装)

glassfish-installer-v2ur2-b04-linux-ml.jar  (ml表示是多语言版本)


二、安装
1、执行命令
aofeng@suse9dev:~> java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux-ml.jar
    屏幕显示一堆Licence说明后,出现如下的询问:
Accept or Decline? [A,D,a,d]
    输入a或A表示接受,然后继续后面的安装。
    待屏幕显示“installation complete” 表示成功完成操作。

2、执行命令
aofeng@suse9dev:~> cd glassfish

3、执行命令
aofeng@suse9dev:~/glassfish> ant -f setup.xml
    待屏幕显示类似如下的信息,说明成功安装,否则根据错误提示来排除问题。
create.domain:
     [exec] Using port 4848 for Admin.
     [exec] Using port 8888 for HTTP Instance.
     [exec] Using port 7676 for JMS.
     [exec] Using port 3700 for IIOP.
     [exec] Using port 8181 for HTTP_SSL.
     [exec] Using default port 3820 for IIOP_SSL.
     [exec] Using default port 3920 for IIOP_MUTUALAUTH.
     [exec] Using default port 8686 for JMX_ADMIN.
     [exec] Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
     [exec] Security Store uses: JKS
     [exec] Domain domain1 created.
     [exec] Login information relevant to admin user name [admin] for this domain [domain1] stored at [/nfs10/aofeng/.asadminpass] successfully.
     [exec] Make sure that this file remains protected. Information stored in this file will be used by asadmin commands to manage this domain.
   [delete] Deleting: /nfs10/aofeng/glassfish/passfile

BUILD SUCCESSFUL
Total time: 2 minutes 18 seconds

注意如果8080这些端口已经被占用,那么这一步将安装失败。解决的办法有:1)停止占用端口的程序。2)修改setup.xml,更改端口。


三、验证
1、显示GlassFish的版本信息。
aofen@suse9dev:~/glassfish/bin> ./asadmin version
Unable to communicate with admin server, getting version locally.
Version = Sun Java System Application Server 9.1_02
Command version executed successfully.

2、启动GlassFish。
nieyong@suse9dev:~/glassfish/bin> ./asadmin start-domain domain1 
Starting Domain domain1, please wait.
Log redirected to /nfs10/nieyong/glassfish/domains/domain1/logs/server.log.
Redirecting output to /nfs10/nieyong/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b04-fcs)] with its configuration and logs at: [/nfs10/nieyong/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8888 https://localhost:8181 ].
Following web-contexts are available:
[/web1  /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://suse9dev:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8888 8181 4848 3700 3820 3920 8686 ].
Domain does not support application server clusters and other standalone instances.

3、打开浏览器,输入URL,浏览器显示的界面如下 :
在Linux上安装GlassFish - 傲风 - 傲风的博客


参考资料
1、
https://glassfish.dev.java.net/downloads/v2ur2-b04.html
2、http://https://glassfish.dev.java.net/downloads/quickstart/index.html

<正文结束>
  评论这张
 
阅读(4693)| 评论(4)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017