linux multi instances

Hi Guys,

while I'm trying to figure out multi-threading, I decided to install screen scraper on linux machine,
after good few hours, my screen scraper was installed on Ubuntu 10.04, but...
im totally fresh in linux, and im just wondering how to start more than one screen scraper server, do I have to install screen scraper, in windows i had 10 instances and i was able to configure each server ports. Can someone tell me how to do that in linux

Regards,

Radek

thats perfect Brandon,thanks

thats perfect Brandon,thanks very much.
so, looks like there is no different between windows and linux in this area, and u have to install each folder for each instance.

Thanks again

Radek.

Multiple instances on Linux

Hi Radek,

Have you installed multiple instances in separate folders yet? We often give them simple names here, like ss1, ss2, ss3, etc. Each folder is a separate installation, so each has its own screen-scraper.jar, resource and lib folders, executable files, etc.

Once you have installed screen-scraper multiple times, you'll have to change the ports, like you mentioned. Here are the common ports that you'll want to make unique for each instance of screen-scraper:

Name Default Port
DatabasePort 9005
SOAPPort 8779
ServerPort 8778
ProxyPort 8777
WebServerShutdownPort 8555

There's a properties file where you can change these values. If screen-scraper is installed in the folder ss1, then the path to the properties file would be:

ss1/resource/conf/screen-scraper.properties

Open this file with a text editor and edit the lines that have the names listed above. It's best to have a convention of some kind. Our favorite convention is adding a number to the front of the default port, like ServerPorts would be 18778, 28778 (though this doesn't work for too many installations).

To run the server from the command line, go to the root screen-scraper folder (ss1, for example) and type the command:

./server start

To stop the server or simply check whether or not it's running, you can type either of these commands:
./server stop
./server status

If you have scraping sessions to import, you can place copies of them in the import folder and restart screen-scraper(./server stop and then ./server start). The scraping sessions will be imported when screen-scraper starts. (The session will be removed from the import folder, too, so it doesn't get re-imported every time screen-scraper starts)