1、下载jar包

下载Metabase JAR

2、放到指定目录

例如:d:\metabase

3、安装windows服务

  • 下载WinSW-x64.exe和minimal.xml(配置文件)
  • 重命名winSW-X64和minimal文件,例如:metabase.exe和metabase.xml
  • 修改metabase.xml

    <service>
      
      <!-- ID of the service. It should be unique across the Windows system-->
      <id>metabase</id> #修改服务ID
      <!-- Display name of the service -->
      <name>Metabase Service (powered by WinSW)</name> #修改服务名称
      <!-- Service description -->
      <description>Metabase Service (powered by WinSW)</description>#修改服务描述
      
      <!-- Path to the executable, which should be started -->
      <executable>java</executable>#使用java
      <arguments>-jar "d:\metabase\metabase.jar"</arguments> #执行路径
    
    </service>
  • 安装服务,参考如下:

    #安装服务
    D:\Metabase>metabase install
    #卸载服务
    D:\Metabase>metabase uninstall