"command not found" 在 Centos 7 上调用 Puppet 时

"command not found" when calling Puppet on Centos 7

我的Centos 7安装了puppet,无法正常通话

puppet --help
-bash: puppet: command not found

但是当尝试从路径调用时我得到了响应:

/opt/puppetlabs/bin/puppet --help

Usage: puppet <subcommand> [options] <action> [options]
Available subcommands:

  agent             The puppet agent daemon
  apply             Apply Puppet manifests locally

会不会是路径问题?

puppet 不在 PATH 变量中

对于个人用户,像这样将其添加到.bashrc文件中

export PATH=/opt/puppetlabs/bin/:$PATH