20220506_forever

Hyper-V test env. setting

Install development tools, nodejs, npm

[sudo] npm install forever -g

start program

forever start --workingDir /home/liuguanting/mitosearch/Mitosearch -c "npm start" ./

Stop program

forever list
forever stop [order]
lsof -i:3004
kill [pid]

After running forever stop, the reason why forever start does not run normally is that even if the forever project is stopped, the port is still occupied, you can see the pid of the occupied project by using losf -i:3004, and after killing it, forever start can go smoothly.

Remove firewall

sudo systemctl stop firewalld
  • 20220506_forever.1651837081.txt.gz
  • 最終更新: 2022/05/06 11:38
  • by 133.11.144.12