差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| 20220506_forever [2022/05/06 12:31] – 133.11.144.12 | 20220506_forever [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== Hyper-V test env. setting ====== | ||
| - | Install development tools, nodejs, npm | ||
| - | [sudo] npm install forever -g | ||
| - | |||
| - | start program | ||
| - | //Record a log to monitor all file changes in the folder// | ||
| - | forever start -l forever.log -a -o out.log -e err.log --workingDir / | ||
| - | | ||
| - | 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 ```lsof -i:3004```, and after ```kill```ing it, ```forever start``` can go smoothly.// | ||
| - | |||
| - | | ||
| - | Remove firewall | ||
| - | sudo systemctl stop firewalld | ||
| - | | ||