windows-subsystem-for-linux - 为什么“systemctl”不能在 Windows 上的 Ubuntu 终端中工作?
问题描述
我需要在窗口 10 的 ubuntu 终端中使用 systemctl 命令重新加载守护进程。我附上了收到的错误。请帮助我。
错误:bashdos@yana:~$ systemctl 系统尚未使用 systemd 作为 init 系统 (PID 1) 启动。不能操作。
感谢先进。
解决方案
WSL 没有实现 systemd,因此在 Ubuntu 中您需要运行例如“service start ssh”,或者您可以直接调用二进制文件,例如 /etc/init.d/ssh start/stop/restart。
推荐阅读
- r - 使用 relevel() 并在 R 中拟合 GLM 后恢复到先前的因子排序
- javascript - Visual Basic Web 浏览器 Javascript 加载错误
- google-app-engine - 如何将调度文件部署到 GCP 项目而不会出现没有详细信息的内部错误
- android - BottomSheet 正文未正确填充
- python - Python的子进程使用什么shell?
- jquery - 使用 DataTables,使搜索输入像关联表一样响应
- mysql - 如何获得最大日期的线?
- jquery - jquery ui 进度条仅在从 json 加载所有数据后显示
- paypal - 致命错误:未捕获的 PayPal\Exception\PayPalConnectionException:得到 Http 响应代码 403
- azure - 如何在 azure-pipelines.yml 中使用 AzureCLI 删除 Azure Blob 存储上的旧文件