Results 1 to 1 of 1

Thread: ssh on hostgator vps with node / npm / mongodb

  1. #1
    Join Date
    May 2010
    Location
    Sacramento, CA
    Posts
    91
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Question ssh on hostgator vps with node / npm / mongodb

    Hi all,
    I know this isn't related to script or code but i'm having a hell of a time with my vps and getting node.js and mongo working correctly on my hostgator vps. If anyone can assist me I'd greatly appreciate it. I have installed nodejs and mongodb through 'yum install nodejs' then npm mongodb' and I can even start 'mongod'. When I close my terminal and reopen it, I can't reach 'mongo', 'npm' or 'node' it returns with "command not found" but if I run 'sudo reboot' all the above commands work!? Can anyone explain this to me and provide advice?

    Thanks!

    **EDIT**I realized when I run "sudo reboot" while logged into ssh it kicks me back to my local terminal environment..that's why my commands were working. So my original problem remains.. I lose my commands/installs after closing out of my ssh connection
    Last edited by crobinson42; 03-13-2014 at 06:43 AM.

Similar Threads

  1. node.js does not work
    By hamd in forum JavaScript
    Replies: 0
    Last Post: 09-22-2011, 07:13 AM
  2. node.js
    By ggalan in forum JavaScript
    Replies: 7
    Last Post: 04-09-2011, 03:34 PM
  3. node.js
    By ggalan in forum JavaScript
    Replies: 0
    Last Post: 10-25-2010, 11:34 PM
  4. Dom node creator??
    By shachi in forum JavaScript
    Replies: 19
    Last Post: 09-09-2006, 09:48 AM
  5. add a new node to an existing xml
    By yingzhao in forum PHP
    Replies: 1
    Last Post: 05-24-2006, 08:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •