title: Redis 5.0.5: WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128
body: <p>I have <code>windows 10 home</code>, where is installed <code>Ubuntu</code></p>
  
  <pre><code>lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 18.04.2 LTS
  Release:        18.04
  Codename:       bionic
  </code></pre>
  
  <p>I have installed <code>Redis 5.0.5</code> (it mostly with <code>make</code> and <code>make install</code>)</p>
  
  <p>When I startup the server with <code>redis-server</code> it shows some warnings.</p>
  
  <p>I have removed one about <code>overcommit_memory</code></p>
  
  <p>But about:</p>
  
  <pre><code>WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
  </code></pre>
  
  <p>I have read these two links:</p>
  
  <ul>
  <li><a href="https://github.com/docker-library/redis/issues/35" rel="noreferrer">WARNING: /proc/sys/net/core/somaxconn is set to the lower value of 128. #35</a></li>
  <li><a href="https://www.techandme.se/performance-tips-for-redis-cache-server/" rel="noreferrer">Performance tips for Redis Cache Server</a></li>
  </ul>
  
  <p>Thus both indicate do the following: </p>
  
  <ul>
  <li>Go to the <code>/etc</code> directory </li>
  <li>Create the <code>rc.local</code> file, <code>sudo vim rc.local</code> </li>
  <li>Add the <code>sysctl -w net.core.somaxconn=65535</code> content and save</li>
  </ul>
  
  <p>I can confirm through</p>
  
  <pre><code>cat rc.local
  sysctl -w net.core.somaxconn=65535
  </code></pre>
  
  <p>Well in a <em>secondary</em> terminal I execute <code>redis-cli shutdown</code> and in the <em>primary</em> terminal execute again <code>redis-server</code></p>
  
  <p><strong>Problem</strong> the same warning appears, What is missing?</p>
  
  <p><strong>Note</strong> I have the same situation even after to execute <code>sudo chmod +x rc.local</code> </p>