- 不挂端地运行命令,即后台执行或者后台启动
nohup command_line [args] &
- 查看后台进程
jobs -l
- 查找进程
ps -aux|grep chat.js
- 查看使用某个端口的进程
lsof -i:8090
netstat -nap|grep 9200
- 终止后台运行的进程
kill -9 process_number
nohup command_line [args] &
jobs -l
ps -aux|grep chat.js
lsof -i:8090
netstat -nap|grep 9200
kill -9 process_number