我正尝试使用以下命令
在aws实例上启动opswork-agent sudo service opsworks-agent start
但它失败了以下错误,
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:34:in `singleton class': undefined method `default_specifications_dir' for class `#<Class:Gem::Specification>' (NameError)
from /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:32:in `<top (required)>'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:1264:in `require'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:1264:in `<top (required)>'
from <internal:gem_prelude>:4:in `require'
from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
其他详情:
ruby版本:ruby 2.0.0p645(2015-04-13修订版50299)[x86_64-linux]
gem版本:2.6.7
答案 0 :(得分:0)
确保以下事项。
DevOps工程师无需从实例手动启动opsworks-agent。