#2 楼 @zhaoguobin 好,3q
#1 楼 @saberma 报一堆错误。
scott@scott-ThinkPad-T420:~/work/dituhui$ rake sunspot:solr:start --trace
** Invoke sunspot:solr:start (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:start
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)
rake aborted!
Server is already running with PID 0
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_solr-1.3.1/lib/sunspot/solr/server.rb:62:in start'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_solr-1.3.1/lib/sunspot/solr/tasks.rb:12:in
block (3 levels) in '
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
block in execute'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
execute'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in block in invoke_with_call_chain'
/home/scott/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
invoke'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block (2 levels) in top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block in top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:66:in block in run'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run'
/home/scott/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/bin/rake:33:in
'
/home/scott/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in load'
/home/scott/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in
顶起
@ywencn 谢谢,我之前就是按https://github.com/websymphony/Rails3-Paperclip-Uploadify 这个做的,就像是@huacnlee 说的,貌似没那么稳定,有时候不行,刷新几次之后就行啦。谢谢两位。我在研究一下关掉 verify_authenticity_token 的这个方法吧。
@ywencn 还是不行啊。
log: Processing by DataController#parse_csv as JSON Parameters: {"Filename"=>"gdp.csv", "_http_accept"=>"application/javascript", "folder"=>"/data/", "fileext"=>"*.csv;", "authenticity_token"=>"undefined", "_dituhui_session"=>"BAh7CkkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjoGRVRbCEkiCVVzZXIGOwBGWwZpCUkiIiQyYSQxMCRyc3dRVlI2Vk1uSkRSSkFycmN2YXdlBjsAVEkiHXdhcmRlbi51c2VyLnVzZXIuc2Vzc2lvbgY7AFR7BkkiFGxhc3RfcmVxdWVzdF9hdAY7AEZJdToJVGltZQ1CCBzAUmRAVgk6C0Bfem9uZUkiCFVUQwY7AFQ6DW5hbm9fbnVtaQKiAjoNbmFub19kZW5pBjoNc3VibWljcm8iB2dASSIKZmxhc2gGOwBGbzolQWN0aW9uRGlzcGF0Y2g6OkZsYXNoOjpGbGFzaEhhc2gJOgpAdXNlZG86CFNldAY6CkBoYXNoewY6C25vdGljZVQ6DEBjbG9zZWRGOg1AZmxhc2hlc3sGOw9JIj50cmFuc2xhdGlvbiBtaXNzaW5nOiB6aC1DTi5kZXZpc2Uuc2Vzc2lvbnMudXNlci5zaWduZWRfaW4GOwBGOglAbm93MEkiD3Nlc3Npb25faWQGOwBGSSIlMGU2ZjViYTYyNjI2MmUwYjBlMTNjM2E3ZGZiNzM1MjgGOwBUSSIQX2NzcmZfdG9rZW4GOwBGSSIxUFBkbnZHM3A4WXpKWDlaNjMxOXFDaXhRZmxhdVdKRUw3Vm43bDBhRWl1Zz0GOwBG--2fab5f7ebe958ce6fbbd46de38a88660a51d54e1", "Filedata"=>#>, "Upload"=>"Submit Query"} WARNING: Can't verify CSRF token authenticity
#13 楼 @jinleileiking 感谢,按你的方法终于搞定啦。
@chenzhong 你这个问题解决啦吗,我还没有解决,即使现在配置好了,重启之后还是不行。
哈哈,不错
呜呜~~~~换了,不用这个,现在要试试 vim 啥的吧。
mac 期待中
貌似这个东西起点有点高,不怎么好学。
try