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