Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Port is not being used, how will bind failure?     - Linux user groups, file permissions Detailed (Linux)

- ORA-28000 the account is locked fault simulation (Database)

- Java transient keyword (Programming)

- Unable to solve the official version of Android Studio online update problem (Linux)

- Configuration OpenOCD + FT2232 under Ubuntu (Linux)

- Check with Hello World Docker installation (Server)

- Linux IO redirection (Linux)

- Use Python to perform system commands common usage (Programming)

- Setting Linux desktop environment, achieve HiDPI display support (Linux)

- Open source backup software installed on Ubuntu Systemback 1.6.201 (Linux)

- impdp error ORA-39001, ORA-39000, ORA-31619 (Database)

- Lua4.0 interpreter documents (Programming)

- C ++ pointer two third memory model (Programming)

- Realization of Linux operating system illegal IP censorship (Linux)

- Linux, grep, sed usage (Linux)

- MySQL binary packages install for RedHat Linux Enterprise 6.4 (Database)

- File permissions under Linux (Linux)

- About MongoDB query method according to fuzzy field (Database)

- Oracle 11g maintenance partitions - Adding Partitions (Database)

- Linux installation notes under GAMIT (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:      
 
- Large computer network security policy Experience (Linux)
- Python uses multi-process pool (Programming)
- Echo Command Examples (Linux)
- Storm how to assign tasks and load balancing (Programming)
- Java, extends and implements Usage (Programming)
- Modifying the system registry protection server security (Linux)
- PostgreSQL query result area is removed and precision (Database)
- Installation and configuration of phpMyAdmin under CentOS (Database)
- Java in several ways of using MongoDB (Programming)
- Linux vi command list (Linux)
- Use libpq under Ubuntu 14.04 (Linux)
- Using Libreoffice under ubuntu (Linux)
- Linux iptables: Composition Rules (Linux)
- Android Service Lifecycle and usage (Programming)
- Ubuntu 14.04 + xRDP + Xfce implement Windows Remote Desktop Connection (Linux)
- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)
- To learn from scratch OpenWrt perfect tutorial (Linux)
- Linux maximum number of threads and limit the number of queries the current thread (Linux)
- Linux install Maven and SVN client (Linux)
- ORA-12545: Connection failed because the target host or object does not exist (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.