network.service is not a native service, redirecting to systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable network
这是一个命令行操作,用于将非本地服务(如network.service
)转发给systemd-sysv-install
进行处理。systemd-sysv-install
是一个用于在Systemd系统中启用SysV服务的工具。执行这个命令会将network.service
服务启用,使其能够在系统启动时自动运行。
network.service is not a native service ,redirecting to /sbin/chkconfig
This message typically appears on systems that use the systemd service manager. When you try to start or stop a service using the service command, and the service is not a native systemd service, you may see this message.
The message is simply informing you that the service is not managed by systemd and is being redirected to the chkconfig
command, which is used to manage services that use the traditional SysV init system.
If you want to manage the service using systemd, you can create a systemd unit file for the service. Once the unit file is created, you can use the systemctl
command to start, stop, enable, and disable the service.
nginx.service is not a native service, redirecting to /sbin/chkconfig.
当执行 systemctl
命令管理服务时,如果看到类似于 nginx.service is not a native service, redirecting to /sbin/chkconfig.
的提示,通常是由于系统中没有对应的 systemd 单元文件,导致 systemctl
命令无法直接管理该服务。
在这种情况下,您可以尝试使用类似于 chkconfig
或者 service
命令等传统的服务管理工具。
例如,您可以使用以下命令启动 nginx 服务:
sudo service nginx start
或者使用以下命令将 nginx 服务添加到系统启动项中:
sudo chkconfig nginx on
需要注意的是,使用传统的服务管理工具可能会有一些限制,例如无法直接查看服务状态、无法使用 systemctl
的高级功能等。建议在有可能的情况下,尽量使用 systemctl
命令管理服务。如果您想使用 systemctl
命令管理 nginx 服务,可以尝试安装对应的 systemd 单元文件。
相关推荐

















