简体   繁体   English

如何更改 linux 上元数据库的访问端口?

[英]How to change metabase's access port on linux?

I have a problem to change the metabase's port on linux我在更改 linux 上的元数据库端口时遇到问题

the ways described in https://www.metabase.com/docs/latest/operations-guide/running-the-metabase-jar-file.html , but i'm not clearly understand what I must do https://www.metabase.com/docs/latest/operations-guide/running-the-metabase-jar-file.html中描述的方式,但我不清楚我必须做什么

the page's screenshot页面截图

after that the tutorial directed to https://www.metabase.com/docs/latest/operations-guide/environment-variables.html , but still i'm not clearly understand之后教程指向https://www.metabase.com/docs/latest/operations-guide/environment-variables.html ,但我仍然不清楚

if there are any other solution, please let me know, thank you very much如果有其他解决方法,请告诉我,非常感谢

I am not familiar with Metabase, but the documentation you linked to says:我不熟悉 Metabase,但您链接到的文档说:

You can use another port than 3000 by setting the MB_JETTY_PORT environment variable before running the jar.在运行 jar 之前,您可以通过设置 MB_JETTY_PORT 环境变量来使用 3000 以外的其他端口。

Therefore, I would try running the following command in my Bash shell to set the environment variable for that shell:因此,我会尝试在我的 Bash shell 中运行以下命令来设置该 shell 的环境变量:

export MB_JETTY_PORT=12345

Then, in that same shell, I would run whatever command is used to start the JAR file.然后,在同一个 shell 中,我将运行用于启动 JAR 文件的任何命令。

You can run echo $MB_JETTY_PORT at any time to check the value of that environment variable, or run env to see all your environment variables.您可以随时运行echo $MB_JETTY_PORT来检查该环境变量的值,或者运行env来查看所有环境变量。

Alternatively, if you prefer, Bash has syntax for temporarily setting an environment variable just for a single command.或者,如果您愿意,Bash 具有仅为单个命令临时设置环境变量的语法。 The syntax is:语法是:

MB_JETTY_PORT=12345 your_command_here

If you're not using Bash, your other shell probably has similar ways to set the environment variables.如果你没有使用 Bash,你的其他 shell 可能有类似的方法来设置环境变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM