2 Servers on One Machine

Host your own server and communicate with server operators.
5 posts Page 1 of 1
Mp22
Deuce
Posts: 2
Joined: Fri Jun 06, 2014 4:23 pm


Hello, I Wanna Create 2 Servers on 1 Linux Machine But When I'm Starting second server i have addres already in use. Plz Halp. Green_Crying Blue_Crying
LeFizzy
Deuced Up
Posts: 116
Joined: Fri Jun 20, 2014 11:27 am


Change the second server's port (in config.txt), such as from 32887 to 32888.
Have fun with it! :)
Mp22
Deuce
Posts: 2
Joined: Fri Jun 06, 2014 4:23 pm


Not working.
Amatt
Winter Celebration 2013
Winter Celebration 2013
Posts: 21
Joined: Tue Apr 09, 2013 12:44 am


1 - Make sure you're using 2 different ports, and that they BOTH ARE FORWARDED.

2 - Use Screen so that they don't stop when you disconnect, or try to start another server.

apt-get install screen

Then
Code: Select all
screen -S Server1 server1folder/start.sh
To disconnect from that screen, type
Code: Select all
ctrl+a d
Once you have done that, repeat the above command
Code: Select all
screen -S Server2 server2folder/start.sh
To reconnect to the screen, type
Code: Select all
screen -r Server1
or
Code: Select all
screen -r Server2
To stop the server, type
Code: Select all
ctrl + c
Hope this helps!
~Amatt
Horst <AT>
Deuce
Posts: 15
Joined: Fri Feb 12, 2016 8:14 am


Neat necro-thread. lel Blue_Happy3
5 posts Page 1 of 1
Return to “Servers”

Who is online

Users browsing this forum: No registered users and 1 guest