大概原因是在一个无法在不适用systemd管理服务的系统(classic SysV)中使用systemctl If you are using Ubuntu inside Windows using WSL, you will have SysV instead of systemd and your system will complain when you run the systemctl command (intended for Linux systems with systemd init system). 如果你...
在WSL上使用systemctl命令启动服务环境:Archlinux On Windows安装daemonize pacman -S daemonize 安装genie pacman -S genie-systemd genie的使用 genie -s # 启动systemd进程,并进入环境终端 进入环境后执行相关命令即可 systemctl start 服务 推荐阅读:...
在使用WSL时遇到在WSL中使用systemctl命令报错的问题,这可能是因为WSL并未通过systemd启动,因此无法执行该操作。然而,系统中存在systemctl命令,其路径位于/usr/bin/systemctl。可以查看GitHub了解更多详情:Systemd支持Windows Subsystem for Linux (WSL) · Issue #8036 · systemd/systemd (github.com)...
如果是WSL1的话,可以升级WSL2,按以下方法启用systemd。 要使用systemctl命令,要先启用systemd,即system daemon。 这里选择安装Distrod来启用systemd。 Distrod Distrod - WSL2 Distros with Systemd! GitHub地址:nullpo-head/wsl-distrod: Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debi...
实现systemd 已在WSL 2 发行版中启用。 1. 下载安装systemd chmod +x install.sh sudo ./install.sh install 2. windows启动自动启动Distrod 您有两种选择。如果要在 Windows 启动时自动启动Distrod,请通过以下命令启用 Distrod /opt/distrod/bin/distrod enable --start-on-windows-boot 3. 安装完成,重启...
WSL系统systemctl不能使用解决方法 用window10下WSL使用Ubuntu20.04,当我使用命令sudo systemctl status mariadb的时候报错: glc@LAPTOP-LEMON:~$ sudo systemctl status mariadb System has not been booted with systemd as init system (PID 1). Can't operate....
“systemctl启用坞”不可用:在WSL2上启动时自动运行Docker (使用"sysvinit“/ "init”命令或解决方案)...
WSL中使用systemctl报错问题,Windows10里面自带的wsl中安装docker后不支持systemctl命令。需要更换命令,用Sysvinit的命令代替systemd,命令如下:SystemdcommandSysvinitcommandsystemctlstartservice_nameserviceser...
wsl中无法使用systemctl 启动mysql服务,systemctlstartmysql.service提示:Systemhasnotbeenbootedwithsystemdasinitsystem(PID1).Can'toperate.然后: sudoservicemysqlstart*Starti...
wsl 不能使用systemctl 导致我docker.service加了-H tcp://0.0.0.0:2375然后不能systemctl daemon-reload只是service docker restart的话好像配置不生效