Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Port is not being used, how will bind failure?     - Learning how to teach safety system to prevent your own IP leakage (Linux)

- DB2 Version SQLJ to access Oracle Server (Database)

- Linux basic introductory tutorial ---- simple text processing (Linux)

- U disk to install Windows and Ubuntu 15.04 dual system (Programming)

- Linux Shell Scripting Interview Question (Linux)

- RabbitMQ user roles and access control (Linux)

- Analysis of Java in the deep copy and shallow copy (Programming)

- How to use static, class, abstract method in Python (Programming)

- VirtualBox snapshots (Linux)

- struts2 completely the wrong way to capture 404 (Programming)

- 5 interesting Linux command line tips (Linux)

- Linux and SELinux Exploration Program Manager (Linux)

- MySQL 5.7.9 source compiler installation instructions (Database)

- WebLogic 12c Configuration Node Manager Managed Server (Database)

- CentOS install expect (Linux)

- Kali Linux virtualbox rc = Error 1908 workaround (Linux)

- Linux System Getting Started Tutorial: how to find information on Linux-embedded module (Linux)

- Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)

- Access.log Apache access log analysis and how to import it into MySQL (Server)

- Use Hexo quickly build and deploy a blog to Github (Server)

 
         
  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:      
 
- Binary tree traversal algorithm summary (recursive and non-recursive) (Programming)
- MySQL backup tool to back up mydumper (Database)
- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)
- Red-black tree in C ++ (Programming)
- Linux Proc File System Experiment (Linux)
- Fedora10 use Git version Configuration Management (Linux)
- Distributed transaction management Spring declarative transactions (Programming)
- Oracle database NUMBER (x, y) data types (Database)
- CentOS 6.5 installation and configuration Cobbler (Server)
- Oracle 12C modify spfile path (Database)
- Examples of testing and installation Mesos on CentOS (Linux)
- Nginx Proxy timeout Troubleshooting (Server)
- Docker Basic and Advanced (Linux)
- APR for Tomcat installation under Linux (Server)
- 3 tips Linux command (Linux)
- Cacti monitoring service Nginx (Linux)
- Java regular expressions examples (Programming)
- Golang use Oracle database on Ubuntu 14.04 (Linux)
- Linux Getting Started Tutorial: How to set up a static MAC address on VMware ESXi virtual machine (Mobile)
- PostgreSQL query result area is removed and precision (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.