`

关于unicorn_rails 启动失败的问题

阅读更多
1. 启动 unicorn_rails 报如下信息
master failed to start, check stderr log for details

2. 查看日志详细信息 cat  log/unicorn.stdeer.log 此处 tail -f log/unicorn.stdeer.log 则看不到如下信息
 
I, [2011-07-10T03:35:28.433571 #15886]  INFO -- : unlinking existing socket=/data/projects/entos/tmp/nginx/sockets/unicorn.sock
I, [2011-07-10T03:35:28.434259 #15886]  INFO -- : listening on addr=/data/projects/entos/tmp/nginx/sockets/unicorn.sock fd=3
I, [2011-07-10T03:35:28.434875 #15886]  INFO -- : listening on addr=0.0.0.0:8080 fd=5
I, [2011-07-10T03:35:28.435615 #15886]  INFO -- : Refreshing Gem list

Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
  * bin_path
  * searchd_binary_name
  * indexer_binary_name


For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html          

/usr/local/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6/lib/mysql2/client.rb:37:in `connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2::Error)


3. 分析解决
  是项目启动失败,包含以下情况:mysql 服务器连接不上,缺少服务启动的库
   config/sphinx.yml ,Can't connnet to local Mysql
  解决这两处错误后,重新
unicorn_rails -c  config/unicorn.rb -E prodcution -D 
 
日志显示如下,便算启动成功
worker=0 ready
master process ready
worker=1 ready
worker=2 ready
worker=3 ready
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics