Starting in Linux
To start a Model Manager server manually on Linux®, type
<Installation directory>/bin/comsol modelmanagerserver
To stop the server, press Ctrl+C in the terminal window where it was started.
The Apache Solr™ search platform and the PostgreSQL® database system do not support running as a root user on Linux®.
systemd Service
Use the following instructions to start a Model Manager server in a Linux® version that includes systemd:
1
/usr/lib/systemd/system/comsolmodelmanagerserver64.service
with content similar to:
[Unit]
Description=COMSOL Model Manager server 6.4
Wants=network.target network-online.target
After=network.target network-online.target
 
[Service]
Type=exec
User=comsoluser
Group=comsolgroup
TimeoutSec=300
ProtectHome=off
ExecStart=/usr/local/comsol64/modelmanagerserver/bin/comsol modelmanagerservice
 
[Install]
WantedBy=multi-user.target
You only need to replace the values for User and Group.
2
systemctl enable /usr/lib/systemd/system/comsolmodelmanagerserver64.service
3
systemctl start comsolmodelmanagerserver64
To stop the Model Manager server service cleanly, run:
systemctl stop comsolmodelmanagerserver64
If you want to enable transport layer security (TLS) for secure connections via HTTPS on port 443, you could add the line AmbientCapabilities=CAP_NET_BIND_SERVICE to the [Service] section of the comsolmodelmanagerserver62.service file. This will allow the Model Manager server to open that port in case the Linux® operating system is otherwise restricting opening of such low-numbered ports. See Adding a Connector With TLS for further details.