From server.properties
Log In to the Control Panel ↗

Select Your Server

Stop the Server

Click on the Files tab

Open the server.properties file

Set the Spawn Monsters Value
Find spawn-monsters=[value]. Change [value] to false to disable mob spawning, or true to enable it. Click Save Content.
Start the Server

You have successfully toggled mob spawning on your server.