I have a h2db jar which i want to run on port other than 8082.
I tried java -jar -Dserver.port=XXXX but it is still running on 8082.
Is there any way to run it on other port?
I have a h2db jar which i want to run on port other than 8082.
I tried java -jar -Dserver.port=XXXX but it is still running on 8082.
Is there any way to run it on other port?
Victor
On
I think the parameter to be used is webPort and not server.port.
Also you might have to provide this parameter in the .h2.server.properties file as stated in the documentation:
http://www.h2database.com/html/tutorial.html#console_settings
Copyright © 2021 Jogjafile Inc.
You can use
where
h2-*.jaris the name of H2's jar file and9999is a port number.There are also
-tcpPort,-pgPortand other parameters.If you want to start the web server only without other open ports for JDBC and ODBC clients and open a browser window, use