Installation on Linux

FairCom installation procedures on Linux (Unix) for experienced users

The FairCom server is a .tar file that you expand into a target folder on your Linux server. The target folder should be located somewhere your user has full permissions, such as user.

Run the FairCom server

  1. Navigate to the newly installed server directory.
  2. Run the faircom executable or run the startserver script.
 
 

Stop the FairCom server

  1. Navigate to the newly installed server directory.
  2. Run the stopserver script.
 
 

Run the server as a background process

  1. Navigate to the newly installed server directory.
  2. Run the startserver script
 
 

Run the server in production

  1. FairCom recommends using systemd, see systemd(1) — Linux manual page.
  2. See also, Script to start and stop the server.
 
 

Run multiple instances

You can run multiple instances of FairCom on the same computer by configuring them to use different ports.

Attempting to run a second instance of FairCom with the same port as a running instance will cause the second instance to exit with errors.

 

Check for running instances of FairCom

  1. Run the command: ps -ef | grep faircom.
  2. Observe the response.
    1. Two lines of code indicate there is a FairCom server running.
    2. One line of code indicates there is no FairCom server running.