# 使用 Homebrew, apk, apt, Nix, zypper 安装 jsvc

查看 jsvc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:jsvc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsvc
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add jsvc
```

  证据: Alpine Linux edge package indexes: jsvc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install jsvc
```

  证据: Debian stable package indexes: jsvc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#jsvc
```

  证据: nixpkgs package indexes: pkgs/by-name/js/jsvc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install apache-commons-daemon-jsvc
```

  证据: openSUSE Tumbleweed package metadata: apache-commons-daemon-jsvc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:jsvc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jsvc>
- **版本:** 1.6.1
- **来源摘要:** Wrapper to launch Java applications as daemons
- **主页:** <https://commons.apache.org/daemon/jsvc.html>
- **上游文档:** <https://commons.apache.org/daemon/jsvc.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=commons/daemon/source/commons-daemon-1.6.1-src.tar.gz>
- **最后更新:** 2026-06-22T14:03:51-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jsvc (cli)
- jsvc (别名)

## 依赖

- openjdk

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.6.1
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://commons.apache.org/daemon/jsvc.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

jsvc is the Unix-oriented launcher in Apache Commons Daemon for running Java server applications as background daemons. It matters because it bridges JVM services with classic Unix service expectations: start as root for privileged work, bind low ports, switch to an unprivileged user, write pid files, and cooperate with init-style supervision.

### 项目历史

Apache Commons Daemon packages a Java API with native launchers. The jsvc command became the Unix side of that project, while the same project points Windows users toward procrun for Windows Service integration. The Apache Commons Daemon source tree has release tags reaching back to 1.0-era releases in 2007, and Apache release notes document a long maintenance line for changes in operating-system support and JVM integration.

### 采用历史

jsvc has been adopted mostly through server packaging rather than through standalone application fandom. It appears in Homebrew and in Linux distribution packages as the practical wrapper for Java daemons, and it is closely associated with Java server deployments such as Tomcat-style service startup.

### 使用方式

Operators use jsvc when a Java process needs Unix daemon behavior that the JVM does not provide by itself. The command is especially useful for services that need a privileged startup step followed by a drop to a less privileged account.

### 为什么软件包爱好者会关心

For package maintainers, jsvc is a small but telling example of the glue code needed to make a cross-platform runtime behave like a native Unix service. Its packaging spans Java, C, init systems, architecture support, and distribution policy.

### 时间线

- 2007: Apache Commons Daemon 1.0-era source tags appear in the Apache repository history.
- 2023: Apache Commons Daemon 1.3.4 continued the 1.x maintenance series.
- 2026: Apache Commons Daemon 1.6.x release notes recorded continued platform maintenance.

### Related projects

- Apache Commons Daemon also includes procrun for Windows service integration.
- Apache Tomcat is a common Java server context where Commons Daemon-style service launchers are relevant.

### 来源

- <https://commons.apache.org/proper/commons-daemon/changes.html>
- <https://commons.apache.org/proper/commons-daemon/index.html>
- <https://commons.apache.org/proper/commons-daemon/jsvc.html>
- <https://formulae.brew.sh/formula/jsvc>
- <https://github.com/apache/commons-daemon/tags>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jsvc
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - jsvc - 1.0.15-11: normalized package name match | Debian stable package indexes: jsvc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Wrapper to launch Java applications as daemons | https://commons.apache.org/proper/commons-daemon/
- Nix - jsvc: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/jsvc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jsvc - 1.0.15-11build1: normalized package name match | Ubuntu 24.04 LTS package indexes: jsvc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Wrapper to launch Java applications as daemons | https://commons.apache.org/proper/commons-daemon/
- apk - jsvc - 1.4.1-r1: normalized package name match | Alpine Linux edge package indexes: jsvc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Executes classfile that implements a Daemon interface | https://commons.apache.org/proper/commons-daemon/jsvc.html
- zypper - apache-commons-daemon-jsvc - 1.6.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: apache-commons-daemon-jsvc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Java daemon launcher | https://commons.apache.org/daemon/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [scm-manager](https://pkg.so/zh-hans/brew/scm-manager/) - Popular package that depends on this formula.
- [shepherd](https://pkg.so/zh-hans/brew/shepherd/) - Shares pkgdb curated category or tags: cli, daemon, service-management, system.
- [s6-rc](https://pkg.so/zh-hans/brew/s6-rc/) - Shares pkgdb curated category or tags: cli, service-management, system, unix.
- [supervisor](https://pkg.so/zh-hans/brew/supervisor/) - Shares pkgdb curated category or tags: cli, daemon, system, unix.
- [daemon](https://pkg.so/zh-hans/brew/daemon/) - Shares pkgdb curated category or tags: cli, service-wrapper, system, unix.
- [lunchy](https://pkg.so/zh-hans/brew/lunchy/) - Shares pkgdb curated category or tags: cli, service-management, system.
- [immortal](https://pkg.so/zh-hans/brew/immortal/) - Shares pkgdb curated category or tags: cli, daemon, service-management, system, unix.
- [detach](https://pkg.so/zh-hans/brew/detach/) - Shares pkgdb curated category or tags: cli, daemon, system, unix.
- [dbus](https://pkg.so/zh-hans/brew/dbus/) - Shares pkgdb curated category or tags: cli, daemon, system.

## Combined YAML source

View the package source record on GitHub. [combined/jsvc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jsvc.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
