Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-01-2009, 11:26 AM
|
#16
|
Member
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311
Original Poster
Rep:
|
Sorry guys, was out for vaccation ...............
these are the outputs of the commands
Quote:
[root@localhost ~]# netstat -tnalp|grep -i 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 5112/java
|
Quote:
[root@localhost ~]# netstat -tnalp|grep -i java
tcp 0 0 0.0.0.0:3873 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:36897 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:1090 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4712 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4713 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4457 0.0.0.0:* LISTEN 5112/java
tcp 0 0 127.0.0.1:52138 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:1098 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:45165 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4444 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 5112/java
tcp 0 0 0.0.0.0:4446 0.0.0.0:* LISTEN 5112/java
|
Some firewall issue is there ..........
|
|
|
03-11-2009, 05:16 AM
|
#17
|
Member
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311
Original Poster
Rep:
|
Hey ........... i was able to tunnel the http request to the port 8080
by editing the iptables in sysconfig.
i,e. vi /et
|
|
|
03-11-2009, 05:17 AM
|
#18
|
Member
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311
Original Poster
Rep:
|
Hey ........... i was able to tunnel the http request to the port 8080
by editing the iptables in sysconfig.
i,e. vi /etc/sysconfig/iptables and add the following line
Quote:
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
|
|
|
|
07-14-2011, 12:26 PM
|
#19
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Rep:
|
Hi Guys,
I think i am once again adding a thread to this post after a long gap... ok here is my issue in our development box we are configured postgresql to work with Jboss. The thing is we have firewall iptables in our linux box. when the iptables is stopped we can connect the postgres db locally using -h option, also we can connect thru a weblink we have created using Jboss. But when the iptables is started we can't connect the db locally using the -h option and the web is giving the below error.
Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openC onnectionImpl(ConnectionFactoryImpl.java:136)
at org.postgresql.core.ConnectionFactory.openConnecti on(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init >(AbstractJdbc2Connection.java:125)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init >(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3C onnection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:3 93)
at org.postgresql.Driver.connect(Driver.java:267)
at org.jboss.resource.adapter.jdbc.local.LocalManaged ConnectionFactory.getLocalManagedConnection(LocalM anagedConnectionFactory.java:207).
We have defined the postgres,Jboss ports plus all the ports in the start up error logs in the iptables still same issue persists. I have also attached the iptables and Jboss startup error logs which is because of the postgres db.
|
|
|
All times are GMT -5. The time now is 12:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|