4

For some time I am developing an application in Nodejs. And I asked where in the Linux file system on a server was the best place to leave it running. Since PHP5 and Apache2 is in /var/www , and tomcat has its own system.

I wonder where is the best place?

Kev
  • 7,877
  • 18
  • 81
  • 108
AlejoNext
  • 43
  • 1
  • 4

1 Answers1

5

It doesn't really matter where you put your Node.js but more how you set up this place. The right permissions are most important.

Possible locations (from a logical point of view) are:

/opt/<appname>
/usr/local/share/<appname>
/var/nodejs/<appname>
Alex
  • 7,939
  • 6
  • 38
  • 52
Christopher Perrin
  • 4,811
  • 19
  • 33