---
title: reuseport特性
description: "在使用Nginx过程中，过多的并发网络连接会导致对socket的操作成为性能瓶颈，严重限制内核性能，需要使用内核的reuseport特性。Nginx使用reuseport特性后，会给每个worker进程创建一个listen的socket，能显著降低对socket的争抢。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengwebs/ecosystemEnable/Memcached/kunpengnginxmemcached_05_0015.html
sourcePath: /source/zh/kunpengwebs/ecosystemEnable/Memcached/kunpengnginxmemcached_05_0015.html
indexId: 5b699454b64723709afbf9e27019833eb2b0a84849e306d8ea332c0b5d041d2a83
---
# reuseport特性

在使用Nginx过程中，过多的并发网络连接会导致对socket的操作成为性能瓶颈，严重限制内核性能，需要使用内核的reuseport特性。Nginx使用reuseport特性后，会给每个worker进程创建一个listen的socket，能显著降低对socket的争抢。

在nginx.conf文件配置listen的端口后面增加“reuseport”关键字。```
listen 83 reuseport;
```
