markdown 禁用系统监听端口111
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 禁用系统监听端口111相关的知识,希望对你有一定的参考价值。
If your systemd listens on port 111 but you don't want that, please do the following steps:
#### Verify it's listening on port 111 with netstat or ss:
```
# ss -tpna|grep 111
LISTEN 0 128 *:111 *:* users:(("systemd",pid=1,fd=39))
LISTEN 0 128 :::111 :::* users:(("systemd",pid=1,fd=38))
```
#### Disable rpcbind:
```
# systemctl stop rpcbind
# systemctl disable rpcbind
# systemctl mask rpcbind
# systemctl stop rpcbind.socket
# systemctl disable rpcbind.socket
# systemctl status rpcbind
● rpcbind.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead) since Sun 2017-12-17 15:31:11 CET; 3min 51s ago
Main PID: 10920 (code=exited, status=0/SUCCESS)
Dec 13 13:28:35 sys.example.com systemd[1]: Starting RPC bind service...
Dec 13 13:28:35 sys.example.com systemd[1]: Started RPC bind service.
Dec 17 15:31:11 sys.example.com systemd[1]: Stopping RPC bind service...
Dec 17 15:31:11 sys.example.com systemd[1]: Stopped RPC bind service.
```
#### Verify it's no longer listening:
```
# ss -tpna|grep 111
```
以上是关于markdown 禁用系统监听端口111的主要内容,如果未能解决你的问题,请参考以下文章
NFS简单使用
centos安全策略-禁用和关闭常见端口
禁用rabbitmq 5672端口
Linux下如何查看哪些端口处于监听状态
linux系统中怎么禁用端口?
ubuntu如何判断某个端口是不是被隐藏