web1服务器记录

检测到对外攻击:宽带占用超过100%
关闭rpcbind服务
chkconfig rpcbind off

故障截图0919

腾讯云上centos7装好以后,除了监听22端口(sshd的服务)外,还监听了111端口,而且监听的是0.0.0.0,担心存在安全风险,于是想禁用掉。

起111端口的进程是systemd,在网上查了下,实际用的是rpcbind。大部分服务是不依赖于rpcbind的,只有NFS需要用到这个服务,所以可以禁掉。

以下是禁掉该rpcbind服务的命令:

# 停止进程
$ systemctl stop rpcbind.socket
$ systemctl stop rpcbind

# 禁止随开机启动
$ systemctl disable rpcbind.socket
$ systemctl disable rpcbind
附:rpcbind的说明from man rpcbind

查看宽带资源使用情况

iftop -i eth2 -n -P

评论已关闭。