Instructions and related commands for JBOSS + JDK installation in RedHat

Source: Internet
Author: User
Tags ibm server
1. 64-bit deRedHat6.1 is installed. If the disk cannot be installed due to hard disk format problems, you can use the boot disk of the IBM server to boot and re-allocate the hard disk; you can download the server boot file here. 2. Set the IP reference file. Set/etc/hosts and add the host name. 3. Set the firewall. Note: Open the 8080port to enable the Firewall Service. Restart the 4th port to decompress jboss-eap-4.3.0.ga_cp0

1. Install 64-bit de RedHat 6.1. If the disk cannot be installed due to hard disk format problems, you can use the IBM server boot disk boot and re-allocate the hard disk;

You can download the server boot file here.

2. Set the IP address reference document; Set/etc/hosts and add the host name;

3. Set a firewall. Note: port 8080 must be enabled, and the Firewall Service must be enabled;

4. decompress the jboss-eap-4.3.0.ga_cp09.zip file. For more information about JBOSS service configuration, see environment variable configuration;

5. Install jdk-6u26-linux-x64.bin; environment variable configuration reference documents;

6. content to be configured for deployment programs in the production environment;
Jvm adjusted to 2048 memory parameters, maxThreads = 300 maximum number of web connections, waiting thread acceptCount = 300, maximum number of database connections by default 20, maximum 100;

The log is adjusted to the INFO level;

Run the following command to manage programs in JBOSS:

1) Use winscp and other tools to upload xxx. war to the/usr/local/directory.

2) Deploy the application to JBoss
Root@www.linuxidc.com ~ # Mv/usr/local/xxx. war/usr/local/jboss-eap-4.3/jboss-as/server/ccs/deploy/

3) Disable JBoss
Root@www.linuxidc.com ~ # Service jboss stop
Or force close:
Root@www.linuxidc.com ~ # Ps aux | grep java (obtain the pid of the jboss process)
Root@www.linuxidc.com ~ # Kill-9 pid (Force kill the jboss process, and the pid is obtained from the above command)

4) Delete JBoss cache and temporary files
Root@www.linuxidc.com ~ # Rm-rf/usr/local/jboss-eap-4.3/jboss-as/server/ccs/work/
Root@www.linuxidc.com ~ # Rm-rf/usr/local/jboss-eap-4.3/jboss-as/server/ccs/tmp/

5) Start JBoss
Root@www.linuxidc.com ~ # Service jboss start
Or start it manually:
Root@www.linuxidc.com ~ # Nohup/usr/local/jboss-eap-4.3/jboss-as/bin/run. sh-c ccs-B 0.0.0.0 &

5) view Log
Root@www.linuxidc.com ~ # Tail-f/usr/local/jboss-eap-4.3/jboss-as/server/ccs/log/server. log

Related Article

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.