Current location - Music Encyclopedia - Today in History - How to view the opening of linux ports How to view linux ports
How to view the opening of linux ports How to view linux ports
What's the use of linux to check the occupied ports?

Generally used to troubleshoot problems, such as port occupation, service failure and so on.

Linux view sftp port number?

The default port number of SFTP is 22, so you can log in directly with-p.

Sftp and ftp have almost the same syntax and functions. Sftp is a part of ssh, which is a safe way to transfer files to the blogger server. In fact, ssh software package already contains a secure file information transfer subsystem named SFTP (Secure File Transfer Protocol). SFTP itself has no separate daemon, and it must use the sshd daemon.

Linux view available ports?

The port number of service port in TCP/IP protocol ranges from 0 to 65535, but it is limited in Linux. Generally, the port range of local TCP/UDP is defined in/proc/sys/net/IPv4/IP _ local _ port _ range. You can define net. Ipv4.ip _ local _ port _ range =102465000 in /etc/sysctl.conf, and the available port range becomes 1024~65000.

View commands for linux aggregate ports?

Check the number of concurrent requests of Apache and its TCP connection status: Linux command: netstat-n | awk'/TCP/{++s [$ nf]} end {for (ains) printa, S [a]}' example of return result: last _ ack5syn _ recv30established1597fin _ wait151fin _ wait2504time _ wait1057 where syn _ wait establishment means normal. TIME_WAIT indicates the number of requests that have been processed and are waiting for the timeout to end. See f), when the mysql server starts, it will read this file and set the relevant running environment parameters. One parameter in this file is portPort=3306# to set the default port used by mysql clients when connecting to the server. Find my.ini (my.cnf in Linux system) in mysql running directory, and just check this parameter.