rc-local.server could not found
时间: 2023-12-22 21:05:22 浏览: 129
本地服务器
It seems like you are trying to locate the `rc.local` file or the `rc-local.service` unit in your system, but you are unable to find it.
The `rc.local` file is a script that runs at the end of the system boot process on many Linux distributions. It is usually located in the `/etc` directory. However, some recent distributions, such as Ubuntu 20.04, do not include this file by default.
If you need to use the `rc.local` file, you can create it manually by running the following commands:
```
sudo touch /etc/rc.local
sudo chmod +x /etc/rc.local
```
Then, you can add your custom commands to this file and they will be executed at the end of the boot process.
Regarding `rc-local.service`, it is a systemd service unit that is used to execute the `rc.local` file at boot time. If you are unable to find this service unit, it may be because your distribution does not include it or has renamed it. You can try searching for similar service units in your system using the `systemctl list-unit-files` command.
阅读全文