← 返回命令列表

Linux command

systemctl-reload 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Reload

systemctl reload nginx

Example

systemctl reload [unit1] [unit2]

Example

systemctl reload pipewire --user

说明

systemctl reload asks the service to reload its configuration files without stopping. This reloads the service application's own configuration (like nginx.conf or apache's httpd.conf), not the systemd unit file. The service must support reload operations (typically via SIGHUP signal). If the service doesn't support reload, the command will fail. For services that don't support reload, use systemctl restart instead.

参数

--user
Reload user service manager units instead of system units
--no-block
Do not wait for the operation to complete

FAQ

What is the systemctl-reload command used for?

systemctl reload asks the service to reload its configuration files without stopping. This reloads the service application's own configuration (like nginx.conf or apache's httpd.conf), not the systemd unit file. The service must support reload operations (typically via SIGHUP signal). If the service doesn't support reload, the command will fail. For services that don't support reload, use systemctl restart instead.

How do I run a basic systemctl-reload example?

Run `systemctl reload nginx` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --user do in systemctl-reload?

Reload user service manager units instead of system units