iaas-pre-host.sh Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Invalid number of arguments. sed: -e expression #2, char 0: no previous regular expression spawn ssh-copy-id -i /root/.ssh/id_rsa /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: ERROR: ssh: Could not resolve hostname /root/.ssh/id_rsa: Name or service not known Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Package chrony-3.2-2.el7.x86_64 already installed and latest version Nothing to do 我该如何做
时间: 2023-07-16 09:12:37 浏览: 96
XianDian-IaaS-v2.2.iso.txt
这段信息看起来像是在执行一个脚本文件时出现了一些错误。其中包括:
- grep 命令的使用方法不正确,缺少必要的参数
- sed 命令的正则表达式不正确
- ssh-copy-id 命令无法解析密钥文件路径
- 最后一行是 yum 命令,提示 chrony 软件包已经安装且是最新版本,没有其他需要更新的软件包。
如果你是在执行某个脚本文件,可以检查一下这个文件中是否有以上问题。如果是手动输入命令,请检查命令参数是否正确。如果你不确定正确的使用方法,可以通过命令行输入 `man [命令]` 来查看命令的帮助文档。
阅读全文