{"id":319,"date":"2018-07-20T21:24:00","date_gmt":"2018-07-20T21:24:00","guid":{"rendered":"https:\/\/nmbm.biz\/sitio\/?p=319"},"modified":"2018-11-17T12:28:07","modified_gmt":"2018-11-17T12:28:07","slug":"servico-no-ip-no-centos-7","status":"publish","type":"post","link":"https:\/\/blog.webgescom.pt\/blog\/servico-no-ip-no-centos-7\/","title":{"rendered":"Servi\u00e7o no-ip no Centos 7"},"content":{"rendered":"<h3>Servi\u00e7o systemd para o noip DUC em Linux<\/h3>\n<p><em>por Nathan Giesbrecht (http:\/\/nathangiesbrecht.com)<\/em><\/p>\n<p>\u00a0<\/p>\n\n\n<ul class=\"wp-block-list\"><li> Instale o bin\u00e1rio conforme as instru\u00e7\u00f5es do no-ip (assumindo a localiza\u00e7\u00e3o em <strong>\/usr\/local\/bin<\/strong> e o nome deste script <strong>noip2.service<\/strong>);<\/li><li> Corra sudo <strong>\/usr\/local\/bin\/noip2 -C<\/strong> para criar o ficheiro de configura\u00e7\u00e3o;<\/li><li> Copie este ficheiro (<strong>noip2.service<\/strong>) para <strong>\/lib\/systemd\/system\/<\/strong>;<\/li><li> Execute <strong><code>sudo systemctl enable noip2<\/code><\/strong>\u00a0 (permite o in\u00edcio autom\u00e1tico com o sistema);<\/li><li> Execute <strong><code>sudo systemctl start noip2<\/code><\/strong> ;<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">O <strong>systemd<\/strong> suporta uma s\u00e9rie de funcionalidades. Veja aqui (e nos documentos ligados) a lista completa:<br><a href=\"http:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.exec.html\">http:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.exec.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copie este texto e guarde-o como noip2.service:<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>[Unit]<br>Description=No-ip.com dynamic IP address updater<br>After=network.target<br>After=syslog.target<br>[Install]<br>WantedBy=multi-user.target<br>Alias=noip.service<br>[Service]<br># Start main service<br>ExecStart=\/usr\/local\/bin\/noip2<br>Restart=always<br>Type=forking<\/pre>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_319\" class=\"pvc_stats all  \" data-element-id=\"319\" style=\"\"><i class=\"pvc-stats-icon small\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.webgescom.pt\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Servi\u00e7o systemd para o noip DUC em Linux Centos 7<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_319\" class=\"pvc_stats all  \" data-element-id=\"319\" style=\"\"><i class=\"pvc-stats-icon small\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.webgescom.pt\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[9],"tags":[68,71,70,69],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos-7","tag-duc","tag-noip","tag-systemd"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":2942,"today_views":0},"_links":{"self":[{"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":4,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions\/394"}],"wp:attachment":[{"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.webgescom.pt\/blog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}