广告

可选:点击以支持我们的网站

免费文章

Platform construction

用户从WSL切换到Windows本地环境了,现在在PowerShell里尝试使用sudo命令,但Windows的PowerShell默认不支持sudo,所以出现了禁用提示。用户明显在环境选择上遇到了障碍,需要引导他在正确的环境下操作。

bluetooth@rafavi:/mnt/c/Windows/system32$ sudo systemctl start redis && sudo systemctl enable redis Failed to enable unit: Refusing to operate on alias name or linked unit file: redis.service bluetooth@rafavi:/mnt/c/Windows/system32$ systemctl start redis Failed to start redis.service: Interactive authentication required. See system logs and 'systemctl status redis.service' for details.

登陆