Ruby on rails 法拉第::连接失败连接被拒绝-连接(2)用于;“本地主机”;端口9200
我在我的rails应用程序中添加了elasticsearch,并且在我的Gemfile中包含了这些宝石:Ruby on rails 法拉第::连接失败连接被拒绝-连接(2)用于;“本地主机”;端口9200,ruby-on-rails,elasticsearch,faraday,Ruby On Rails,elasticsearch,Faraday,我在我的rails应用程序中添加了elasticsearch,并且在我的Gemfile中包含了这些宝石: gem "elasticsearch-rails" gem "elasticsearch-model" gem 'ngram' 一切正常,但每次我重新启动电脑时都会收到此错误消息 Faraday::ConnectionFailed Connection refused - connect(2) for "localhost" port 9200 每次我需要重新安装eleasticsear
gem "elasticsearch-rails"
gem "elasticsearch-model"
gem 'ngram'
一切正常,但每次我重新启动电脑时都会收到此错误消息
Faraday::ConnectionFailed Connection refused - connect(2) for "localhost" port 9200
每次我需要重新安装eleasticsearch以使其正常工作时
我在其他帖子中看到,对于一些人来说,/etc/init.d/elasticsearch重新启动
解决问题,但不是为我。我在用Ubuntu
有什么建议吗
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.2)
actionpack (= 4.2.2)
actionview (= 4.2.2)
activejob (= 4.2.2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.2)
actionview (= 4.2.2)
activesupport (= 4.2.2)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
actionview (4.2.2)
activesupport (= 4.2.2)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
activejob (4.2.2)
activesupport (= 4.2.2)
globalid (>= 0.3.0)
activemodel (4.2.2)
activesupport (= 4.2.2)
builder (~> 3.1)
activerecord (4.2.2)
activemodel (= 4.2.2)
activesupport (= 4.2.2)
arel (~> 6.0)
activesupport (4.2.2)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
ansi (1.5.0)
arel (6.0.3)
autoprefixer-rails (5.2.1.1)
execjs
json
bcrypt (3.1.7)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.5.1)
autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.3.0)
bootstrap-will_paginate (0.0.10)
will_paginate
builder (3.2.2)
byebug (5.0.0)
columnize (= 0.9.0)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
debug_inspector (0.0.2)
elasticsearch (1.0.12)
elasticsearch-api (= 1.0.12)
elasticsearch-transport (= 1.0.12)
elasticsearch-api (1.0.12)
multi_json
elasticsearch-model (0.1.7)
activesupport (> 3)
elasticsearch (> 0.4)
hashie
elasticsearch-rails (0.1.7)
elasticsearch-transport (1.0.12)
faraday
multi_json
erubis (2.7.0)
execjs (2.5.2)
faker (1.4.2)
i18n (~> 0.5)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
ffi (1.9.10)
font-awesome-rails (4.4.0.0)
railties (>= 3.2, < 5.0)
formatador (0.2.5)
globalid (0.3.6)
activesupport (>= 4.1.0)
guard (2.12.8)
formatador (>= 0.2.4)
listen (>= 2.7, <= 4.0)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-minitest (2.3.1)
guard (~> 2.0)
minitest (>= 3.0)
hashie (3.4.2)
i18n (0.7.0)
jbuilder (2.3.1)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (4.0.4)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
listen (3.0.1)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
loofah (2.0.3)
nokogiri (>= 1.5.9)
lumberjack (1.0.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.6.1)
mini_backtrace (0.1.3)
minitest (> 1.2.0)
rails (>= 2.3.3)
mini_portile (0.6.2)
minitest (5.8.0)
minitest-reporters (1.0.5)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.11.2)
multipart-post (2.0.0)
nenv (0.2.0)
ngram (1.0.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
notiffany (0.0.6)
nenv (~> 0.1)
shellany (~> 0.0)
pg (0.17.1)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
puma (2.11.1)
rack (>= 1.1, < 2.0)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.2)
actionmailer (= 4.2.2)
actionpack (= 4.2.2)
actionview (= 4.2.2)
activejob (= 4.2.2)
activemodel (= 4.2.2)
activerecord (= 4.2.2)
activesupport (= 4.2.2)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.2)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.4)
rails_stdout_logging (0.0.4)
railties (4.2.2)
actionpack (= 4.2.2)
activesupport (= 4.2.2)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rdoc (4.2.0)
ruby-progressbar (1.7.5)
sass (3.4.16)
sass-rails (5.0.2)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shellany (0.0.1)
slop (3.6.0)
spring (1.3.6)
sprockets (3.3.1)
rack (~> 1.0)
sprockets-rails (2.3.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
web-console (2.2.1)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
will_paginate (3.0.7)
PLATFORMS
ruby
DEPENDENCIES
autoprefixer-rails
bcrypt (~> 3.1.7)
bootstrap-sass (~> 3.3.1)
bootstrap-will_paginate (= 0.0.10)
byebug
coffee-rails (~> 4.1.0)
elasticsearch-model
elasticsearch-rails
faker (= 1.4.2)
font-awesome-rails
guard-minitest (= 2.3.1)
jbuilder
jquery-rails
mini_backtrace (= 0.1.3)
minitest-reporters (= 1.0.5)
ngram
pg (= 0.17.1)
puma (= 2.11.1)
rails (= 4.2.2)
rails_12factor (= 0.0.2)
sass-rails (= 5.0.2)
sdoc (~> 0.4.0)
spring
sqlite3
turbolinks
uglifier (= 2.5.3)
web-console (~> 2.0)
will_paginate (= 3.0.7)
BUNDLED WITH
1.10.6
GEM
远程:https://rubygems.org/
规格:
actionmailer(4.2.2)
actionpack(=4.2.2)
actionview(=4.2.2)
活动作业(=4.2.2)
邮件(~>2.5,>=2.5.4)
rails dom测试(~>1.0,>=1.0.5)
actionpack(4.2.2)
actionview(=4.2.2)
主动支持(=4.2.2)
机架(~>1.6)
机架测试(~>0.6.2)
rails dom测试(~>1.0,>=1.0.5)
rails html消毒剂(~>1.0,>=1.0.1)
actionview(4.2.2)
主动支持(=4.2.2)
生成器(~>3.1)
erubis(~>2.7.0)
rails dom测试(~>1.0,>=1.0.5)
rails html消毒剂(~>1.0,>=1.0.1)
activejob(4.2.2)
主动支持(=4.2.2)
globalid(>=0.3.0)
activemodel(4.2.2)
主动支持(=4.2.2)
生成器(~>3.1)
activerecord(4.2.2)
活动模型(=4.2.2)
主动支持(=4.2.2)
arel(~>6.0)
activesupport(4.2.2)
i18n(~>0.7)
json(~>1.7,>=1.7.7)
小型试验(~>5.1)
螺纹安全(~>0.3,>=0.3.4)
tzinfo(~>1.1)
ansi(1.5.0)
阿雷尔(6.0.3)
自动转印机导轨(5.2.1.1)
execjs
json
bcrypt(3.1.7)
绑定调用方的调用(0.7.2)
调试检查程序(>=0.0.1)
引导式sass(3.3.5.1)
autoprefixer导轨(>=5.0.0.1)
sass(>=3.3.0)
bootstrap-will_paginate(0.0.10)
你会同意吗
建造商(3.2.2)
byebug(5.0.0)
列化(=0.9.0)
coderay(1.1.0)
咖啡轨(4.1.0)
咖啡脚本(>=2.2.0)
钢轨(>=4.0.0,<5.0)
咖啡脚本(2.4.1)
咖啡脚本源
execjs
coffee脚本源(1.9.1.1)
列化(0.9.0)
调试检查程序(0.0.2)
弹性搜索(1.0.12)
elasticsearch api(=1.0.12)
弹性搜索传输(=1.0.12)
elasticsearch api(1.0.12)
多线程json
弹性搜索模型(0.1.7)
activesupport(>3)
弹性搜索(>0.4)
哈西
弹性搜索轨(0.1.7)
弹性搜索传输(1.0.12)
法拉第
多线程json
erubis(2.7.0)
execjs(2.5.2)
伪造者(1.4.2)
i18n(~>0.5)
法拉第(0.9.1)
多部分post(>=1.2,<3)
外国金融机构(1.9.10)
字体awesome rails(4.4.0.0)
钢轨(>=3.2,<5.0)
formatador(0.2.5)
globalid(0.3.6)
activesupport(>=4.1.0)
防护罩(2.12.8)
formatador(>=0.2.4)
倾听(>=2.7,1.0)
nenv(~>0.1)
notiffany(~>0.0)
撬动(>=0.9.12)
shellany(~>0.0)
雷神(>=0.18.1)
防护装置小型试验(2.3.1)
防护罩(~>2.0)
小型测试(>=3.0)
哈西(3.4.2)
i18n(0.7.0)
jbuilder(2.3.1)
activesupport(>=3.0.0,<5)
多重json(~>1.2)
jquery rails(4.0.4)
rails dom测试(~>1.0)
钢轨(>=4.2.0)
雷神(>=0.14,<2.0)
json(1.8.3)
听(3.0.1)
rb fsevent(>=0.9.3)
rb inotify(>=0.9)
丝瓜(2.0.3)
nokogiri(>=1.5.9)
伐木工人(1.0.9)
邮件(2.6.3)
mime类型(>=1.16,<3)
方法_来源(0.8.2)
mime类型(2.6.1)
迷你_回溯(0.1.3)
小型测试(>1.2.0)
轨道(>=2.3.3)
迷你端口(0.6.2)
小型测试(5.8.0)
小型测试报告员(1.0.5)
ansi
建设者
最小测试(>=5.0)
ruby进度条
多线程json(1.11.2)
多部分post(2.0.0)
nenv(0.2.0)
ngram(1.0.0)
nokogiri(1.6.6.2)
迷你端口(~>0.6.0)
诺蒂芬尼(0.0.6)
nenv(~>0.1)
shellany(~>0.0)
pg(0.17.1)
撬动(0.10.1)
coderay(~>1.1.0)
方法\u来源(~>0.8.1)
坡度(~>3.4)
美洲狮(2.11.1)
机架(>=1.1,<2.0)
机架(1.6.4)
机架测试(0.6.3)
机架(>=1.0)
轨道(4.2.2)
actionmailer(=4.2.2)
actionpack(=4.2.2)
actionview(=4.2.2)
活动作业(=4.2.2)
活动模型(=4.2.2)
活动记录(=4.2.2)
主动支持(=4.2.2)
捆绑机(>=1.3.0,<2.0)
栏杆(=4.2.2)
链轮轨道
rails-不推荐的_消毒液(1.0.3)
activesupport(>=4.2.0.alpha)
rails dom测试(1.0.7)
activesupport(>=4.2.0.beta,<5.0)
nokogiri(~>1.6.0)
rails-不推荐使用的_消毒剂(>=1.0.1)
rails html消毒剂(1.0.2)
丝瓜(~>2.0)
轨道系数(0.0.2)
轨道服务静态资产
rails\u stdout\u日志记录
轨道服务静态资产(0.0.4)
rails标准日志(0.0.4)
栏杆(4.2.2)
actionpack(=4.2.2)
主动支持(=4.2.2)
耙(大于等于0.8.7)
雷神(>=0.18.1,<2.0)
耙(10.4.2)
rb fsevent(0.9.5)
rb inotify(0.9.5)
外国金融机构(>=0.5.0)
rdoc(4.2.0)
ruby progressbar(1.7.5)
sass(3.4.16)
sass导轨(5.0.2)
钢轨(>=4.0.0,<5.0)
sass(~>3.1)
链轮(>=2.8,<4.0)
链轮轨道(>=2.0,<4.0)
倾斜度(~>1.1)
sdoc(0.4.1)
json(~>1.7,>=1.7.7)
rdoc(~>4.0)
shellany(0.0.1)
斜坡(3.6.0)
弹簧(1.3.6)
链轮(3.3.1)
机架(~>1.0)
链轮轨道(2.3.2)
actionpack(>=3.0)
activesupport(>=3.0)
链轮(>=2.8,<4.0)
sqlite3(1.3.10)
雷神(0.19.1)
螺纹安全(0.3.5)
倾斜(1.4.1)
涡轮链路(2.5.3)
咖啡架
tzinfo(1.2.2)
线程安全(~>0.1)
丑八怪(2.5.3)
execjs(>=0.3.0)
json(>=1.8.0)
web控制台(2.2.1)
activemodel(>=4.0)
毕