Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Port is not being used, how will bind failure?     - Linux server security - the web server configuration (Linux)

- Use window.name + iframe cross-domain access to data Detailed (Programming)

- Ubuntu 14.04 installation configuration GNOME Classic interface (Linux)

- Visual Studio Code experience (Linux)

- ld.so.conf.d profile (Linux)

- RHEL 6.6 install GNOME desktop environment (Linux)

- Share useful bash aliases and functions (Linux)

- Linux system man help tips (Linux)

- DOM event handlers add notes (Programming)

- Depth understanding of C language (Programming)

- Debian 7.6 install Nvidia graphics driver (Linux)

- Java Generics Introduction --HashMap summary (Programming)

- CentOS 7 install Hadoop-cdh-2.5 on Mesos (Server)

- Linux iptables: Composition Rules (Linux)

- Swift rewrite initialize method of navigation controller class (Programming)

- Category prevent DoS attacks against Linux (Linux)

- Understand the profound discussion of some of the options for wireless encryption (Linux)

- RHEL7 Apache MPM configuration (Server)

- Linux Security trust with users (Linux)

- Using C / C ++ extensions Python (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:      
 
- How to Create a file can not be changed under Linux (Linux)
- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)
- Using Android Studio integrated development environment to build Android (Linux)
- Git Getting Started tutorial (Linux)
- Hibernate Search and Lucene quick introduction (Linux)
- Impact test noatime Linux file access time (Linux)
- CentOS6.7 text installation system (Linux)
- How to use secure FTP file transfer (Server)
- dmidecode command Detailed (Hardware information) (Linux)
- Linux operating system Start Tutorial: Xmanager Remote Access Linux graphical interface (Linux)
- Ubuntu uses under KVM + Qemu virtual machine build (Linux)
- Oracle to use full-text indexing (Database)
- Linux file compression and file system packaged with instructions (Linux)
- Oracle 11g Export guide problem not an empty table (Database)
- Build their own recursive DNS server (Server)
- SQL statement to repair SQL Server database (Database)
- Simple steps allows you to build a more secure Linux server (Linux)
- C ++ Supplements - malloc free and new delete the same and different (Programming)
- How to update the ISPConfig 3 SSL Certificates (Server)
- Spring inject a type of object to enumerate (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.