How to configure JBoss6.X on CentOS 5.x

Source: Internet
Author: User

1. How to remotely connect to CentOS and upload and download files

Use Xbroswer in Xmanager

First, create a new folder JavaPlatServer under Xshell under Xbroswer and create an Xshell Session.

OK. Double-click the newly created Xshell Session to remotely connect to CentOS. The following describes how to operate CentOS.

2. Check the java environment of CentOS

Enter java-version to view the java version.

Server version for 1.6.0, in line with our needs, do not do jdk configuration, if you use 1.7, then uninstall, then install, the specific method please refer to the http://www.haogongju.net/art/675472

3. Start to install JBoss6.x

First, create an installation folder.

Statement mkdir Server.

Slave.

Run the decompression command, decompress the zip package: unzip jboss-as-......zip, about 1 minute or so, the file is more.

After decompression, you will find the jboss-6.1.0.Final folder under the Server Directory, succeeded.

4. Configure Jboss Environment Variables

Enter vi/etc/profile

Press a to edit and enter

Export JBOSS_HOME =/usr/local/your

Export PATH = $ PATH: $ JBOSS_HOME/bin

Esc, shift + Z, exit and save.

For the configuration file to take effect, enter the command: source/etc/profile

OK. Check whether the configuration is successful.

The path is printed successfully. environment variables are configured successfully!

5. Run our JBOSS

You only need to enter the bin directory of JBoss and execute run. sh. It takes about 40 s

Unfortunately, CentOS uses the command method and can be tested without a browser. By default, JBoss only listens to localhost, so it cannot be tested.

Of course, you can use the run. sh-c default-B 0.0.0.0 command to specify the address to be listened to, which can also achieve remote LAN access.

6. "modify" Our JBOSS-Port

After all, the server changes the default port 8080 to port 80.

Run vi $ JBOSS_HOME/server/default/conf/bindingservice. beans/META-INF/bindings-jboss-beans.xml

Edit the file and find

Jboss. web: service = WebServer

HttpConnector

8080 change to the port you want

JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets

To change AJP, You need:

Jboss. web: service = WebServer

Ajpconne

8009 change to the port you want

JBoss Web AJP connector socket

OK. After changing the port, we save the file. Run. sh again

As you can see, it has changed from 8080 to port 80.

For more information, click the next page!

  • 2 pages in total:
  • Previous Page
  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.