Amazon web services AWS安装代码部署代理刚刚失败-我缺少什么

Amazon web services AWS安装代码部署代理刚刚失败-我缺少什么,amazon-web-services,amazon-cloudformation,aws-code-deploy,Amazon Web Services,Amazon Cloudformation,Aws Code Deploy,我按照给出的指令进行操作,得到了一个错误,就像调用了一个完全无关的程序一样。记录在案的是,它似乎在昨天起作用 我在Amazon linux 2上运行此功能: sudo yum update sudo yum -y install ruby wget cd /home/ec2-user wget https://aws-codedeploy-${AWS::Region}.

我按照给出的指令进行操作,得到了一个错误,就像调用了一个完全无关的程序一样。记录在案的是,它似乎在昨天起作用

我在Amazon linux 2上运行此功能:

                sudo yum update
                sudo yum -y install ruby wget
                cd /home/ec2-user
                wget https://aws-codedeploy-${AWS::Region}.s3.${AWS::Region}.amazonaws.com/latest/install
                chmod +x ./install
                sudo ./install auto
                sudo service codedeploy-agent status
下面是发生的情况:

[root@ip-10-204-84-134 bin]# sudo ./install auto
./install: missing destination file operand after ‘auto’
Try './install --help' for more information.
[root@ip-10-204-84-134 bin]# sudo ./install --help
Usage: ./install [OPTION]... [-T] SOURCE DEST
  or:  ./install [OPTION]... SOURCE... DIRECTORY
  or:  ./install [OPTION]... -t DIRECTORY SOURCE...
  or:  ./install [OPTION]... -d DIRECTORY...

This install program copies files (often just compiled) into destination
locations you choose.  If you want to download and install a ready-to-use
package on a GNU/Linux system, you should instead be using a package manager
like yum(1) or apt-get(1).

In the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to
the existing DIRECTORY, while setting permission modes and owner/group.
In the 4th form, create all components of the given DIRECTORY(ies).

Mandatory arguments to long options are mandatory for short options too.
      --backup[=CONTROL]  make a backup of each existing destination file
  -b                  like --backup but does not accept an argument
  -c                  (ignored)
  -C, --compare       compare each pair of source and destination files, and
                        in some cases, do not modify the destination at all
  -d, --directory     treat all arguments as directory names; create all
                        components of the specified directories
  -D                  create all leading components of DEST except the last,
                        then copy SOURCE to DEST
  -g, --group=GROUP   set group ownership, instead of process' current group
  -m, --mode=MODE     set permission mode (as in chmod), instead of rwxr-xr-x
  -o, --owner=OWNER   set ownership (super-user only)
  -p, --preserve-timestamps   apply access/modification times of SOURCE files
                        to corresponding destination files
  -s, --strip         strip symbol tables
      --strip-program=PROGRAM  program used to strip binaries
  -S, --suffix=SUFFIX  override the usual backup suffix
  -t, --target-directory=DIRECTORY  copy all SOURCE arguments into DIRECTORY
  -T, --no-target-directory  treat DEST as a normal file
  -v, --verbose       print the name of each directory as it is created
  -P, --preserve-context  preserve SELinux security context (-P deprecated)
  -Z                      set SELinux security context of destination
                            file to default type
      --context[=CTX]     like -Z, or if CTX is specified then set the
                            SELinux or SMACK security context to CTX
      --help     display this help and exit
      --version  output version information and exit

The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.
The version control method may be selected via the --backup option or through
the VERSION_CONTROL environment variable.  Here are the values:

  none, off       never make backups (even if --backup is given)
  numbered, t     make numbered backups
  existing, nil   numbered if numbered backups exist, simple otherwise
  simple, never   always make simple backups

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report install translation bugs to <http://translationproject.org/team/>
For complete documentation, run: info coreutils 'install invocation'
[root@ip-10-204-84-134 bin]#sudo./install auto
/安装:“自动”后缺少目标文件操作数
有关详细信息,请尝试“/install--help”。
[root@ip-10-204-84-134 bin]#sudo./install--help
用法:./install[选项]。。。[-T]源目标
或:./install[选项]。。。来源目录
或:./install[选项]-t目录源。。。
或:./install[选项]-d目录。。。
此安装程序将文件(通常只是编译的)复制到目标
您选择的位置。如果您想下载并安装一个随时可用的
在GNU/Linux系统上,您应该使用包管理器
如yum(1)或apt-get(1)。
在前三种形式中,将源复制到DEST或将多个源复制到DEST
现有目录,同时设置权限模式和所有者/组。
在第四种形式中,创建给定目录的所有组件。
长选项的强制性参数对于短选项也是强制性的。
--备份[=控制]对每个现有目标文件进行备份
-b喜欢--backup,但不接受参数
-c(忽略)
-C、 --比较每对源文件和目标文件,以及
在某些情况下,根本不修改目标
-d、 --目录将所有参数视为目录名;创建所有
指定目录的组件
-D创建DEST的所有主要组件,最后一个除外,
然后将源复制到DEST
-g、 --组=组设置组所有权,而不是进程“当前组”
-m、 --模式=模式设置权限模式(如在chmod中),而不是rwxr-xr-x
-o、 --所有者=所有者集所有权(仅限超级用户)
-p、 --保留时间戳应用源文件的访问/修改时间
到相应的目标文件
-s、 --条形符号表
--剥离程序=用于剥离二进制文件的程序
-S、 --suffix=后缀覆盖通常的备份后缀
-t、 --target directory=目录将所有源参数复制到目录中
-T、 --没有目标目录将DEST视为普通文件
-v、 --详细打印创建时每个目录的名称
-P、 --保留上下文保留SELinux安全上下文(-P已弃用)
-Z设置目标的SELinux安全上下文
文件设置为默认类型
--上下文[=CTX]类似于-Z,或者如果指定了CTX,则设置
SELinux或SMACK安全上下文到CTX
--帮助显示此帮助并退出
--版本输出版本信息并退出
除非使用--suffix或SIMPLE\u backup\u后缀设置,否则备份后缀为“~”。
版本控制方法可以通过--backup选项或通过
版本控制环境变量。以下是数值:
无,关闭从不进行备份(即使提供了--backup)
有编号的,不做有编号的备份
现有,如果存在编号备份,则编号为零,否则为简单
简单,永远不要做简单的备份
GNU coreutils联机帮助:
将安装翻译错误报告给
要获得完整的文档,请运行:info coreutils'install invocation'

好的,文档完全被破坏了,但只要查看一下那个桶,我就发现了一个RPM并运行了它:

[root@ip-10-204-84-134 bin]# sudo yum install -y https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/codedeploy-agent.noarch.rpm^C
[root@ip-10-204-84-134 bin]# sudo service codedeploy-agent status
The AWS CodeDeploy agent is running as PID 4572
[root@ip-10-204-84-134 bin]# 


文件没有损坏。我只是尝试复制这个问题,在安装代理时没有任何问题。但是无论如何,使用rpm工作是很好的。如果没有其他的,使用rpm可以将它简化为1行,而不是4行。我同意
codedeployagent.noarch.rpm
使用起来更简单。因此,之前我给出了答案。