In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.