{"id":881,"date":"2011-02-04T10:08:49","date_gmt":"2011-02-04T09:08:49","guid":{"rendered":"http:\/\/blog.unelink.es\/?p=881"},"modified":"2012-03-09T12:54:25","modified_gmt":"2012-03-09T11:54:25","slug":"comprobar-si-un-servicio-esta-activo-en-linux","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/linux\/comprobar-si-un-servicio-esta-activo-en-linux\/","title":{"rendered":"Comprobar si un servicio est\u00e1 activo en Linux"},"content":{"rendered":"<p>Para comprobar si un servicio est\u00e1 funcionando en su servidor dedicado o servidor virtual debe de escribir lo siguiente<\/p>\n<p>D\u00f3nde &lt;nombre_servicio&gt; es el nombre del servicio del que queremos saber el estado, por ejemplo:<\/p>\n<pre>\/etc\/init.d\/mysql status<\/pre>\n<p>Hay otros servicios como el apache, networking que no tienen configurado el parametro status por lo que no se puede comprobar el estado del servicio de esta forma.<\/p>\n<p>Si se requiere parar un servicio utilizaremos el parametro <strong>stop, <\/strong>por ejemplo:<\/p>\n<pre>\/etc\/init.d\/apache2 stop<\/pre>\n<p>Con lo siguiente parariamos el servicio web de una m\u00e1quina.<\/p>\n<p>Para <strong>arrancar un servicio<\/strong> se utilizar\u00e1 el parametro <strong>start:<\/strong><\/p>\n<pre>\/etc\/init.d\/networking start<\/pre>\n<p>Con la linea anterior, iniciariamos el servicio de red.<\/p>\n<p>Para <strong>reiniciar <\/strong>un servicio debemos utilizar el par\u00e1metro <strong>restart:<\/strong><\/p>\n<pre>\/etc\/init.d\/mysql restart<\/pre>\n<p>Reiniciaria el servicio mysql.<\/p>\n","protected":false},"excerpt":{"rendered":"Para comprobar si un servicio est\u00e1 funcionando en su servidor dedicado o servidor virtual debe de escribir lo siguiente D\u00f3nde &lt;nombre_servicio&gt; es el nombre del servicio del que queremos saber el estado, por ejemplo: \/etc\/init.d\/mysql status Hay otros servicios como el apache, networking que no tienen configurado el parametro status por lo que no se puede comprobar el estado del&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/linux\/comprobar-si-un-servicio-esta-activo-en-linux\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10],"tags":[88],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-linux","tag-estado-servicios-linux","cat-10-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/881","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=881"}],"version-history":[{"count":6,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"predecessor-version":[{"id":886,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/881\/revisions\/886"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}