{"id":556,"date":"2018-11-12T16:06:02","date_gmt":"2018-11-12T08:06:02","guid":{"rendered":"http:\/\/www.kiccleaf.com\/?p=556"},"modified":"2018-11-12T16:06:02","modified_gmt":"2018-11-12T08:06:02","slug":"freebsd%e5%8d%87%e7%ba%a7nginx","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=556","title":{"rendered":"FreeBSD\u5347\u7ea7Nginx"},"content":{"rendered":"<p>\u6700\u65b0nginx\u7248\u672c\u89e3\u51b3\u4e86SSL\u6f0f\u6d1e\uff0c\u6240\u4ee5\u9700\u8981\u5347\u7ea7\u4e00\u4e0bnginx\u7248\u672c\u81f3\u6700\u65b0\uff0c\u4ee5\u4e0b\u662fFreeBSD\u4e0b\u7528pkg\u5347\u7ea7\u7684\u65b9\u6cd5\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@kiccleaf:~ # nginx -v\r\nnginx version: nginx\/1.12.0\r\nroot@kiccleaf:~ # pkg upgrade nginx\r\nUpdating FreeBSD repository catalogue...\r\nFetching meta.txz: 100%    944 B   0.9kB\/s    00:01    \r\nFetching packagesite.txz: 100%    6 MiB  95.5kB\/s    01:11    \r\nProcessing entries: 100%\r\nFreeBSD repository update completed. 33333 packages processed.\r\nThe following 2 package(s) will be affected (of 0 checked):\r\n\r\nInstalled packages to be UPGRADED:\r\n\tnginx: 1.12.0_1,2 -&gt; 1.14.0_13,2\r\n\tpcre: 8.40_1 -&gt; 8.42\r\n\r\nThe process will require 178 KiB more space.\r\n2 MiB to be downloaded.\r\n\r\nProceed with this action? &#x5B;y\/N]: y\r\nFetching nginx-1.14.0_13,2.txz: 100%  416 KiB 425.5kB\/s    00:01    \r\nFetching pcre-8.42.txz: 100%    1 MiB   1.2MB\/s    00:01    \r\nChecking integrity... done (0 conflicting)\r\n&#x5B;1\/2] Upgrading pcre from 8.40_1 to 8.42...\r\n&#x5B;1\/2] Extracting pcre-8.42: 100%\r\n&#x5B;2\/2] Upgrading nginx from 1.12.0_1,2 to 1.14.0_13,2...\r\nYou may need to manually remove \/usr\/local\/etc\/nginx\/nginx.conf if it is no longer needed.\r\n===&gt; Creating groups.\r\nUsing existing group 'www'.\r\n===&gt; Creating users\r\nUsing existing user 'www'.\r\n&#x5B;2\/2] Extracting nginx-1.14.0_13,2: 100%\r\nMessage from nginx-1.14.0_13,2:\r\n===================================================================\r\nRecent version of the NGINX introduces dynamic modules support.  In\r\nFreeBSD ports tree this feature was enabled by default with the DSO\r\nknob.  Several vendor's and third-party modules have been converted\r\nto dynamic modules.  Unset the DSO knob builds an NGINX without\r\ndynamic modules support.\r\n\r\nTo load a module at runtime, include the new `load_module'\r\ndirective in the main context, specifying the path to the shared\r\nobject file for the module, enclosed in quotation marks.  When you\r\nreload the configuration or restart NGINX, the module is loaded in.\r\nIt is possible to specify a path relative to the source directory,\r\nor a full path, please see\r\nhttps:\/\/www.nginx.com\/blog\/dynamic-modules-nginx-1-9-11\/ and\r\nhttp:\/\/nginx.org\/en\/docs\/ngx_core_module.html#load_module for\r\ndetails.\r\n\r\nDefault path for the NGINX dynamic modules is\r\n\r\n\/usr\/local\/libexec\/nginx.\r\n===================================================================\r\nroot@kiccleaf:~ # nginx -v\r\nnginx version: nginx\/1.14.0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u65b0nginx\u7248\u672c\u89e3\u51b3\u4e86SSL\u6f0f\u6d1e\uff0c\u6240\u4ee5\u9700\u8981\u5347\u7ea7\u4e00&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=556\">Continue reading<span class=\"screen-reader-text\">FreeBSD\u5347\u7ea7Nginx<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1,"footnotes":""},"categories":[6],"tags":[8,68],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd","tag-nginx","entry"],"views":2201,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=556"}],"version-history":[{"count":1,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":557,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/557"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}