{"id":569,"date":"2021-10-22T09:06:54","date_gmt":"2021-10-22T13:06:54","guid":{"rendered":"https:\/\/tecgesco.com\/blog\/?p=569"},"modified":"2021-10-22T10:58:47","modified_gmt":"2021-10-22T14:58:47","slug":"como-setar-o-chserver-e-chserverweb-como-servico-no-windows","status":"publish","type":"post","link":"https:\/\/tecgesco.com\/blog\/como-setar-o-chserver-e-chserverweb-como-servico-no-windows\/","title":{"rendered":"Configurando o CHServer e CHServerWeb como servi\u00e7o no Windows."},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">CRIANDO O SERVI\u00c7O<\/h3>\n\n\n\n<p>Atualmente o CHServer e CHServerWeb s\u00e3o execut\u00e1veis e n\u00e3o servi\u00e7os e a grande diferen\u00e7a \u00e9 que se o computador iniciar \u00e9 necess\u00e1rio que seja feito o login no Windows usando o usu\u00e1rio e senha, dessa forma e s\u00f3 ap\u00f3s isso que alguns programas ser\u00e3o iniciados.<\/p>\n\n\n\n<p>Para criarmos um servi\u00e7o de um execut\u00e1vel, iremos usar a seguinte linha de comando no CMD:<\/p>\n\n\n\n<p>sc create <strong><span class=\"has-inline-color has-vivid-red-color\">nome_do_servico<\/span><\/strong> binpath= <span class=\"has-inline-color has-vivid-red-color\"><strong>C:\\sua_pasta\\seu_programa.exe<\/strong><\/span><\/p>\n\n\n\n<p>Ent\u00e3o nesse caso, se o seu sistema estiver instalado no disco local C, utilize as seguintes instru\u00e7\u00f5es.<\/p>\n\n\n\n<p> sc create <strong><span class=\"has-inline-color has-vivid-red-color\">CHServer<\/span><\/strong> binpath= <span class=\"has-inline-color has-vivid-red-color\"><strong>C:\\CHSISTEMAS\\CHServer.exe<\/strong><\/span> <\/p>\n\n\n\n<p> sc create <strong><span class=\"has-inline-color has-vivid-red-color\">CHServerWeb<\/span><\/strong> binpath= <span class=\"has-inline-color has-vivid-red-color\"><strong>C:\\CHSISTEMAS\\CHServerWeb.exe<\/strong><\/span> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"198\" src=\"https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-1.png\" alt=\"\" class=\"wp-image-570\" srcset=\"https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-1.png 592w, https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-1-300x100.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/figure>\n\n\n\n<p>Agora abra no Windows a rotina de Servi\u00e7os.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"590\" src=\"https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-2.png\" alt=\"\" class=\"wp-image-571\" srcset=\"https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-2.png 1008w, https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-2-300x176.png 300w, https:\/\/tecgesco.com\/blog\/wp-content\/uploads\/2021\/10\/image-2-768x450.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/figure>\n\n\n\n<p>Observe que o servi\u00e7o j\u00e1 se encontra criado, basta agora mudar a forma de inicia\u00e7\u00e3o, que por padr\u00e3o \u00e9 <strong>Manual<\/strong>, mudamos para <strong>Autom\u00e1tico (Atraso na Inicializa\u00e7\u00e3o)<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DELETANDO O SERVI\u00c7O<\/h3>\n\n\n\n<p>Caso precise deletar o servi\u00e7o, use o seguinte comando.<\/p>\n\n\n\n<p>sc delete <strong><span class=\"has-inline-color has-vivid-red-color\">nome_do_servico<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CRIANDO O SERVI\u00c7O Atualmente o CHServer e CHServerWeb s\u00e3o execut\u00e1veis e n\u00e3o servi\u00e7os e a grande diferen\u00e7a \u00e9 que se o computador iniciar \u00e9 necess\u00e1rio que seja feito o login no Windows usando o usu\u00e1rio e senha, dessa forma e s\u00f3 ap\u00f3s isso que alguns programas ser\u00e3o iniciados. Para criarmos um servi\u00e7o de um execut\u00e1vel, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[124,44,125,122,123],"class_list":["post-569","post","type-post","status-publish","format-standard","hentry","category-tecnico","tag-chserver","tag-chserverweb","tag-inicar-automatico","tag-servico","tag-windows"],"_links":{"self":[{"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/posts\/569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/comments?post=569"}],"version-history":[{"count":3,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":575,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions\/575"}],"wp:attachment":[{"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/categories?post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tecgesco.com\/blog\/wp-json\/wp\/v2\/tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}