1.基本命令
[yueredhat@localhost /]$ cd /home/yueredhat/
[yueredhat@localhost ~]$ mkdir yueredhat
[root@localhost /]# cd /root
//查询已启动的网络监听服务
[root@localhost ~]# netstat -tulnp
//查询cpusd已启动的网络监听服务
# netstat -tulnp | grep 'cpusd'
//停止tomcat7服务
# sudo /etc/init.d/tomcat7 stop
//开机启动
# chkconfig cpusd on
//查询是否有安装包
# yum search tomcat7
# yum install tomcat7