ubuntu中如何查询某个程序的运行状态?

sudo systemctl status mysql;这是在查询mysql的运行状态。如果改为sudo systemctl status nginx;那就是在查询nginx的运行状态。