GDGZ-KVPS-SMS01:~ # netstat -tnlp|grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13916/sshd
tcp 0 0 :::22 :::* LISTEN 13916/sshd
#查找22端口对应的服务
GDGZ-KVPS-SMS01:~ # which sshd
/usr/sbin/sshd #查找sshd对应的文件
GDGZ-KVPS-SMS01:~ # rpm -qf /usr/sbin/sshd
openssh-5.1p1-41.24 #查找sshd对应文件的rpm包
GDGZ-KVPS-SMS01:~ # rpm -qc openssh|grep init
/etc/init.d/sshd #查找的启动/关闭方法
















