AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-60060

poseid's questions

Martin Hope
poseid
Asked: 2013-12-12 13:21:17 +0800 CST

如何使用 Chef 安装 Redis?

  • 2

我正在尝试使用 Chef 安装 Redis。我想,这很容易,因为我只想拥有默认配置。

所以,我添加到 Berksfile:

站点:操作码

食谱“适合”
食谱“节点”
食谱'rvm',:git =>“https://github.com/fnichol/chef-rvm”
食谱“单元”
食谱'redis'

然后,我运行: vagrant provision

但我明白了:

2013-12-11T21:18:23+00:00] 调试:chef_gem [rvm] 已安装 - 无事可做
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方 rvm::vagrant
[2013-12-11T21:18:23+00:00] 调试:在食谱 rvm 中找到食谱 vagrant
[2013-12-11T21:18:23+00:00] 警告:从先前的资源中克隆组 [rvm] 的资源属性 (CHEF-3694)
[2013-12-11T21:18:23+00:00] 警告:上一组 [rvm]:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system.rb:33:在“from_file”中
[2013-12-11T21:18:23+00:00] 警告:当前组 [rvm]:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/vagrant.rb:34:在“from_file”中
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载 Redis 配方
[2013-12-11T21:18:23+00:00] 调试:在食谱 redis 中找到默认配方
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方 metachef
[2013-12-11T21:18:23+00:00] 调试:在食谱 metachef 中找到默认配方
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方 redis::server
[2013-12-11T21:18:23+00:00] 调试:在食谱 redis 中找到配方服务器
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方运行
[2013-12-11T21:18:23+00:00] 调试:在食谱 runit 中找到默认配方
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方 metachef
[2013-12-11T21:18:23+00:00] 调试:我没有加载 metachef,因为我已经看过了。
[2013-12-11T21:18:23+00:00] 调试:通过 include_recipe 加载配方 redis::default
[2013-12-11T21:18:23+00:00] 调试:我没有加载 redis::default,因为我已经看过了。
[2013-12-11T21:18:23+00:00] 警告:从先前的资源中克隆目录 [/etc/redis] 的资源属性 (CHEF-3694)
[2013-12-11T21:18:23+00:00] 警告:上一个目录 [/etc/redis]:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/metachef/definitions/standard_dirs.rb :44:in `from_file 中的块(3 级)'
[2013-12-11T21:18:23+00:00] 警告:当前目录 [/etc/redis]:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/metachef/definitions/standard_dirs.rb :44:in `from_file 中的块(3 级)'
[2013-12-11T21:18:23+00:00] 调试:编译错误的过滤回溯:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37:在“from_file”中的“块”中,/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:36:在“from_file”中
[2013-12-11T21:18:23+00:00] 调试:编译错误的过滤回溯:/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37:在“from_file”中的“块”中,/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:36:在“from_file”中
[2013-12-11T21:18:23+00:00] 调试:编译错误的回溯条目:'/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37 :in `block in from_file''
[2013-12-11T21:18:23+00:00] 调试:编译错误的行号:'37'
[2013-12-11T21:18:23+00:00] 调试:重新引发异常:NoMethodError - Chef::Resource::RunitService 的未定义方法“run_state”
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/resource.rb:294:in `method_missing'
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37:in `block in from_file'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/recipe.rb:71:in `instance_eval'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/recipe.rb:71:in `method_missing'
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:36:in `from_file'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `from_file'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/cookbook_version.rb:237:in `load_recipe'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:151:in `load_recipe'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:139:in `block in compile_recipes'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:在“每个”中
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:in `compile_recipes'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:74:in `compile'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:86:in `load'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:250:in `setup_run_context'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:498:in `do_run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:199:in `block in run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `fork'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:208:in `run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:221:in `block in run_application'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `loop'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `run_application'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:66:in `run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/bin/chef-solo:25:in `'
  /opt/chef/bin/chef-solo:23:in `load'
  /opt/chef/bin/chef-solo:23:in `'
