MOPS 4.0 Windows Installation
Installing MOPS 4.0
Installing MOPS 4.0 is done by running the mops-setup.msi. Some steps you will need to check before running the installation package:
- Make sure that vcredist_x64 is installed
- Make sure that Node.js is installed
- Make sure that the correct version of Python is installed
- Make sure that the Python Packages are installed
The steps for these can be found in the prerequisites section of the Installation with Windows Services manual.
Then run the mops-setup.msi to start the installation and follow the steps in the installation package.
Service Account
After agreeing to the License Agreement, there will be a dialog of setting up the Service Account for the services. This can be set up later, but it is recommended to do this in this step to apply the service account to all services. Otherwise it has to be done manually for over 15 services.
Enter the domain and username for the service account and then the password for the user account and then confirm the password.
Application URL
Next step will ask for the Application URL, the URL that the application will be accessed on. This URL will then automatically be applied to various configurations for the services. Make sure that you know the correct URL for this. If set incorrectly, you need to re-install the whole application and remove the ProgramData folders for MOPS 4.0.
The MQTT URL needs to be provides as well and this is normally the same as the application URL but without the http:// or https:// in the beginning of the URL.
Do not include a trailing / in any of the URL:s.
Database Host
This step will require the connection to the Postgres database, whether it is on the same server as the installation itself or on another server. Provide the Host as either IP-address or servername. The Port is normally 5432, change this only if needed. Then set the password for the database connection and confirm it.
Choose Setup Type
In this step the installer will ask for which type of installment should be done and there are three options:
- Typical - will install the core application of MOPS 4.0
- Custom - will let the installation to be customized by selecting what features to be installed
- Complete - will install the core application including all the features
Install Location
The location of the installation can only be specified when selecting the Custom Setup Type.
Post-Installation
After the installation has been finished, there are some post configuration and setup that needs to be done as well before starting all the MOPS 4.0 services.
The instructions of those are in the Post Installation Configuration manual.
For setting up HTTPS, additional configurations will be needed and can be found in the following manual Configuring HTTPS in Traefik
Starting the Services
When the all the installation and configuration is done, all the services can then be started with one of the commands mentioned in the PowerShell section below.
PowerShell Commands
The following commands are helpful to start, stop and list all the services.
Start all Services
Start-Service "mops*"
Stop all Services
Stop-Service "mops*"
List all Services:
Will list all services and show their statuses.
Get-Service -Name "mops*" | Select-Object | ForEach-Object {[PSCustomObject]@{DisplayName=$_.DisplayName;Name=$_.Name;Status=$_.Status;}}