4、一些查询命令

1、查看端口号状态
# netstat -ntlp // 查看所有的tcp端口;
#netstat -ntlp | grep 80 //查看所有80端口的使用情况

2、查看防火墙状态
#service iptables status
重启后生效:开启: #chkconfig iptables on,关闭:# chkconfig iptables off
即时生效,重启后生效:开启:service iptables start,关闭:service iptables stop

3、检查是否安装过mongodb
rpm -qa | grep mongodb 

4、查看用户单一进程最大文件打开数
ulimit -n

5、获取系统的所有 TCP/UDP sockets使用情况以及建立的ssh/ftp/http 等连接情况


猜你喜欢

转载自blog.csdn.net/sunny10189/article/details/79402979