[2013-12-11T21:18:23+00:00] 错误:运行异常处理程序
[2013-12-11T21:18:23+00:00] 错误:异常处理程序完成
[2013-12-11T21:18:23+00:00] 致命:堆栈跟踪转储到 /var/chef/cache/chef-stacktrace.out
[2013-12-11T21:18:23+00:00] 调试:NoMethodError:Chef::Resource::RunitService 的未定义方法“run_state”
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/resource.rb:294:in `method_missing'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37:in `block in from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/recipe.rb:71:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/recipe.rb:71:in `method_missing'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:36:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/cookbook_version.rb:237:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:在“每个”中
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:250:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:498:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:199:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:208:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:221:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:66:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/bin/chef-solo:25:in `'
/opt/chef/bin/chef-solo:23:in `load'
/opt/chef/bin/chef-solo:23:in `'
[2013-12-11T21:18:23+00:00] 错误:Chef::Resource::RunitService 的未定义方法“run_state”

==================================================== ===============================
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb 中的配方编译错误
==================================================== ===============================


无方法错误
-------------
Chef::Resource::RunitService 的未定义方法“run_state”


食谱跟踪:
---------------
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:37:in `block in from_file'
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:36:in `from_file'


相关文件内容:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/redis/recipes/server.rb:

 30:standard_dirs('redis.server') 做
 31:目录:conf_dir,:log_dir,:data_dir
 32:结束
 33:
 34: kill_old_service('redis-server'){ only_if{ File.exists?("/etc/init.d/redis-server") } }
 35:
 36: runit_service "redis_server" 做
 37>> run_state 节点[:redis][:server][:run_state]
 38: 选项节点[:redis]
 39:结束
 40:
 41:宣布(:redis,:服务器,
 42::端口=>节点[:redis][:服务器][:端口])
 43:


[2013-12-11T21:18:21+00:00] 信息:分叉厨师实例收敛......
[2013-12-11T21:18:21+00:00] 调试:分叉成功。等待新厨师 pid:28235
[2013-12-11T21:18:23+00:00] 致命:Chef::Exceptions::ChildConvergeError:Chef 运行进程未成功退出(退出代码 1)

编辑 -

这是运行列表:

  config.vm.provision :chef_solo 做 |chef|
    chef.cookbooks_path = "./cookbooks"
    #chef.roles_path = "../my-recipes/roles"
    #chef.data_bags_path = "../my-recipes/data_bags"
    chef.add_recipe “运行单元”
    chef.add_recipe "rvm::system"
    chef.add_recipe "rvm::vagrant"
    chef.add_recipe "redis::install_from_release"
    chef.add_recipe "redis::client"
    # chef.add_recipe “节点”
    # chef.add_role “网络”

    # 您还可以指定自定义 JSON 属性:
    厨师.json = {
      'rvm' => {
         '红宝石' => ["2.0.0-p353"],
         'default_ruby' => "2.0.0-p353",
         :vagrant => { :system_chef_solo => "/opt/chef/bin/chef-solo" }
      }
    }

    chef.log_level = :debug
  结尾


chef
  • 3 个回答
  • 5429 Views
Martin Hope
poseid
Asked: 2013-02-06 02:38:45 +0800 CST

这是什么意思:v=spf1 include:_spf.google.com ~all?

  • 10

除了我之前的问题,这个 DNS 条目是什么意思:

 v=spf1 include:_spf.google.com ~all  ?
domain-name-system
  • 2 个回答
  • 40598 Views
Martin Hope
poseid
Asked: 2013-02-06 01:17:22 +0800 CST

如何解析 SPF 配置以允许 Google 发送邮件?

  • 7

我们正在为 GMail 服务配置 DNS,MX 记录配置为 Google 所说的,但是,在 DNS 检查中,有一个警告:

SPF must allow Google to send mail on behalf of the domain

我的问题:

  • 为什么 GMail 的 SPF 记录是个问题?

  • 如何解决这个问题?

