First, install the Java environment
Install JDK, configure environment variables, not detailed here, see
Ubuntu installation JDK
Ii. installation of JBoss
1. JBoss is compatible with Windows and Ubuntu platforms. You can put the normal jboss under Windows into Ubuntu, for example, I put it in Ubuntu's/opt directory. Or go to Http://www.jboss.org/jbossas/downloads to choose the right version to download.
2. Unpack the TAR Package
[Plain]View PlainCopy
- TAR-ZXVF archive_name.tar.gz
This unpacking command will unlock the document under the current directory. Of course, you can also use this command to squeeze the path of the unpacking:
[Plain]View PlainCopy
- TAR-ZXVF archive_name.tar.gz-c/tmp/extract_here/
3. Setting Environment variables
Modify the/etc/profile file to increase the environment variables required by JBoss at the end of the file.
[Plain]View PlainCopy
- Jboss_home=/opt/jboss-4.2.3.ga
- Path= $PATH:/opt/jboss-4.2.3.ga/bin
- Export Jboss_home PATH
Of course, the setting of environment variables in Linux is more than this one way, can choose other ways, here is no longer detailed.
4, test the installation is successful
To the Jboss_home/bin directory, execute the command
[Plain]View PlainCopy
- SH run.sh
Or
[Plain]View PlainCopy
- ./run.sh
When successful, the http://localhost:8080 in the browser proves that the JBoss installation was successful.
Note: If you encounter various permissions problems, use sudo chmod 777xxx command to modify the permissions, see the details
Ubuntu Change folder and subfolder permissions
Ubuntu Install JBoss