活着的死人 发表于 2015-1-14 21:05:59

来一发Centos下装置Jboss

小知识:CentOS是企业Linux发行版领头羊RedHatEnterpriseLinux(以下称之为RHEL)的源代码再编译版本。
1、简介
JBoss是一个运转EJB的J2EE运用办事器。它是开放源代码的项目,遵守最新的J2EE标准。从JBoss项目开端至今,它曾经从一个EJB容器成长成为一个基于的J2EE的一个web操作体系(operatingsystemforweb),它表现了J2EE标准中最新的技巧。不管是进修照样运用,JBoss为我们供给了一个异常优良的平台。
JBoss是一个治理EJB的容器和办事器,支撑EJB1.1、EJB2.0和EJB3.0的标准。但JBoss焦点办事不包含支撑servlet/JSP的WEB容器,普通与Tomcat或Jetty绑定应用。
JBoss具有以下长处:
1、JBoss是收费的,开放源代码J2EE的完成,经由过程LGPL允许证停止宣布.但同时也有闭源的,开源和闭源流入流出的不是统一门路。  
2、JBoss须要的内存和硬盘空间比拟小。  
3、装置便捷:解压后,只需设置装备摆设一些情况变量便可。  
4、JBoss支撑"热安排",安排BEAN时,只拷贝BEAN的JAR文件到安排路径下便可主动加载它,假如有修改,也会主动更新
5、JBoss与Web办事器在统一个Java虚拟机中运转,Servlet挪用EJB不经由收集,从而年夜年夜进步运转效力,晋升平安机能
6、用户可以直接实行J2EE-EAR,而不是之前分离实行EJB-JAR和Web-WAR,异常便利。  
7、Jboss支撑集群。
2006年,Jboss公司(http://jboss.org)被Redhat公司(http://redhat.com)收买。
有关JBoss的具体信息请参阅其主页http://www.jboss.org
2、体系情况
体系平台:RHEL5.4
Javaversion:jdk-6u17-linux-i586
Jbossversion:jboss-5.1.0.GA-jdk6
3、装置预备
下载jboss5.1和jdk1.6
jbosshttp://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download
jdk1.6http://download.oracle.com/otn/java/jdk/6u31-b04/jdk-6u31-linux-i586.bin
4、解压
#./jdk-6u17-linux-i586.bin//以后目次生成一个jdk1.6.0_17
#mvjdk1.6.0_17/usr/local/java//把刚生成的目次"jdk1.6.0_17"重定名为"java"
#unzipjboss-5.1.0.GA-jdk6.zip-d/usr/local///解压到/usr/local目次下
#mvjboss-5.1.0.GAjboss//重定名为jboss
5、设置装备摆设情况变量
#vi/etc/profile
//添加以下内容
JAVA_HOME="/usr/local/java"
CLASS_PATH="$JAVA_HOME/lib:$JAVA_HOME/jre/lib"
PATH=".:$PATH:$JAVA_HOME/bin"
exportJAVA_HOMECLASS_PATHPATH
6、运转
#/usr/local/jboss/bin/run.sh-b10.0.0.133//IP写本机地址
#./run.sh-b10.0.0.133=========================================================================JBossBootstrapEnvironmentJBOSS_HOME:/usr/local/jbossJAVA:/usr/local/jdk/jdk1.6.0_17/bin/javaJAVA_OPTS:-Dprogram.name=run.sh-server-Xms128m-Xmx512m-XX:MaxPermSize=256m-Dorg.jboss.resolver.warning=true-Dsun.rmi.dgc.client.gcInterval=3600000-Dsun.rmi.dgc.server.gcInterval=3600000-Djava.net.preferIPv4Stack=trueCLASSPATH:/usr/local/jboss/bin/run.jar:/usr/local/jdk/jdk1.6.0_17/lib/tools.jar=========================================================================01:57:50,713INFOStartingJBoss(Microcontainer)...01:57:50,718INFOReleaseID:JBoss5.1.0.GA(build:SVNTag=JBoss_5_1_0_GAdate=200905221634)01:57:50,725INFOBootstrapURL:null01:57:50,727INFOHomeDir:/usr/local/jboss01:57:50,742INFOHomeURL:file:/usr/local/jboss/01:57:50,756INFOLibraryURL:file:/usr/local/jboss/lib/01:57:50,761INFOPatchURL:null01:57:50,776INFOCommonBaseURL:file:/usr/local/jboss/common/01:57:50,778INFOCommonLibraryURL:file:/usr/local/jboss/common/lib/01:57:50,806INFOServerName:default01:57:50,811INFOServerBaseDir:/usr/local/jboss/server01:57:50,814INFOServerBaseURL:file:/usr/local/jboss/server/01:57:50,817INFOServerConfigURL:file:/usr/local/jboss/server/default/conf/01:57:50,818INFOServerHomeDir:/usr/local/jboss/server/default01:57:50,826INFOServerHomeURL:file:/usr/local/jboss/server/default/01:57:50,829INFOServerDataDir:/usr/local/jboss/server/default/data01:57:50,832INFOServerLibraryURL:file:/usr/local/jboss/server/default/lib/01:57:50,834INFOServerLogDir:/usr/local/jboss/server/default/log01:57:50,840INFOServerNativeDir:/usr/local/jboss/server/default/tmp/native01:57:50,857INFOServerTempDir:/usr/local/jboss/server/default/tmp01:57:50,860INFOServerTempDeployDir:/usr/local/jboss/server/default/tmp/deploy01:57:52,509INFOStartingMicrocontainer,bootstrapURL=file:/usr/local/jboss/server/default/conf/bootstrap.xml01:57:53,876INFOInitializingVFSCache01:57:53,888INFOUsingVFSCache]01:57:54,617INFOVFStempdir:/usr/local/jboss/server/default/tmp01:57:54,637INFOVFSforcenestedjarscopy-modeisenabled.01:57:58,247INFOJavaversion:1.6.0_17,SunMicrosystemsInc.01:57:58,249INFOJavaRuntime:Java(TM)SERuntimeEnvironment(build1.6.0_17-b04)01:57:58,259INFOJavaVM:JavaHotSpot(TM)ServerVM14.3-b01,SunMicrosystemsInc.01:57:58,266INFOOS-System:Linux2.6.18-194.el5,i38601:57:58,283INFOVMarguments:-Dprogram.name=run.sh-Xms128m-Xmx512m-XX:MaxPermSize=256m-Dorg.jboss.resolver.warning=true-Dsun.rmi.dgc.client.gcInterval=3600000-Dsun.rmi.dgc.server.gcInterval=3600000-Djava.net.preferIPv4Stack=true-Djava.endorsed.dirs=/usr/local/jboss/lib/endorsed01:57:58,408INFOLegacyJMXcoreinitialized01:58:04,694INFOLoadingprofile:ProfileKey@19b7c6201:58:10,585INFOUsingRMIservercodebase:http://10.0.0.133:8083/01:58:32,816INFOJBossWebServices-StackNativeCore01:58:32,823INFO3.1.2.GA01:58:34,296INFOOwnercallbacknotimplemented.01:58:37,600INFOAddingnotificationlistenerforloggingmbean"jboss.system:service=Logging,type=Log4jService"toserverorg.jboss.mx.server.MBeanServerImpl@63a1ae01:59:05,890INFOEncountereddeploymentAbstractVFSDeploymentContext@19213615{vfsfile:/usr/local/jboss/server/default/deploy/profileservice-secured.jar/}01:59:05,904INFOEncountereddeploymentAbstractVFSDeploymentContext@19213615{vfsfile:/usr/local/jboss/server/default/deploy/profileservice-secured.jar/}01:59:05,908INFOEncountereddeploymentAbstractVFSDeploymentContext@19213615{vfsfile:/usr/local/jboss/server/default/deploy/profileservice-secured.jar/}01:59:05,927INFOEncountereddeploymentAbstractVFSDeploymentContext@19213615{vfsfile:/usr/local/jboss/server/default/deploy/profileservice-secured.jar/}01:59:13,087INFOJMXConnectorserver:service:jmx:rmi://10.0.0.133/jndi/rmi://10.0.0.133:1090/jmxconnector01:59:15,053INFOMailServiceboundtojava:/Mail01:59:41,437WARNWARNING!POTENTIALSECURITYRISK.IthasbeendetectedthattheMessageSuckercomponentwhichsucksmessagesfromonenodetoanotherhasnothaditspasswordchangedfromtheinstallationdefault.PleaseseetheJBossMessaginguserguideforinstructionsonhowtodothis.01:59:41,508WARNNoClassLoaderprovided,usingTCCL:org.jboss.managed.api.annotation.ManagementComponent01:59:41,673WARNNoClassLoaderprovided,usingTCCL:org.jboss.managed.api.annotation.ManagementComponent01:59:41,797INFOJBossTSTransactionService(JTAversion-tag:JBOSSTS_4_6_1_GA)-JBossInc.01:59:41,802INFOSettinguppropertymanagerMBeanandJMXlayer01:59:42,339INFOInitializingrecoverymanager01:59:43,127INFORecoverymanagerconfigured01:59:43,131INFOBindingTransactionManagerJNDIReference01:59:44,517INFOStartingtransactionrecoverymanager01:59:45,893INFOTheApacheTomcatNativelibrarywhichallowsoptimalperformanceinproductionenvironmentswasnotfoundonthejava.library.path:/usr/local/jdk/jdk1.6.0_17/jre/lib/i386/server:/usr/local/jdk/jdk1.6.0_17/jre/lib/i386:/usr/local/jdk/jdk1.6.0_17/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib01:59:46,259INFOInitializingCoyoteHTTP/1.1onhttp-10.0.0.133-808001:59:46,266INFOInitializingCoyoteAJP/1.3onajp-10.0.0.133-800901:59:46,375INFOStartingservicejboss.web01:59:46,389INFOStartingServletEngine:JBossWeb/2.1.3.GA01:59:46,482INFOServerstartupin214ms01:59:46,554INFOdeploy,ctxPath=/jbossws01:59:47,951INFOdeploy,ctxPath=/web-console01:59:48,849INFOdeploy,ctxPath=/invoker01:59:49,346INFORequiredlicensetermsexist,viewvfszip:/usr/local/jboss/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml01:59:49,997INFORequiredlicensetermsexist,viewvfszip:/usr/local/jboss/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml01:59:50,087INFORequiredlicensetermsexist,viewvfszip:/usr/local/jboss/server/default/deploy/jms-ra.rar/META-INF/ra.xml01:59:50,134INFORequiredlicensetermsexist,viewvfszip:/usr/local/jboss/server/default/deploy/mail-ra.rar/META-INF/ra.xml01:59:50,221INFORequiredlicensetermsexist,viewvfszip:/usr/local/jboss/server/default/deploy/quartz-ra.rar/META-INF/ra.xml01:59:50,456INFOJobexecutionthreadswilluseclassloaderofthread:main01:59:51,545INFOQuartzSchedulerv.1.5.2created.01:59:51,559INFORAMJobStoreinitialized.01:59:51,561INFOQuartzschedulerDefaultQuartzSchedulerinitializedfromdefaultresourcefileinQuartzpackage:quartz.properties01:59:51,563INFOQuartzschedulerversion:1.5.201:59:51,566INFOSchedulerDefaultQuartzScheduler_$_NON_CLUSTEREDstarted.01:59:53,273INFOBoundConnectionManagerjboss.jca:service=DataSourceBinding,name=DefaultDStoJNDInamejava:DefaultDS01:59:55,170INFOJBossMessaging1.4.3.GAserverstarted01:59:55,735INFOConnectorbisocket://10.0.0.133:4457hasleasingenabled,leaseperiod10000milliseconds01:59:55,739INFOorg.jboss.jms.server.connectionfactory.ConnectionFactory@1e88eastarted01:59:55,795INFOQueuestarted,fullSize=200000,pageSize=2000,downCacheSize=200001:59:55,801INFOsupportsFailoverattributeistrueonconnectionfactory:jboss.messaging.connectionfactory:service=ClusteredConnectionFactorybutpostofficeisnonclustered.Soconnectionfactorywill*not*supportfailover01:59:55,813INFOsupportsLoadBalancingattributeistrueonconnectionfactory:jboss.messaging.connectionfactory:service=ClusteredConnectionFactorybutpostofficeisnonclustered.Soconnectionfactorywill*not*supportloadbalancing01:59:55,835INFOConnectorbisocket://10.0.0.133:4457hasleasingenabled,leaseperiod10000milliseconds01:59:55,845INFOorg.jboss.jms.server.connectionfactory.ConnectionFactory@17503ebstarted01:59:55,850INFOConnectorbisocket://10.0.0.133:4457hasleasingenabled,leaseperiod10000milliseconds01:59:55,852INFOorg.jboss.jms.server.connectionfactory.ConnectionFactory@956f01started01:59:55,881INFOQueuestarted,fullSize=200000,pageSize=2000,downCacheSize=200001:59:56,199INFOBoundConnectionManagerjboss.jca:service=ConnectionFactoryBinding,name=JmsXAtoJNDInamejava:JmsXA02:00:09,338INFOCreatedKernelDeploymentfor:profileservice-secured.jar02:00:09,384INFOinstallingbean:jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB302:00:09,385INFOwithdependencies:02:00:09,388INFOanddemands:02:00:09,400INFOjndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView02:00:09,402INFOjboss.ejb:service=EJBTimerService02:00:09,404INFOandsupplies:02:00:09,406INFOClass:org.jboss.profileservice.spi.ProfileService02:00:09,408INFOjndi:SecureProfileService/remote02:00:09,410INFOjndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService02:00:09,414INFOAddedbean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3)toKernelDeploymentof:profileservice-secured.jar02:00:09,422INFOinstallingbean:jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB302:00:09,424INFOwithdependencies:02:00:09,426INFOanddemands:02:00:09,430INFOjboss.ejb:service=EJBTimerService02:00:09,432INFOandsupplies:02:00:09,435INFOjndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager02:00:09,437INFOClass:org.jboss.deployers.spi.management.deploy.DeploymentManager02:00:09,443INFOjndi:SecureDeploymentManager/remote02:00:09,450INFOAddedbean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3)toKernelDeploymentof:profileservice-secured.jar02:00:09,452INFOinstallingbean:jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB302:00:09,454INFOwithdependencies:02:00:09,459INFOanddemands:02:00:09,461INFOjboss.ejb:service=EJBTimerService02:00:09,462INFOandsupplies:02:00:09,464INFOjndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView02:00:09,466INFOClass:org.jboss.deployers.spi.management.ManagementView02:00:09,468INFOjndi:SecureManagementView/remote02:00:09,470INFOAddedbean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3)toKernelDeploymentof:profileservice-secured.jar02:00:09,505INFODeployAbstractBeanMetaData@1431022{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpointbean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImplproperties=constructor=nullautowireCandidate=true}02:00:09,522INFODeployAbstractBeanMetaData@14534db{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpointbean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImplproperties=constructor=nullautowireCandidate=true}02:00:09,523INFODeployAbstractBeanMetaData@7787ee{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpointbean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImplproperties=constructor=nullautowireCandidate=true}02:00:10,269INFOStartingjboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB302:00:10,447INFOSTARTEDEJB:org.jboss.profileservice.ejb.SecureDeploymentManagerejbName:SecureDeploymentManager02:00:10,817INFOBindingthefollowingEntriesinGlobalJNDI:SecureDeploymentManager/remote-EJB3.xDefaultRemoteBusinessInterfaceSecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager-EJB3.xRemoteBusinessInterface02:00:10,940INFOStartingjboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB302:00:10,945INFOSTARTEDEJB:org.jboss.profileservice.ejb.SecureManagementViewejbName:SecureManagementView02:00:11,059INFOBindingthefollowingEntriesinGlobalJNDI:SecureManagementView/remote-EJB3.xDefaultRemoteBusinessInterfaceSecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView-EJB3.xRemoteBusinessInterface02:00:11,217INFOStartingjboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB302:00:11,226INFOSTARTEDEJB:org.jboss.profileservice.ejb.SecureProfileServiceBeanejbName:SecureProfileService02:00:11,254INFOBindingthefollowingEntriesinGlobalJNDI:SecureProfileService/remote-EJB3.xDefaultRemoteBusinessInterfaceSecureProfileService/remote-org.jboss.profileservice.spi.ProfileService-EJB3.xRemoteBusinessInterface02:00:11,982INFOdeploy,ctxPath=/admin-console02:00:12,321INFOInitializingMojarra(1.2_12-b01-FCS)forcontext/admin-console02:00:20,855INFOdeploy,ctxPath=/02:00:20,988INFOdeploy,ctxPath=/jmx-console02:00:21,378INFOStartingCoyoteHTTP/1.1onhttp-10.0.0.133-808002:00:21,436INFOStartingCoyoteAJP/1.3onajp-10.0.0.133-800902:00:21,475INFOJBoss(Microcontainer)Startedin2m:30s:582ms
7、测试
http://10.0.0.133:8080

web-console

8、封闭办事器
#/usr/local/jboss/bin//shutdown.sh-S
或找到它的pid号,然后kill失落。
#ps-ef|grepjbossroot377537542601:57pts/000:02:38/usr/local/jdk/jdk1.6.0_17/bin/java-Dprogram.name=run.sh-server-Xms128m-Xmx512m-XX:MaxPermSize=256m-Dorg.jboss.resolver.warning=true-Dsun.rmi.dgc.client.gcInterval=3600000-Dsun.rmi.dgc.server.gcInterval=3600000-Djava.net.preferIPv4Stack=true-Djava.endorsed.dirs=/usr/local/jboss/lib/endorsed-classpath/usr/local/jboss/bin/run.jar:/usr/local/jdk/jdk1.6.0_17/lib/tools.jarorg.jboss.Main-b10.0.0.133root39193464002:07pts/100:00:00grepjboss#kill-93775#



小知识:CentOS商业化干掉红帽才是出路?

因胸联盟 发表于 2015-1-16 23:50:43

来一发Centos下装置Jboss

熟读Linux系统有关知识,如系统目录树,有关内容可购书阅读或搜索论坛。

第二个灵魂 发表于 2015-1-24 15:21:02

上课传授的不仅仅是知识,更重要的是一些道理,包括一些做人的道理,讲课时也抓住重点,循序渐进,让同学理解很快;更可贵的是不以你过去的成绩看问题.

小女巫 发表于 2015-2-2 06:06:28

我学习Linux的心得体会 ,希望对大家的学习有所帮助,由于水平有限,本文难免有所欠缺,望请指正。

柔情似水 发表于 2015-2-7 18:30:24

把这个问题放在其他Linux社区请求帮助也是一种选择。如果Linux得不到答案,请不要以为我们觉得无法帮助你。有时只是看到你问题的人不知道答案罢了。这时换一个社区是不错的选择。

飘灵儿 发表于 2015-2-23 04:59:37

Linux的成功就在于用最少的资源最短的时间实现了所有功能,这也是符合人类进化的,相信以后节能问题会日益突出。

若天明 发表于 2015-3-7 08:54:07

有疑问前,知识学习前,先用搜索。

爱飞 发表于 2015-3-14 21:46:18

发问的时候一定要注意到某些礼节。因为Linux社区是一个松散的组织、也不承担回复每个帖子的义务。它不是技术支持。

不帅 发表于 2015-3-21 17:05:22

掌握硬件配置,如显卡,声卡,网卡等,硬件只要不是太老或太新一般都能被支持,作为一名Linux系统管理员建议多阅读有关硬件配置文章,对各种不支持或支持不太好的硬件有深刻的了解。
页: [1]
查看完整版本: 来一发Centos下装置Jboss