debian 没有关机命令?
debian吧
全部回复
仅看楼主
level 6
wpahipc 楼主
现在debian的基本系统都没有关机命令了吗?
poweroff reboot halt init 全部都没有命令
[泪][泪][泪]
2020年12月14日 08点12分 1
level 10
shutdown
2020年12月14日 10点12分 2
正解~~
2023年02月04日 07点02分
未找到命令。。
2023年09月29日 12点09分
sudo shutdown now
2024年02月12日 11点02分
level 13
sudo systemctl poweroff
2020年12月14日 11点12分 3
完美
2021年01月20日 03点01分
感谢
2023年08月17日 13点08分

2024年01月08日 06点01分
level 7
sudo poweroff
2020年12月20日 05点12分 4
level 13
加 sudo
2020年12月26日 01点12分 5
level 1
配一下环境变量
2021年01月20日 12点01分 6
level 13
哈哈哈哈哈[捂嘴笑]
2021年01月20日 17点01分 7
热烈欢迎,吧主来视察工作
2021年01月20日 23点01分
@yyu0378 这也能玩出官僚味来
2021年02月03日 00点02分
@青青水豌豆_ 不要想多了,我只是要水一下经验
2021年02月03日 01点02分
level 2
sudo shutdown -h now 立马关机
2021年02月04日 07点02分 8
shutdown -P now
2023年02月04日 07点02分
level 7
sudo init 0
这些明亮都是 sudo only 的
2021年02月07日 04点02分 9
level 6
刚刚我也发现这个问题,百度一下看到这个帖子。貌似刚最小化安装的debian要用root登录才能关机,普通用户登录后su到root也不行,十分奇怪的逻辑[黑线]
2021年06月16日 15点06分 10
su - root切换就可以了
2023年11月03日 04点11分
@幻夜黑♂ 这是命令的问题,和debian没关系
2023年11月03日 04点11分
level 1
普通用户sudo后还要给他权限才能用root命令
2021年06月25日 06点06分 11
level 6
非root用户吗?/sbin/poweroff试一下
2021年06月27日 23点06分 12
好像是/usr/sbin/poweroff -h now
2021年06月30日 06点06分
@柠檬树庄园 要加sudo
2021年06月30日 06点06分
@柠檬树庄园 路径完整,可以不加sudo的
2021年06月30日 23点06分
@Smile_Zheng 你是对的,多谢了。我刚安装测试过了。你的方法可行。
2021年07月01日 01点07分
level 1
init 0 关机
init 6 重启
2021年07月27日 02点07分 13
这个牛……
2023年08月26日 12点08分
level 1
好像学到了什么
2023年02月06日 14点02分 14
level 1
这都是粘贴复制来的吧。
靠谱的就是 sudo systemctl poweroff 这个命令了。
奇怪的官网手册也没有更新。我很醉
2023年03月13日 09点03分 15
1 2 尾页