Killing will re-start the rails s Process

Source: Internet
Author: User

After running rails S, the following error occurs:

/. Rvm/gems/ruby-1.9.3-p374/gems/eventmachine-1.0.3/lib/eventmachine. RB: 526: In 'start _ tcp_server ': No acceptor (port is in use or requires root privileges) (runtimeerror)

Solution 1: rails S-p4000 enables another port. 4000 can be replaced by any other number.

If you do not want to enable other ports, run the second solution:

Run:

$ PS ax | grep rails
Running result:

12694 pts/0 tl xx/. rvm/rubies/ruby-1.9.3-p374/bin/Ruby script/rails s
17762 pts/8 SL + XX/. rvm/rubies/ruby-1.9.3-p374/bin/Ruby script/rails C
19554 pts/0 S + grep rails

Run: Kill-9 12694 to kill the process.

Rails S is fine.

 

 

Killing will re-start the rails s Process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.