{"id":8144,"date":"2019-04-05T09:36:44","date_gmt":"2019-04-05T07:36:44","guid":{"rendered":"https:\/\/blog.unelink.es\/?p=8144"},"modified":"2019-05-16T10:31:49","modified_gmt":"2019-05-16T08:31:49","slug":"aumentar-los-inotify-watches","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/aumentar-los-inotify-watches\/","title":{"rendered":"Aumentar los inotify watches"},"content":{"rendered":"\n<p>Si el n\u00famero de <strong>inotify watches<\/strong> de tu sistema linux ha llegado a su l\u00edmite y necesitas ampliarlo, tan solo tienes que ejecutar los siguientes comandos por SSH.<\/p>\n\n\n\n<p>Lo primero que tienes que hacer es acceder por terminal a tu servidor.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"237\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2019\/04\/ssh.jpg\" alt=\"\" class=\"wp-image-8145\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2019\/04\/ssh.jpg 592w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2019\/04\/ssh-300x120.jpg 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/figure><\/div>\n\n\n\n<p>Para <strong>ampliar el valor de inotify watches<\/strong> utiliza estos comandos<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">NV=999999; sudo sed -ni -e '\/^fs.inotify.max_user_watches=\/!p' -e \"\\$afs.inotify.max_user_watches=${NV}\" \/etc\/sysctl.conf; sudo sysctl -p<\/pre>\n\n\n\n<p>Donde el valor 999999 es el n\u00famero de inodes watches. Cambia este valor por el que necesites.<\/p>\n\n\n\n<p>Si quieres <strong>consultar el n\u00famero de inodes watches<\/strong> utiliza este comando<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/proc\/sys\/fs\/inotify\/max_user_watches<\/pre>\n\n\n\n<p>De esta forma tan sencilla puedes ampliar los inotify watches de tu sistema.<\/p>\n","protected":false},"excerpt":{"rendered":"Si el n\u00famero de inotify watches de tu sistema linux ha llegado a su l\u00edmite y necesitas ampliarlo, tan solo tienes que ejecutar los siguientes comandos por SSH. Lo primero que tienes que hacer es acceder por terminal a tu servidor. Para ampliar el valor de inotify watches utiliza estos comandos NV=999999; sudo sed -ni -e '\/^fs.inotify.max_user_watches=\/!p' -e \"\\$afs.inotify.max_user_watches=${NV}\" \/etc\/sysctl.conf;&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/aumentar-los-inotify-watches\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":8145,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,349,6],"tags":[110,109,327,216,169,174],"class_list":["post-8144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-ssh","category-wiki","tag-centos","tag-debian","tag-inodes-watches","tag-linux","tag-ssh","tag-ubuntu","cat-10-id","cat-349-id","cat-6-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/8144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=8144"}],"version-history":[{"count":1,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/8144\/revisions"}],"predecessor-version":[{"id":8146,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/8144\/revisions\/8146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media\/8145"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=8144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=8144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=8144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}