Two ways to run nodejs <Note>

On mac:

1. Method 1: Run with IDE

Configure the js files that need to be run:

Configure and run

 

2. Method 2 is executed through linux background

Find the js file that needs to be run and execute node xx.js in the background

 

 

3. Method 3: Batch operation

The operation of batch js needs to be configured in the file, which will be added later. …

 

On windows:

 Open cmd->run dos->find the stored js file, use node XX.js to run, the same way

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325305025&siteId=291194637