后台启动并记录输出命令:

nohup grunt server &>/tmp/elasticsearch-head &
nohup /opt/apache-activemq-5.9.0/bin/activemq start &>/dev/null &

 

查看进程详细包含用户和它启动的时间

ps aux | grep xxx