How do I turn off NGINX and Unicorn on the Ruby on Rails droplet?

Posted October 18, 2014 8.1k views

I am trying to do the “Rails Tutorial”, and I did a Ruby on rails on ubuntu droplet, but I can’t get NGINX and Unicorn to stop, and allow me to run my little initial test webrick. I have tried service nginx stop and service unicorn stop, and although the web page stops showing up, I cant get it to show my webrick page at port 3000.

I have pretty much accepted that I will just have to delete my server and start from scratch on an empty ubuntu server, how unpleasant.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

You had the correct command to shutdown nginx and unicorn, so I’m not sure what else you did wrong here but there’s nothing DigitalOcean could really do.

:( well maybe there is issues with the rails on ubuntu image, i will try a fresh rails install on just an ubuntu image later

  • No offense, but trying to place the blame on the person configuring the server rather than every other external actor imaginable would probably help diagnose the issue better.

    “doesn’t work” is meaningless and if you had at least an error message to show it would help greatly.

There is no error message. I turn off unicorn and nginx and try to run webrick, and local host:3000 shows nothing at all.

And thanks for being a prick to me after I said I’d try it again. You guys are assholes.

  • If you see nothing rather than an error message, that means webrick is running and responding. You might want to check logs to see why it’s not displaying your page. But I apologize for trying to help. I do not work for DigitalOcean.

  • Yeah, well I don’t appreciate your non-help, champ. What you see when webrick is running is a default rails screen, before you’ve started editing the views that is. What I see is a failed connection message because there is no page there, not a white page. Thanks for letting me know you don’t work for Digital Ocean though.

  • That error message would’ve been an awesome answer to the ‘error message’ question....

    But okay, I’m done. Good luck.

  • you fucking dipshit rando

  • Ok, I’ll stop being an asshole dipshit rando fuckoffer and just tell you the exact solution to your problem instead, because I really mean to help even though you probably don’t believe me.

    I just created a brand new droplet on

    The image I picked was “Ruby on Rails on Ubuntu 14.04 (Nginx + Unicorn)”

    I created the droplet with 512MB of RAM in NYC3.

    I logged over SSH to the “root” user using my SSH key.

    Here are the commands I ran, from the point I got logged on until webrick worked (see output below):

    # service nginx stop
    # service unicorn stop
     * Stopping Unicorn web server unicorn                          [ OK ]
    # cd /home/rails
    # bin/rails server
    => Booting WEBrick
    => Rails 4.0.2 application starting in development on
    => Run `rails server -h` for more startup options
    => Ctrl-C to shutdown server
    [2014-10-18 17:40:24] INFO  WEBrick 1.3.1
    [2014-10-18 17:40:24] INFO  ruby 2.1.3 (2014-09-19) [x86_64-linux]
    [2014-10-18 17:40:24] INFO  WEBrick::HTTPServer#start: pid=1630 port=3000

    I then browse to and everything works fine.

    You can even check yourself. I’ll delete the VM in a couple hours.

    Good luck. I mean it.

  • lol, ok, since you are so dedicated I am sorry I hurt your feelings. I apologize. I am just upset about spending many hours on this, on my few free evenings. Anyway, what I did differently was that I created a new user for my install of the michael hartl rails (4.2.2) and installed multiuser RVM. Then I created a new rails project inside the home folder for that user. Then I sshed into root to turn off unicorn and nginx. I think it will work better on a generic linux install because the rails image appears to be some like heroku alternative where you are just supposed to upload your completed project and not create users. Anyway thanks for your input.