我只想在本地主机界面上运行微型支付宝。我该如何处理?
我没有找到任何命令行选项:
https://payara.gitbooks.io/payara-server/documentation/payara-micro/appendices/cmd-line-opts.html
最佳答案
没错,没有命令行选项可以在命令行上指定地址。您必须更深入一点,并使用--prebootcommandfile
选项指定命令文件。
命令文件(我们称其为commands.txt
)应包含以下行:
set configs.config.server-config.network-config.network-listeners.network-listener.http-listener.address=localhost
应用该文件的命令行为:
java -jar payara-micro.jar --prebootcommandfile commands.txt