1)ps  查看进程

     ps -elf | grep -c mingetty

2 ) netstat 查看端口

     netstat -lnp (打印当前系统启动哪些端口)

     netstat -an (打印网络连接状况)

     netstat -an | grep 80 (查看80端口的服务的 ip)