mysql - Address already in use - bind(2) for 178.62.19.65:80 (Errno::EADDRINUSE), how do I restart unicorn on port80 -


i have done few alterations database not reflected when restart rails server. use

 sudo service unicorn stop 

and

 sudo service unicorn start 

unicorn starts when run following line of code,

 root@moneytree:/home/zhall/zoulfia# rails s -p80 -e       production --   binding=moneytree.space 

i get:

  => booting unicorn    => rails 4.2.0 application starting in production        on http://moneytree.space:80   => run `rails server -h` more startup options   => ctrl-c 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 in use - bind(2) 178.62.19.65:80 (errno::eaddrinuse) 

why doesn't unicorn port80 refreshed? very, welcome.

all needed set 'preload_app' 'false' in /etc/unicorn.config file. after changes application code reflected when unicorn restarted.


Comments