非常感谢您的帮助!谷歌邮件错误

domain-name-system
  • 2 个回答
  • 8579 Views
Martin Hope
poseid
Asked: 2013-01-30 05:26:54 +0800 CST

如何用 knife 创建 EC2 实例?

  • 4

我能够通过以下方式使 knife 访问 AWS:http ://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife

现在,我得到了一个几乎可以工作的 knife 命令:

$ knife ec2 server create -r "role[base]" -I ami-c1aaabb5  -f t1.micro -S knife -i ~/.ssh/knife.pem --ssh-user ubuntu --region eu-west-1 -Z eu-west-1a
实例 ID:i-xxxxxx
口味: m1.small
图片:ami-399ca94d
地区:eu-west-1
可用区:eu-west-1a
安全组:默认
标签:{“名称”=>“i-xxxxxx”}
SSH密钥:小刀

等待服务器......................................
公共 DNS 名称:ec2-xxxxxx.eu-west-1.compute.amazonaws.com
公网IP地址:yy.yy.yy.yy
私有 DNS 名称:ip-xxxxxxx.eu-west-1.compute.internal
私有 IP 地址:zz.zz.zz.zz

等待 sshd......................................

但是现在我超时了。关于如何为 Chef 配置准备好 EC2 实例的任何想法/建议?

谢谢!

amazon-ec2
  • 1 个回答
  • 1710 Views
Martin Hope
poseid
Asked: 2013-01-30 00:22:48 +0800 CST

如何使用 EC2 中的 PEM 密钥

  • 8

我了解无需输入密码即可登录服务器的“ssh 密钥”的概念,但是,我不了解 PEM 密钥文件如何/使用哪些文件来登录 EC2 实例。

在 AWS 控制台中,我可以生成或导入一个 PEM 密钥,但是我应该在我的笔记本电脑上的什么地方/如何使用这个文件来登录云实例?

感谢帮助!

ssh
  • 3 个回答
  • 10649 Views
Martin Hope
poseid
Asked: 2013-01-28 10:41:07 +0800 CST

如何配置 knife 和 EC2 从命令行创建一个新实例?

  • 4

我正在使用 Amazon EC2 来创建实例。我在这里阅读:在 EC2 的刀文档中,我需要设置:

# EC2:
knife[:aws_access_key_id]     = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"

现在,当我尝试从 AWS 控制台在我的 knife.rb 中设置安全凭证时,我得到了一个

ERROR: You did not provide a valid 'AWS SSH Key Id' value.

而且,当我创建一个新的“密钥对”时,我得到了一些 .pem 文件,这也让我感到困惑。

如何设置我的 knife 和 EC2 以创建新节点?

amazon-ec2
  • 4 个回答
  • 10688 Views
Martin Hope
poseid
Asked: 2013-01-16 13:33:41 +0800 CST

如何与 Heroku 共享自定义域的 DNS 设置?

  • 1

我问了一个问题,为什么我的 Heroku 自定义域在这里不起作用: Why can't my custom domain on Heroku be resolved?

然而,这个问题的背景是,我想要一个指向 heroku 的 www.example.com 的 CNAME 条目,同时将 mx.example.com 或 mail.example.com 指向邮件服务。

在 Heroku 文档中,如果可能的话,我可以找到任何指示,或者需要考虑哪些方面。我将如何为此上下文设置我的 DNS 条目?

heroku
  • 1 个回答
  • 254 Views
Martin Hope
poseid
Asked: 2013-01-15 08:43:39 +0800 CST

为什么无法解析我在 Heroku 上的自定义域?

  • 0

我周五在 Heroku 上为一个小网站配置了一个自定义域。当时它有效,但现在它坏了。主人是nedgros.de。nedgros.herokuapp.com地址为 23.21.239.236。

未解析为正确的应用程序。如何配置 DNS 以遵循 Dyno 动态?

heroku
  • 1 个回答
  • 4206 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve