Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Ubuntu Translators instructions and Chinese (Simplified) guidelines.

These translations are shared with snapd trunk series template snappy.

7483 of 815 results
74.

The services command lists information about the services specified.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

services 命令将会列出有关指定服务的信息
Translated by Harry Chen
Reviewed by Harry Chen
Located in overlord/hookstate/ctlcmd/services.go:36
75.

The set command changes the provided configuration options as requested.

$ snap set snap-name username=frank password=$PASSWORD

All configuration changes are persisted at once, and only after the
snap's configuration hook returns successfully.

Nested values may be modified via a dotted path:

$ snap set snap-name author.name=frank

Configuration option may be unset with exclamation mark:
$ snap set snap-name author!
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
(no translation yet)
Located in cmd/snap/cmd_set.go:33
76.

The set command changes the provided configuration options as requested.

$ snapctl set username=frank password=$PASSWORD

All configuration changes are persisted at once, and only after the hook
returns successfully.

Nested values may be modified via a dotted path:

$ snapctl set author.name=frank

Configuration option may be unset with exclamation mark:
$ snapctl set author!

Plug and slot attributes may be set in the respective prepare and connect hooks by
naming the respective plug or slot:

$ snapctl set :myplug path=/dev/ttyS0
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.

set 命令可以修改提供的配置选项,例如:

$ snapctl set username=frank password=$PASSWORD

所有的配置更改将在钩子返回成功后一次性持久化。

通过点路径可以修改嵌套值:

$ snapctl set author.name=frank

使用感叹号可以取消配置选项:

$ snapctl set author!

插槽和插头属性可以通过命名相应的插槽或插头来在准备和连接钩子中设置:

$ snapctl set :myplug path=/dev/ttyS0
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/set.go:44
77.

The set-health command is called from within a snap to inform the system of the
snap's overall health.

It can be called from any hook, and even from the apps themselves. A snap can
optionally provide a 'check-health' hook to better manage these calls, which is
then called periodically and with increased frequency while the snap is
"unhealthy". Any health regression will issue a warning to the user.

Note: the health is of the snap only, not of the apps it contains; it’s up to
the snap developer to determine how the health of the individual apps is
reflected in the overall health of the snap.

status can be one of:

- okay: the snap is healthy. This status takes no message and no code.

- waiting: a resource needed by the snap (e.g. a device, network, or service) is
not ready and the user will need to wait. The message must explain what
resource is being waited for.

- blocked: something needs doing to unblock the snap (e.g. a service needs to be
configured); the message must be sufficient to point the user in the right
direction.

- error: something is broken; the message must explain what.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.

set-health 命令是从 snap 内部调用的,用于向系统报告 snap 的整体健康状况。

它可以从任何钩子中调用,甚至从应用程序本身调用。Snap 可以选择提供一个 “check-health” 钩子来更好地管理这些调用,当 Snap 处于“不健康”状态时,将定期调用该钩子并增加调用频率。任何健康回归都会向用户发出警告。

注意:健康状态仅适用于Snap本身,而不适用于其中包含的应用程序的健康状况;Snap开发人员需要确定如何反映单个应用程序的健康状况对 Snap 整体健康状况的影响。

状态可以是以下之一:

- okay: Snap很健康。此状态不需要消息和代码。

- waiting: Snap 需要的资源(例如设备、网络或服务)尚未准备好,用户需要等待。消息必须解释正在等待什么资源。

- blocked: 有些事情需要做才能解除Snap的阻塞(例如需要配置服务);消息必须足以指导用户朝正确的方向前进。

- error: 出现了问题,消息必须解释是什么问题。
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/health.go:35
78.

The sign command signs an assertion using the specified key, using the
input for headers from a JSON mapping provided through stdin. The body
of the assertion can be specified through a "body" pseudo-header.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

sign 命令使用指定的密钥对声明 进行签名,使用 stdin 提供的 JSON 映射中的标头输入。声明 的主体可以通过 “body” 伪标头指定。
Translated by Luke Na
Located in cmd/snap/cmd_sign.go:35
79.

The sign-build command creates a snap-build assertion for the provided
snap file.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

sign-build 命令为提供的 snap 文件创建一个 Snap-build声明 。
Translated by Luke Na
Located in cmd/snap/cmd_sign_build.go:49
80.

The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

snap 命令允许您安装、配置、刷新和删除 snap。Snap 是跨许多不同 Linux 发行版工作的软件包(类型),可实现最新应用程序和实用程序的安全交付和操作。
Translated by Luke Na
Located in cmd/snap/cmd_help.go:277
81.

The start command starts the given services of the snap. If executed from the
"configure" hook, the services will be started after the hook finishes.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

start 命令启动 snap 的给定服务。如果从 “configure” 钩子执行,服务将在钩子完成后启动。
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/start.go:30
82.

The start command starts, and optionally enables, the given services.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

start 命令启动并选择性地启用给定的服务。
Translated by Luke Na
Located in cmd/snap/cmd_services.go:63
83.

The stop command stops the given services of the snap. If executed from the
"configure" hook, the services will be stopped after the hook finishes.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

stop 命令停止 snap 的给定服务。如果从 “configure” 钩子执行,服务将在钩子完成后停止。
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/stop.go:38
7483 of 815 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Dong Cansheng, Harry Chen, Kakurady Drakenar, Larry Wei, Luis Lee, Luke Na, Nick Zheng, Yulin Yang, handsome_feng, yuzhe, 小菜鸟儿.