Hello,
I'm trying to start a service with the NSSM program, but the command
SET MB_JETTY_PORT=3300
doesn't work, and when I start the service it comes with the default port 3000
Hello,
I'm trying to start a service with the NSSM program, but the command
SET MB_JETTY_PORT=3300
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
https://www.metabase.com/docs/latest/configuring-metabase/environment-variables
Hello @Flamber,
managed to solve it by putting the variable in the environment.
Thanks for help anyway.