小编mr *_* au的帖子

仅当文件不存在时,才将目录结构中的每个文件复制到特定路径中

仅当文件不存在时才将每个文件从目录结构复制到特定目录。

这个 Stack Overflow 问题中得到了第一部分:

find . -type f -exec cp {} /target-directory \;
Run Code Online (Sandbox Code Playgroud)

如何检查文件是否存在?如果没有,则复制文件,否则跳过。

command-line bash files find

8
推荐指数
1
解决办法
2543
查看次数

无法启动处于“错误”状态的实例

无法启动实例,出现以下错误。

$ nova reboot <instance-name>
ERROR: Cannot 'reboot' instance e54b5d26-2918-4ab6-8210-94e827bf2a94 while it is in vm_state error (HTTP 409) (Request-ID: req-88efe1d4-37c3-409e-89a9-844f537e51eb)
Run Code Online (Sandbox Code Playgroud)


$nova show <instance-name>
| fault                                | {"message": "Instance e54b5d26-2918-4ab6-8210-94e827bf2a94 cannot be rescued: Driver Error: internal error: early end of file from monitor: possible problem: |
|                                      | 2016-05-01T05:35:27.071764Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory 
Run Code Online (Sandbox Code Playgroud)

请告诉我如何解决这个问题。

openstack openstack-autopilot

5
推荐指数
1
解决办法
2万
查看次数