pm2, App name

官方文件是長這樣

1
pm2 start app.js           # Start app.jspm2 start app.js -- -a 23  # Pass arguments '-a 23' argument to app.js scriptpm2 start app.js --name serverone # Start a process and name it as serverone                                    # you can now stop the process by doing                                    # pm2 stop serverone

別名其實是很方便的東西…

按官方指示, 在實際上使用時, 你會發現….

參數搭配別名時會變成這樣..

原來是….別名在前, 參數在後

完工

Copyright © Bruce Huang All rights reserved.