Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Port is not being used, how will bind failure?     - BusyBox making the file system (Linux)

- Keepalived achieve high availability Nginx Reverse Proxy (Server)

- Android Studio Clear Project or Rebuild Project Error (Linux)

- Oracle 12c PDB Analysis (Database)

- Linux non-graphical interface to install Oracle Database (Database)

- Limit the use of the request being Nginx Flood attack (Linux)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- Ubuntu GCC, G ++ and fortran Version Switch (Linux)

- How to Check notebook CPU temperature in Ubuntu (Linux)

- Graphical development environment to build Android under Ubuntu 11.04 (Linux)

- Redis-2.8.17 installation and configuration process some errors (Linux)

- Java polymorphism and exception handling (Programming)

- Linux desktop system using the remote server in clear text ssh password (Server)

- Android graphic introduction NDK installation and simple jni demo implementation (Linux)

- The three-way division of the sorting algorithm Quicksort (Programming)

- Elaborate .NET Multithreading: Using Task (Programming)

- Java and C / C ++ data conversion when network communication (Programming)

- Configure the ASM process on Red Hat Linux 6.5 (Database)

- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)

- Java Concurrency - multiple threads of HelloWorld (Programming)

 
         
  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:      
 
- Generators and iterators in Python (Programming)
- Linux iptables firewall settings (Linux)
- MySQL completely uninstall and install Configuring Character Sets under Linux (Database)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
- Puppet subcommands Introduction (Server)
- APR for Tomcat installation under Linux (Server)
- See Linux kernel, CPU, memory, and various versions of the command module and means (Linux)
- Install Ubuntu text editor KKEdit 0.2.10 (Linux)
- Detailed installation of CentOS 6.x (Linux)
- Oracle Client + PL SQL Developer enables remote access to the Oracle database (Database)
- Security Features Linux and Unix operating system, programming (Linux)
- Explore Android SQLite3 multithreading (Programming)
- struts2 completely the wrong way to capture 404 (Programming)
- Linux --- process handle limit summary (Linux)
- Embedded Linux to solve the problem in the time zone (Linux)
- Android Qemu GPS module (Programming)
- Linux kernel log --dmesg (Linux)
- Nginx Beginner Guide (Server)
- MySQL innodb_table_stats table does not exist solution (Database)
- Hadoop 2.6.0 standalone configuration and pseudo-distributed configuration under Ubuntu 14.04 (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.