【发布时间】:2015-09-30 05:59:23
【问题描述】:
我对我的数据库做了一些改动,但是当我重新启动 rails 服务器时它没有反映出来。我用
sudo service unicorn stop
和
sudo service unicorn start
Unicorn 启动,但是当我运行以下代码行时,
root@moneytree:/home/zhall/zoulfia# rails s -p80 -e
production -- binding=moneytree.space
我明白了:
=> Booting Unicorn
=> Rails 4.2.0 application starting in production
on http://moneytree.space:80
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
E, [2015-07-11T09:34:29.299617 #30491] ERROR --
: adding listener failed addr=178.62.19.65:80 (in use)
E, [2015-07-11T09:34:29.300071 #30491] ERROR --
: retrying in 0.5 seconds (4 tries left)
.........
...........
Exiting
/usr/local/rvm/gems/ruby-2.2.1/gems
/unicorn-4.9.0/lib/unicorn/socket_helper.rb:185:in `bind':
Address already in use - bind(2) for 178.62.19.65:80 (Errno::EADDRINUSE)
为什么 unicorn port80 不刷新?非常非常欢迎任何帮助。
【问题讨论】:
标签: mysql ruby-on-rails database server unicorn