The problem that Jboss cannot access the web through ip address installed in linux

Source: Internet
Author: User
Tags jboss server

The problem that Jboss cannot access the web through ip address installed in linux

Decompress the downloaded jboss package to the path/opt/java according to the online statement,

Because the Jboss-4.2.2 is used, you need to add-B 0.0.0.0 or-B xx. xx (that is, your server IP address) after run. sh)

Run
/Usr/java/jboss-4.2.2.GA/bin/run. sh-B 0.0.0.0

But I still cannot access the server through ip addresses. After a long time, I can close the firewall and continue my research tomorrow.

The problem of access to the jboss server via ip address continues here

Although the firewall is disabled and web servers can be accessed through IP addresses in the LAN, there must be security problems in actual production. Imagine which server's firewall is disabled, so we will continue to struggle with this problem.

To search online, add the following line to/etc/sysconfig/iptables:

-A input-p tcp-m state -- state NEW-m tcp -- dport 8080-j ACCEPT

Execute/etc/init. d/iptables restart, but find that it is not as mentioned on the Internet that it can access port 8080 through an ip address in the LAN, so you have to continue looking for a solution.

You can use the following method.

1. open port 8080 to be used and execute the following command:

/Sbin/iptables-I INPUT-p tcp -- dport 8080-j ACCEPT

2. Save the changes and run the following command:

/Etc/rc. d/init. d/iptables save

3. Restart the firewall to make the change take effect immediately. Execute the following command:

/Etc/init. d/iptables restart

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.