Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Port is not being used, how will bind failure?     - To setup NOTRACK and TRACK of conntrack in iptables (Linux)

- Zookeeper Rights Management and Quota Management (Server)

- Gentoo: startx problem appears Failed to load module (Linux)

- Python type way of comparison (Programming)

- Cacti Linux-based system monitoring and alarm (Linux)

- Configuring a Linux operating system security management services Explain (Linux)

- git checkout generated in the use of temporary br (Linux)

- Linux command to view the system status (Linux)

- C language binary tree (Programming)

- Oracle data row split multiple lines (Database)

- How to configure HTTP Strict Transport Security (HSTS) (Linux)

- Source encountered problems and solutions when installing SaltStack (Server)

- Linux Samba server-side structures and the use of the client (Server)

- MySQL Server Time Synchronization Problem (Database)

- After installing Ubuntu 15.04, to do a few things (Linux)

- Hazelcast integration with MongoDB (Database)

- Use Linux built-in firewall to improve network access control (Linux)

- Install Unity 8 preview version of the desktop in Ubuntu (Linux)

- Vagrant failed to start, stuck in Waiting for VM to boot solution (Linux)

- Linux file time Comments ctime mtime atime (Linux)

 
         
  Port is not being used, how will bind failure?
     
  Add Date : 2018-11-21      
         
         
         
  Today, when the deployment of a webserver on a server,

I suggested bind port fails,

I habitually use netstat read, not occupied ah!

 

After the share issue out, to force colleagues searched ip_local_port_range this thing

This corresponds to what is / proc / sys / net / ipv4 / ip_local_port_range file

I found it after the content is open:

1024 65000

 

Then I checked, these two figures is the provision of a range of ports

And this document sets out the so-called "temporary port," the port range availability

For example, a program through socket request a service outside of the machine,

That requirement is within the socket communication is a double ip plus a port,

When we request only the specified ip and port to be requested, and does not specify the machine,

Then according to the Linux strategy that is automatically assigned a temporary port

And this ephemeral port range is desirable that ip_local_port_range

 

ip_local_port_range there is a hidden attribute is the port within the ephemeral range can not be bind

This is what I began to encounter the cause of the problem

 

When I want to edit this file to modify the scope of discovery can not be saved when modified

Then search for a moment, she said to be permanent changes, you can:

vim /etc/sysctl.conf

Modify the net.ipv4.ip_local_port_range

After saving execute sysctl -p allowed to take effect
     
         
         
         
  More:      
 
- Diagnose and resolve the SSH connection slow (Linux)
- VMware virtual machine can not start VMnet0 no Internet access and other issues (Linux)
- CentOS7 install JAVA notes (Linux)
- Four IDS intrusion detection tool under Linux environment (Linux)
- Dockerfile use to build a mirror-based CentOS 7 (Linux)
- Linux Apache server security (Linux)
- Keepalived achieve high availability Nginx Reverse Proxy (Server)
- To install GCC development environment under SUSE11 (Linux)
- 20 Top Linux commands (Linux)
- Install Rubinius testing Ubuntu 14.04 native threads (Linux)
- AngularJS - Custom instructions (Programming)
- Linux Mint 17 set up the Ruby environment (Linux)
- Whisker Menu 1.4.3 Install menu Linux (Linux)
- CentOS 6.x systems installation + NIC driver installation (Realtek PCIe GBE Family Controller for Linux) (Linux)
- Oracle 11g new features and associated SQL TUNING (Database)
- Ubuntu install VMware Workstation 11 tutorials at 14.04 / 14.10 (Linux)
- File sharing and fork function (Programming)
- Arrow keys, backspace key garbled in Python-2.7.5 Interactive Mode under CentOS 5.8 (Linux)
- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)
- The direct insertion sort algorithm (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.