Subject | Multiple classic servers on a single machine Linux |
---|---|
Author | frank.kronbalt |
Post date | 2010-03-19T21:53:07Z |
Hi, I am trying to install multiple servers which listen to different ports on a single machine. Like so ....
Install directories,
/opt/firebird-1 with executable fb_inet_server-1
/opt/firebird-2 with executable fb_inet_server-2
....
I am using xinetd to listen for incoming connection and I've added to /etc/services the following
firebird-1 3050/tcp # Firebird 1
firebird-1 3050/udp
firebird-2 3060/tcp # Firebird 2
firebird-2 3060/udp
--> /etc/xinet.d/firebird-1
service firebird-1
{
flags = REUSE
socket_type = stream
wait = no
user = firebird
server = /opt/firebird/bin/fb_inet_server-1
disable = no
}
--> /etc/xinet.d/firebird-2
service firebird-2
{
flags = REUSE
socket_type = stream
wait = no
user = firebird
server = /opt/firebird2/bin/fb_inet_server-2
server_args = -d -e /opt/firebird2/
port = 3060
disable = no
}
When I am trying to connect via telnet to localhost 3050 all seems fine, but on 3060 I get the following error in firebird.log of firebird-2
ubuntu Fri Mar 19 05:20:04 2010
INET/inet_error: bind errno = 98
Anybody got an idea how to solve this problem? and to get the setup working as I need it. Thx a lot :)
Install directories,
/opt/firebird-1 with executable fb_inet_server-1
/opt/firebird-2 with executable fb_inet_server-2
....
I am using xinetd to listen for incoming connection and I've added to /etc/services the following
firebird-1 3050/tcp # Firebird 1
firebird-1 3050/udp
firebird-2 3060/tcp # Firebird 2
firebird-2 3060/udp
--> /etc/xinet.d/firebird-1
service firebird-1
{
flags = REUSE
socket_type = stream
wait = no
user = firebird
server = /opt/firebird/bin/fb_inet_server-1
disable = no
}
--> /etc/xinet.d/firebird-2
service firebird-2
{
flags = REUSE
socket_type = stream
wait = no
user = firebird
server = /opt/firebird2/bin/fb_inet_server-2
server_args = -d -e /opt/firebird2/
port = 3060
disable = no
}
When I am trying to connect via telnet to localhost 3050 all seems fine, but on 3060 I get the following error in firebird.log of firebird-2
ubuntu Fri Mar 19 05:20:04 2010
INET/inet_error: bind errno = 98
Anybody got an idea how to solve this problem? and to get the setup working as I need it. Thx a lot :)