{"id":379,"date":"2015-12-10T05:11:32","date_gmt":"2015-12-10T08:11:32","guid":{"rendered":"http:\/\/www.henriquereis.com\/?p=379"},"modified":"2015-12-10T05:14:50","modified_gmt":"2015-12-10T08:14:50","slug":"nginx-no-fedora-23","status":"publish","type":"post","link":"https:\/\/henriquereis.com\/blog\/nginx-no-fedora-23\/","title":{"rendered":"nginx no Fedora 23"},"content":{"rendered":"<p>Tive alguns problemas na instala\u00e7\u00e3o do nginx no Fedora, talvez voc\u00ea n\u00e3o tenha, bom tentei compilar e simplesmente n\u00e3o aparece erro, apenas a compila\u00e7\u00e3o para a execu\u00e7\u00e3o, ent\u00e3o resolvi instalar via dnf<\/p>\n<p>#<strong> dnf install nginx<\/strong><\/p>\n<p>A vers\u00e3o instalada foi 1.8<\/p>\n<p>Tentei iniciar os servi\u00e7o, por\u00e9m sem sucesso, vamos ver:<\/p>\n<p># <strong>systemctl start nginx.service<\/strong><br \/>\nJob for nginx.service failed because the control process exited with error code. See &#8220;systemctl status nginx.service&#8221; and &#8220;journalctl -xe&#8221; for details.<\/p>\n<p>Para resolver eu verifiquei o que estava acontecendo:<\/p>\n<p># <strong>nginx -t -c \/etc\/nginx\/nginx.conf<\/strong><\/p>\n<p>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<br \/>\nnginx: [emerg] mkdir() &#8220;\/var\/cache\/nginx\/client_temp&#8221; failed (2: No such file or directory)<br \/>\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed<\/p>\n<p>O erro diz que a sintaxe est\u00e1 ok, por\u00e9m n\u00e3o foi poss\u00edvel encontrar o arquivo &#8220;<em>\/var\/cache\/nginx\/client_temp<\/em>&#8221;<\/p>\n<p>Solu\u00e7\u00e3o, apenas crie o diret\u00f3rio nginx<\/p>\n<p># <strong>mkdir -p \/var\/cache\/nginx<\/strong><\/p>\n<p>Agora podemos ativ\u00e1-lo e inici\u00e1-lo normalmente<\/p>\n<p>#\u00a0<strong>systemctl enable nginx.service<\/strong><\/p>\n<p>#\u00a0<strong>systemctl start nginx.service<\/strong><\/p>\n<p>Pronto! Aproveite seu nginx!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tive alguns problemas na instala\u00e7\u00e3o do nginx no Fedora, talvez voc\u00ea n\u00e3o tenha, bom tentei compilar e simplesmente n\u00e3o aparece erro, apenas a compila\u00e7\u00e3o para a execu\u00e7\u00e3o, ent\u00e3o resolvi instalar via dnf # dnf install nginx A vers\u00e3o instalada foi 1.8 Tentei iniciar os servi\u00e7o, por\u00e9m sem sucesso, vamos ver: # systemctl start nginx.service Job &hellip; <a href=\"https:\/\/henriquereis.com\/blog\/nginx-no-fedora-23\/\" class=\"more-link\">Continue lendo <span class=\"screen-reader-text\">nginx no Fedora 23<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/379"}],"collection":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":4,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}