📄 ch01s06.html
字号:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Installing JBoss</title><link rel="stylesheet" href="styles.css" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/styles.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets Vimages/callouts/"><link rel="home" href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html" title="JBoss 3.0 Documentation"><link rel="up" href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html" title="Chapter 1. First steps"><link rel="previous" href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.html" title="Installing Ant"><link rel="next" href="ch01s08.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s08.html" title="Downloading the Documentation Example Source"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table border="0" cellpadding="0" cellspacing="0" height="65"><tr height="65"><td rowspan="2"><img src="jboss.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/jboss.gif" border="0"></td><td rowspan="2" background="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="100%" align="right" valign="top"><a href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="doc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/doc.gif" border="0"></a><a href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s08.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s08.html"><img src="next.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/next.gif" border="0"></a></td></tr><tr></tr></table><div class="section"><a name="intro.jboss.installation"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="intro.jboss.installation"></a>Installing JBoss</h2></div></div><p>Before installing and running the server, you should check that your JDK
installation is working. You will need the JDK binaries directory in your PATH (this is essential: see below)
not just for the user account which is doing the installation,
but also for the user account that will run the server. If you are running the server
as root, you should check that the JDK binaries are in the PATH even for root
(root and ordinary users normally have different PATH settings). You won't
need to specify a CLASSPATH environment variable if you don't normally have
to.</p><p>The next step will be to download, install and test the JBoss server. At
the time of updating this the most recent version of JBoss is 2.4.1.
It doesn't matter where you install JBoss. There is no requirement for root access to
run JBoss as none of the default ports are below the 1024 priveledged port range.
You will need to define a JBOSS_DIST environment variable that points to the installation
location of the JBoss installation directory. This is required to build and run all of the documentation
examples you will download later.</p><p>JBoss is distributed as a ZIP file. You can download the binary
distribution which contains the latest offical release or a source snapshot with the latest
version from CVS. This documentation mainly was written for the 2.2.2 version and contains some hints for the 2.4 and the unstable CVS version where needed. If you discover anything that should be added or is outdated please make sure to contact the jboss-docs mailing list which you can locate via the JBoss website.</p><div class="section"><a name="d0e212"></a><div class="titlepage"><div><h3 class="title"><a name="d0e212"></a>Installation of binary package</h3></div></div><p>Download the binary package from <a href="javascript:if(confirm('http://sourceforge.net/projects/jboss/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://sourceforge.net/projects/jboss/'" tppabs="http://sourceforge.net/projects/jboss/" target="_top"> http://sourceforge.net/projects/jboss/</a> under the Latest File Releases section. Place it in a temporary directory and use the
JDK jar tool to decompress it to the place where you want JBoss installed. The toplevel JBoss directory of the unzipped binary
will be referred to as the JBOSS_DIST directory.</p><p>Make sure, that this user has the JDK binaries in his command path and that he has write access to the
JBoss directory (needed for log files and deployment).
You are now ready to change to the bin directory, and run the JBoss server: </p><div class="literallayout">On Unix/Linux:<br>
<b>cd JBOSS_DIST/bin<br>
sh run.sh</b><br>
On Win32:<b><br>
cd JBOSS_DIST\bin<br>
run.bat</b><br>
</div><p>A proper installation should start without any error messages or exceptions being thrown. It will
produce several pages of output on startup. The console output should look something like the following
at the start and end for JBoss-2.2.2 on Linux:<div class="literallayout"><br>
<tt>bash-2.04$ /bin/sh run.sh<br>
JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar<br>
jboss.home = /tmp/JBoss-2.2.2<br>
Using JAAS LoginConfig: file:/tmp/JBoss-2.2.2/conf/default/auth.conf<br>
Using configuration "default"<br>
[Info] Java version: 1.3.1,Sun Microsystems Inc.<br>
[Info] Java VM: Java HotSpot(TM) Server VM 1.3.1-b24,Sun Microsystems Inc.<br>
[Info] System: Linux 2.2.16-22,i386<br>
[Shutdown] Shutdown hook added<br>
[Service Control] Registered with server<br>
[Service Control] Initializing 24 MBeans<br>
...<br>
[Service Control] Started 24 services<br>
[Default] JBoss 2.2.2 Started in 0m:7s</tt><br>
</div>
</p><p>Now that you have the JBoss server installed, set the JBOSS_DIST environment variable to the
installation location.</p></div></div><table border="0" cellpadding="0" cellspacing="0" height="65"><tr height="65"><td rowspan="2"><img src="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="432" height="79"></td><td rowspan="2" background="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="100%" align="right" valign="top"><a href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="doc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/doc.gif" border="0"></a><a href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s08.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s08.html"><img src="next.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/next.gif" border="0"></a></td></tr><tr></tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -