后台运行tomcat和mysql的方法

nohup ./catalina.sh run &

/usr/bin/mysqld_safe -urser=root &

可以用jobs查看后台运行状况: