Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to turn off rpc.statd service on Linux system

Shulou Source: shulou.com Published: 2022-06-01 15:50:12 09月11日 Update

This article introduces the knowledge of "how to shut down the rpc.statd service on the Linux system". Many people will encounter this dilemma in the operation of the actual case, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In order to reduce the hidden dangers of linux hosts, we need to cancel or delete some unwanted services as much as possible.

We can take a look at which ports are open at present.

The code is as follows:

[root@localhost linsc] # nmap 127.0.0.1

Starting nmap 3.70 (http://www.insecure.org/nmap/) at 2007-12-05 21:28 CST

Interesting ports on localhost.localdomain (127.0.0.1):

(The 1652 ports scanned but not shown below are in state: closed)

PORT STATE SERVICE

21/tcp open ftp

22/tcp open ssh

25/tcp open smtp

80/tcp open http

766/tcp open unknown

3306/tcp open mysql

8009/tcp open ajp13

8080/tcp open http-proxy

Nmap run completed-1 IP address (1 host up) scanned in 0.194 seconds

You can see that port 766 is open and a unknown service is running. What kind of service is this? I don't know at this time.

The code is as follows:

[root@localhost linsc] # netstat-lp

You can see the following.

The code is as follows:

Tcp 0 0 *: 766 *: * LISTEN 3128/rpc.statd

Indicates that rpc.statd is running.

Just to see what the command 766 is, another way to listen to the port.

The code is as follows:

[root@localhost linsc] # lsof-iRose 766

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

Rpc.statd 3128 rpcuser 8u IPv4 6467 TCP *: 766 (LISTEN)

The command to view rpc.statd is the documentation for the installation package.

The code is as follows:

[root@localhost linsc] # rpm-qf / sbin/rpc.statd

Nfs-utils-1.0.6-80.EL4

Check what's at the beginning of nfs.

The code is as follows:

[root@localhost linsc] # ls / etc/init.d/nfs*

/ etc/init.d/nfs / etc/init.d/nfslock

View nfslock status

The code is as follows:

[root@localhost linsc] # / etc/init.d/nfslock status

Rpc.statd (pid 3128) is running...

[root@localhost linsc] # vi / etc/services

Find the nfs inside, comment it out in front of it, and restart it

The code is as follows:

[root@localhost linsc] # nmap 127.0.0.1

Starting nmap 3.70 (http://www.insecure.org/nmap/) at 2007-12-05 21:55 CST

Interesting ports on localhost.localdomain (127.0.0.1):

(The 1653 ports scanned but not shown below are in state: closed)

PORT STATE SERVICE

21/tcp open ftp

22/tcp open ssh

25/tcp open smtp

80/tcp open http

3306/tcp open mysql

8009/tcp open ajp13

8080/tcp open http-proxy

Nmap run completed-1 IP address (1 host up) scanned in 0.194 seconds

This is the end of the content of "how to turn off the rpc.statd service on Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Code service content current port run system command more knowledge utility learning next host method dilemma actual as much as possible beginning situation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Shulou Technology Docker Redmi