The TCP port range of the Linux system can be modified. Appropriately adjust the TCP port range to meet individual needs. How do you modify the TCP port range? Let's take a look at the examples.
In the Customize Start service when you want to use port 8370, but found nginx or node port has been occupied, can not start. However, lvs has already applied for it, and it is more troublesome to change the port. So you can modify the /proc/sys/net/ipv4/ip_local_port_range parameter to enable the port assigned by the tcp protocol to be enabled from a larger range, so that node or nginx will not occupy a smaller port.
Code is as follows
echo ‘32768 61000’ 》 /proc/sys/net/ipv4/ip_local_port_range
Added: Temporary Port Range Adjustment
You You can use the netstat command to show how many connections are in this state: [If it is a production environment, it is best to test first, then consider the appropriate range of a port]
The code is as follows
shell Netstat -n
Unix system can uninstall the installed program through the command, but there are problems when the
In China, users like to use Alibaba Cloud server, because this is the best cloud server in China, bu
Linux system operation, yum source installation prompt ERROR: dbus error, many peop
Some Linux users encountered vsftp 500 OOPS when using vsftp: can not change directory: /home/this p
How to solve the difference in the used space detected by the Linux df and du commands?
How to manually upgrade Gentoo and its kernels
Three ways to configure Java environment variables in Linux
What is the role of inode nodes in Linux?
Linux operation and maintenance needs to master the command summary
How to use the df command to view Linux disk space?
Linux system prompts can not get the lock /var/lib/dpkg/lock how to do?
Ubuntu 14.04 steps to install Wine
The specific steps to install Cobbler under Linux
Ubuntu system remote boot operation example
Win10 login password how to cancel, win10 password cancel tutorial
Win 7 system quickly get started experience
LOL official mall around the hand will be on the line LOL around the hand how to do
Win8 upgrade Win8.1 error code 0x800703F8 solution
Can the classic machine play win7 play smoothly?
Nginx configuration refuses or allows IP
Win XP can not install DX 9 solution
How to set a sleep button on the desktop of win7 Ultimate computer?
Win10 Mobile 10536.1004 preview version simple to get started video