jboss web 2.1.9GA 安装步骤
jboss web采用tomcat作为基础进行了优化,默认增加了apr功能,提高并发性能。安装和部署流程同tomcat。在安装前需安装jdk1.6及以上版本。
1.下载最新的jboss web2.1.9或3.0版本
2.下载 JBoss Web Native Connectors
注意linux版本对应关系
3.解压jboss web
1
|
unzip jboss-web-2.1.9.GA.zip
|
将jboss-native-2.0.10-linux2-x86-ssl.tar.gz 复制到jboss web解压后的目录
1
|
tar zxvf jboss-native-2.0.10-linux2-x86-ssl.tar.gz
|
在bin目录创建 setenv.sh,添加
1
2
|
LD_LIBRARY_PATH=LD_LIBRARY_PATH:$CATALINA_HOME/bin/native
export LD_LIBRARY_PATH
|
4.启动jboss web
./startup.sh
jboss eap 6.2 GA 安装步骤
1.安装jdk1.6+
2.下载jboss eap,
注意选择GA稳定版本例如
EAP 6.2.0 GA jboss-eap-6.2.0.zip
3.解压zip文件
1
|
unzip jboss-eap-6.2.0.zip
|
4.修改jboss-eap-6.2/standalone/configuration/standalone.xml
1
2
3
4
5
6
7
8
9
10
11
|
<
interfaces
>
<
interface
name
=
"management"
>
<
inet-address
value
=
"${jboss.bind.address.management:127.0.0.1}"
/>
</
interface
>
<
interface
name
=
"public"
>
<
inet-address
value
=
"${jboss.bind.address:127.0.0.1}"
/>
</
interface
>
<
interface
name
=
"unsecure"
>
<
inet-address
value
=
"${jboss.bind.address.unsecure:127.0.0.1}"
/>
</
interface
>
</
interfaces
>
|
将上面的127.0.0.1修改为真实的ip地址
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<
socket-binding-group
name
=
"standard-sockets"
default-interface
=
"public"
port-offset
=
"${jboss.socket.binding.port-offset:0}"
>
<
socket-binding
name
=
"management-native"
interface
=
"management"
port
=
"${jboss.management.native.port:9999}"
/>
<
socket-binding
name
=
"management-http"
interface
=
"management"
port
=
"${jboss.management.http.port:9990}"
/>
<
socket-binding
name
=
"management-https"
interface
=
"management"
port
=
"${jboss.management.https.port:9443}"
/>
<
socket-binding
name
=
"ajp"
port
=
"8009"
/>
<
socket-binding
name
=
"http"
port
=
"8080"
/>
<
socket-binding
name
=
"https"
port
=
"8443"
/>
<
socket-binding
name
=
"remoting"
port
=
"4447"
/>
<
socket-binding
name
=
"txn-recovery-environment"
port
=
"4712"
/>
<
socket-binding
name
=
"txn-status-manager"
port
=
"4713"
/>
<
outbound-socket-binding
name
=
"mail-smtp"
>
<
remote-destination
host
=
"localhost"
port
=
"25"
/>
</
outbound-socket-binding
>
</
socket-binding-group
>
|
根据需要修改上面的端口,默认的http端口为8080,管理端口为9990
5.部署泽元产品,如zcms
进入standalone/deployments将zcms.war解压到 zcms.war目录
1
2
3
|
mkdir zcms.war
mv zcms16476.war zcms.war/
unzip zcms16476.war
|
并在standalone/deployments目录下建一个空文件
1
|
touch zcms.war.dodeploy
|
注意:不建议直接将war文件放置到deployments目录下部署,jboss在自解压过程中会出现无法加载类的问题。
6.进入bin目录执行
1
|
./standalone.sh &
|
注意:在执行后,执行exit退出命令行,否则会随着命令行关闭导致程序关闭
访问 http://ip:8080/zcms/进行配置安装
也可以访问 http://ip:9990进行管理,如需启动管理界面,需要执行 ./add-user.sh 添加用户