Service as NSSM


I'm trying to start a service with the NSSM program, but the command


doesn't work, and when I start the service it comes with the default port 3000

Hi @Pedro
You are setting the environment variable as the user that runs the script, but it's a different user running the service.
Have a look here Run Metabase as a windows service!
You can Java use properties, so java -DMB_JETTY_PORT=3300 -jar metabase.jar

Hello @Flamber,
managed to solve it by putting the variable in the environment.

Thanks for help anyway.