Disable common ports in linux

Source: Internet
Author: User
Check what services are running on the port lsof-I: 123. this 123 indicates the port number you want to view. disable ports not commonly used in LINUX and disable Port 111/etc/init. d/portmapstop close port 25/etc/init. d/sendmailsdrop disable port 631/etc/init. d/cupsstop close 9... view the services running on the port
Lsof-I: 123 this 123 represents the port number you want to view
Disable ports not commonly used in LINUX
Close Port 111
/Etc/init. d/portmap stop
Disable port 25
/Etc/init. d/sendmail srop
Close port 631
/Etc/init. d/cups stop
Close Port 958
/Etc/init. d/nfslock stop
Close Port 37540
/Etc/init. d/avahi-daemon stop
Chkconfig-level 345 service name off
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.