Installing

Downloading the Package

The easiest way to get the latest MockMotor package is to download it straight to the Unix box:

curl -k https://mockmotor.com/download/latest | tar xvz

You can also get the package from the download page.

After unpacking, the working directory will contain the admin instance files:

mm@mmtest:/home/mockmotor$ ls -l
total 88572
-rw-r--r--  1 mm   mm        283 Jan 24 00:46 mockmotor.config.xml.template
-rw-r--r--  1 mm   mm   90320560 Jan 24 00:46 mockmotor.jar
-rwxr-xr-x  1 mm   mm       1759 Jan 24 00:46 startMockMotor.sh
-rwxr-xr-x  1 mm   mm         85 Jan 24 00:46 stopMockMotor.sh
-rwxr-xr-x  1 mm   mm        166 Jan 24 00:46 updateMockMotor.sh

Default Configuration

The mockmotor.config.xml.template is the MockMotor configuration template that contains reasonable default settings.

If there is no mockmotor.config.xml file yet, the start script copies the *.template file to mockmotor.config.xml before starting MockMotor.

<config xmlns="http://mockmotor.com/config">
    <dataDirectory>.</dataDirectory>
    <clusterPort>7082</clusterPort>
    <httpPort>7080</httpPort>
    <httpsPort>7081</httpsPort>
    <logsDirectory>.</logsDirectory>
</config>

The configuration template sets:

The HTTP port for admin UI is 7080.
The HTTPS port for admin UI is 7081.
The admin port for cluster communications is 7082.
The working directory is the current directory.
The logging directory is the current directory.

Feel free to change any of the above as you see fit. You can do it in the template file before the first run, or in the mockmotor.config.xml file after the first run.