已安装Docker的官方镜像ubuntu18.04 PS C:\Users\17293> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 18.04 4eb8f7c43909 2 weeks ago 63.1MB
PS C:\Users\17293> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
129
我正在尝试编译适用于android的reboot.c二进制文件,但我一直收到以下错误:
/home/pedja/android-ndk-r8d/toolchains/x86-4.6/prebuilt/linux-x86/bin/../lib/gcc/i686- linux-android/4.6/../../../../i686-linux-android/bin/ld: ./obj/local/x86/objs/reboot /reboot.o: in function main:jni/reboot.c:49: error: undefined reference to '
关于man shutdown的网址:
关闭(8)- Linux手册页
它表明:
...
-H, --halt
Halt the machine.
-P, --poweroff
Power-off the machine (the default).
-r, --reboot
Reboot the machine.
-h
Equivalent to --poweroff, unless --halt is specified.
...
因此,以下两个命令是相同的(考虑到从现在起的默认时间,即+1)
我试着做一个断电按钮(实际上它是一个div),当我点击它时,它会改变它的外观。它看起来像一个中断器,所以我想改变页面的background-color,图标‘关闭’的颜色和按钮的border-style。
我从另一个站点获得了这个函数,它在添加一次CSS属性方面做得很好,但我希望它能够一直保持下去。
document.getElementById('io').addEventListener('click', function () {
if (this.classList.contains('poweroff')) {
// this
我今天从Xubuntu 16.04 beta-2升级到16.04。现在我不能关闭我的笔记本电脑,但我可以重新启动。当我尝试它的GUI方式时,它只是注销。
当我试着
sudo shutdown -h now
我得到了以下错误:
Failed to start poweroff.target: Transaction is destructive.
See system logs and 'systemctl status poweroff.target' for details.
/var/log/messages的输出:
tail /var/log/messages
tail
当我发布以下内容时:
sudo shutdown now
..my新启用的Ubuntu14.04服务器没有关闭。它以以下消息结束:
* Stopping System V runlevel compatibility
Give root password for maintenance:
(or type Control-D to continue):
如果我输入根密码,机器只需坐在shell提示符处即可。
我有一个新的安装Kubuntu16.04.1(内核4.13.0-32-泛型)。主文件夹已加密(安装选项)。
如果会话从未被挂起,我的计算机通常会关闭。
尽管如此,如果Kubuntu在某个时候被挂起,那么断电就不能工作(只有在使用sudo poweroff -f的情况下)。如果从GUI断电,系统似乎是注销(登录屏幕出现)。
如果我做了sudo poweroff,我就得到:
Failed to start poweroff.target: Transaction is destructive.
See system logs and 'systemctl status poweroff.t