首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux在引导时卡住了:一个启动作业正在运行

Linux在引导时卡住了:一个启动作业正在运行
EN

Unix & Linux用户
提问于 2017-06-08 09:25:56
回答 1查看 5.1K关注 0票数 0

我有一个NixOS服务器,在我重新启动它之后,它在引导时被卡住了。它正在显示以下消息:A start job is running for Waiting for NixOps keys (1d 3h / no limit)

系统正在等待的任务是系统服务。我做了一些研究,我和我发现,当这个问题发生时,它通常在一定的时间后,系统启动。然而,在我的例子中,它已经被困了一天多了。有什么办法绕过那个州吗?

EN

回答 1

Unix & Linux用户

发布于 2017-06-08 13:11:03

根据NixOps手册..。

来自deployment.keys的密钥存储在/run/在临时文件系统下,并且不会在所有nixops命令在适当情况下隐式上传密钥的reboot...Note中持久化,因此只有在无人值守的重新启动之后才需要手动发送密钥。

尝试nixops send-keys命令。

代码语言:javascript
复制
nixops send-keys [ --include machine-name... ] [ --exclude machine-name... ]
Description

This command uploads the keys described in deployment.keys to remote machines in the /run/keys/ directory.

Keys are not persisted across reboots by default. If a machine reboot is triggered from outside nixops, it will need nixops send-keys to repopulate its keys.

Note that nixops deploy does an implicit send-keys where appropriate, so manually sending keys is only necessary after unattended reboots.
Options

--include machine-name...

    Only operate on the machines explicitly mentioned here, excluding other machines.
--exclude machine-name...

    Only operate on the machines that are not mentioned here.

请参阅https://nixos.org/nixops/manual/#idm140737318306400

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/369924

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档