且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

gentoo下安装JBoss Web Server 2.1.2

更新时间:2022-09-18 20:52:50

1、安装jdk并配置环境
# emerge sun-jdk
#  nano /etc/env.d/20java-config
添加以下内容

gentoo下安装JBoss Web Server 2.1.2PATH = " /opt/sun-jdk-1.6.0.12/bin "
gentoo下安装JBoss Web Server 2.1.2 ROOTPATH
= " /opt/sun-jdk-1.6.0.12/bin "
gentoo下安装JBoss Web Server 2.1.2 CLASSPATH
= .: / opt / sun - jdk - 1.6 . 0.12 / lib / dt.jar: / opt / sun - jdk - 1.6 . 0.12 / lib / tools.jar
gentoo下安装JBoss Web Server 2.1.2


2、安装jboss并配置环境
进入 http://www.jboss.org/jbossweb/downloads/jboss-web/
gentoo下安装JBoss Web Server 2.1.2

下载 JBoss Web Server 2.1.2.GA bintar,文件为jboss-web-2.1.2.GA.tar.gz
 
 # tar -xvf jboss-web-2.1.2.GA.tar.gz

 # mv jboss-web-2.1.2.GA /jboss
 
# nano /etc/env.d/99jboss-config
添加以下内容: 

gentoo下安装JBoss Web Server 2.1.2JBOSS_HOME = " /jboss "
gentoo下安装JBoss Web Server 2.1.2 PATH
= " /jboss/bin "
gentoo下安装JBoss Web Server 2.1.2 ROOTPATH
= " /jboss/bin "


# /jboss/bin/startup.sh 

gentoo下安装JBoss Web Server 2.1.2Using CATALINA_BASE:    / jboss
gentoo下安装JBoss Web Server 2.1.2 Using CATALINA_HOME:   
/ jboss
gentoo下安装JBoss Web Server 2.1.2 Using CATALINA_TMPDIR: 
/ jboss / temp
gentoo下安装JBoss Web Server 2.1.2 Using JRE_HOME:       
/ usr
gentoo下安装JBoss Web Server 2.1.2


3、浏览器里输入http://localhost:8080 ,显示以下页面说明正常
gentoo下安装JBoss Web Server 2.1.2

4、将JBOSS设置为开机自动运行
# nano /etc/conf.d/local.start
添加以下内容:

gentoo下安装JBoss Web Server 2.1.2/ jboss / bin / startup.sh