Home > front end >  Small white: written index. Js how to release the server service script?
Small white: written index. Js how to release the server service script?

Time:03-10

Just contact, a lot of concept is not clear, please advise!
Use javascript to write a index. Js service files, and debugging to normal, in the node environment when debugging is directly on the command line "node index. The js" start the service, found that turn off command line window service stopped,
Now want to index in the server. The js released, the service server centos tops the xampp and node. Js, don't know how to start the index, js the file services, and continue to run (node index, js, close the terminal stop service), on the lampp htdocs directory in the directory also not line,

CodePudding user response:

In addition, I heard that forever can start the service, NPM install forever - g when installation tips for "WARN deprecated" (installation node. Js version 14.15), after installation service forever start tip can't find command

CodePudding user response:

Use pm2,,