update-rc.d
时间: 2023-10-27 10:11:45 浏览: 52
`update-rc.d` is a command used in Debian-based Linux distributions to manage the initialization scripts (or "runlevels") of system services. It allows the administrator to enable or disable services to automatically start during system bootup, as well as specify the order in which they start and stop.
For example, to enable the Apache web server to start automatically at boot time, you could use the following command:
```
sudo update-rc.d apache2 enable
```
Similarly, to disable the service:
```
sudo update-rc.d apache2 disable
```
Note that `update-rc.d` should be used with caution, as changing the startup behavior of services can have unintended consequences. It's always a good idea to make a backup of the configuration files before making any changes.