Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that the CVM port is occupied?

Shulou Source: shulou.com Published: 2022-06-03 05:49:14 09月21日 Update

Cloud Virtual Machine port occupied how to solve? During the operation of Cloud Virtual Machine, we should pay attention to whether the ports of the system are occupied. The more ports open to the outside world, the greater the risk of system increase.

Check Port Process under Linux System of Cloud Virtual Machine

lsof command

$ sudo lsof -i -P -n$ sudo lsof -i -P -n | grep LISTEN$ doas lsof -i -P -n | grep LISTEN ### [OpenBSD] ###

netstat command

You can use netstat to check ports and applications

Linux netstat syntax

$ netstat -tulpn |grep LISTENFreeBSD / MacOS X netstat Syntax $ netstat -anp tcp| grep LISTEN$ netstat -anp udp | grep LISTEN

OpenBSD netstat syntax

$ netstat -na -f inet | grep LISTEN$ netstat -nat | grep LISTEN

Cloud Hosting Windows System Check Port Process

Common commands to check port usage for Windows operating systems:

netstat -bano | morenetstat -bano | grep LISTENINGnetstat -bano | findstr /R /C:"[LISTEING]"

Cloud Virtual Machine is simple and easy to use. You can reinstall the system, replace the line, restore the backup, restart, configure FTP and IIS with one click.

As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing Cloud Virtual Machine for the majority of Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, simple and easy to use, high service availability and high cost performance." It is specially customized for enterprises to go to the cloud and can meet the rich and diversified application scenarios of users.

Tags: Port service system server inspection enterprise command user syntax provider process ease of use application security operating system professional dedicated industry host Internet Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Xiaomi Shulou Information Shulou Tech Info