{"id":34681,"date":"2023-09-09T04:26:33","date_gmt":"2023-04-29T09:06:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/"},"modified":"2024-04-30T22:05:52","modified_gmt":"2024-04-30T14:05:52","slug":"%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/","title":{"rendered":"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>FreeBSD 12\u3092\u4f7f\u7528\u3057\u305f\u81ea\u5b85\u30b5\u30fc\u30d0\u306e\u69cb\u7bc9\u3092\u884c\u3063\u305f\u3002FreeBSD 12\u306f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u9593\u3082\u306a\u3044\u72b6\u614b\u3067\u3059\u304c\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u6a19\u6e96\u3067VIMAGE\u304c\u53d6\u308a\u8fbc\u307e\u308cDNS\u306e\u5916\u5411\u304d\u3068\u3001\u5185\u5411\u304d\u3092\u5225\u3005\u306e\u30b7\u30b9\u30c6\u30e0\uff08jail+VIMAGE\uff09\u304c\u540c\u4e00\u30db\u30b9\u30c8\u3067\u69cb\u7bc9\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u6642\u306e\u69cb\u7bc9\u624b\u9806\u3092\u5099\u5fd8\u9332\u306e\u610f\u5473\u3082\u542b\u3081\u3001\u5177\u4f53\u7684\u306b\u3044\u304f\u3064\u304b\u306b\u6e21\u308a\u8aac\u660e\u3059\u308b\u3002<\/p>\n<p>\u57fa\u672c\u30b7\u30b9\u30c6\u30e0\u7de8\u305d\u306e\uff11<\/p>\n<p>\u80cc\u666f<br \/>\n\u57fa\u672c\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u65e5\u672c\u8a9e\u74b0\u5883\u306e\u8a2d\u5b9a<\/p>\n<p>\u57fa\u672c\u30b7\u30b9\u30c6\u30e0\u7de8\u305d\u306e\uff12<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<br \/>\nftp\u30b5\u30fc\u30d0<\/p>\n<p>\u57fa\u672c\u30b7\u30b9\u30c6\u30e0\u7de8\u305d\u306e\uff13<\/p>\n<p>jail<br \/>\n\u57fa\u672c\u30b7\u30b9\u30c6\u30e0\u7de8\u304a\u308f\u308a<\/p>\n<p>jail\u5185\u57fa\u672c\u30b7\u30b9\u30c6\u30e0\u7de8<\/p>\n<p>\u57fa\u672c\u306e\u8a2d\u5b9a\uff08jail1\u30fbjail2\u5171\u901a\uff09<\/p>\n<p>DNS\u7de8<\/p>\n<p>DNS\u306e\u69cb\u7bc9\u306b\u304a\u3051\u308b\u3053\u308c\u307e\u3067\u306e\u554f\u984c<br \/>\nbind9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nNTP\u30b5\u30fc\u30d0<\/p>\n<p>Let&#8217;s Encrypt\u7de8<\/p>\n<p>Let&#8217;s Encrypt\u306b\u3064\u3044\u3066<br \/>\ncertbot\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u5404\u7a2e\u8a2d\u5b9a<br \/>\n\u8a3c\u660e\u66f8\u306e\u53d6\u5f97<\/p>\n<p>Web\u30b5\u30fc\u30d0\u7de8\uff08\u3053\u306e\u8a18\u4e8b\uff09<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08apache2.4\u30fbwebalizer\u30fbphp7.3\u30fbpostgresql11.2\u30fbmysql8.0\uff09<br \/>\n\u8a2d\u5b9a<\/p>\n<p>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u7de8<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08cyrus-sasl\u30fbpostfix\u30fbdovecot\u30fbprocmail\u30fbpflogsumm\u30fbpolicyd-spf\uff09<br \/>\n\u8a2d\u5b9a\u30fb\u8d77\u52d5<br \/>\nspf\u30ec\u30b3\u30fc\u30c9\u9001\u4fe1\u8a2d\u5b9a<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u7de8<\/p>\n<p>samba\u306e\u9078\u629e<br \/>\nsamba3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u7de8\u305d\u306e2<\/p>\n<p>\u6982\u8981<br \/>\nOpenDKIM<br \/>\nOpenDMARC<br \/>\nClamAV (clamav-milter)<br \/>\nSpamassasin (spamass-milter)<\/p>\n<h2>\u5b89\u88c5<\/h2>\n<p>pkg\u3092\u4f7f\u3044\u3001apache2.4\u30fbphp7.3\u30fbpostgresql11.2\u30fbmysql8.0\u3068\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u3057\u304b\u3057\u3001php73-pgsql\u304cpostgresql95\u306b\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308b\u305f\u3081\u3001php73-pgsql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068portgresql11\u304c\u524a\u9664\u3055\u308cpostgresql95\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3057\u307e\u3046\u3002\u305d\u3053\u3067php73-pgsql\u306f\u30bd\u30fc\u30b9\u304b\u3089make\u3059\u308b\u5fc5\u8981\u3042\u308b\u3002<\/p>\n<h3>Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg install apache24\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 7 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        apache24: 2.4.38\r\n        libnghttp2: 1.36.0\r\n        expat: 2.2.6_1\r\n        perl5: 5.28.1\r\n        pcre: 8.42_1\r\n        apr: 1.6.5.1.6.1_1\r\n        gdbm: 1.18.1\r\n\r\nNumber of packages to be installed: 7\r\n\r\nThe process will require 97 MiB more space.\r\n21 MiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5PostgreSQL<\/h3>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg install postgresql11-server\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 3 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        postgresql11-server: 11.2\r\n        icu: 63.1_1,1\r\n        postgresql11-client: 11.2\r\n\r\nNumber of packages to be installed: 3\r\n\r\nThe process will require 79 MiB more space.\r\n7 MiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<h2>MySQL\u7684\u5b89\u88c5<\/h2>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg install mysql80-server\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 6 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        mysql80-server: 8.0.14\r\n        re2: 20190101\r\n        protobuf: 3.6.1_1,1\r\n        libevent: 2.1.8_2\r\n        mysql80-client: 8.0.14\r\n        liblz4: 1.8.3,1\r\n\r\nNumber of packages to be installed: 6\r\n\r\nThe process will require 250 MiB more space.\r\n19 MiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5PHP<\/h3>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg install php73 php73-extensions php73-gd php73-mbstring php73-pear php73-gettext php73-iconv\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 38 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        php73: 7.3.2\r\n        php73-extensions: 1.0\r\n        php73-gd: 7.3.2\r\n        php73-mbstring: 7.3.2\r\n        php73-pear: 1.10.6\r\n        php73-gettext: 7.3.2\r\n        php73-iconv: 7.3.2\r\n        libargon2: 20171227_1\r\n        pcre2: 10.32\r\n        php73-session: 7.3.2\r\n        php73-opcache: 7.3.2\r\n        php73-xmlwriter: 7.3.2\r\n        php73-xmlreader: 7.3.2\r\n        php73-dom: 7.3.2\r\n        php73-xml: 7.3.2\r\n        php73-simplexml: 7.3.2\r\n        php73-ctype: 7.3.2\r\n        php73-posix: 7.3.2\r\n        php73-hash: 7.3.2\r\n        php73-filter: 7.3.2\r\n        php73-tokenizer: 7.3.2\r\n        php73-json: 7.3.2\r\n        php73-sqlite3: 7.3.2\r\n        sqlite3: 3.26.0\r\n        php73-pdo_sqlite: 7.3.2\r\n        php73-pdo: 7.3.2\r\n        php73-phar: 7.3.2\r\n        freetype2: 2.9.1\r\n        png: 1.6.36\r\n        jpeg-turbo: 2.0.1\r\n        libgd: 2.2.5_1,1\r\n        fontconfig: 2.12.6,1\r\n        webp: 1.0.2\r\n        tiff: 4.0.10\r\n        jbigkit: 2.1_1\r\n        giflib: 5.1.4\r\n        oniguruma: 6.9.0\r\n        php73-zlib: 7.3.2\r\n\r\nNumber of packages to be installed: 38\r\n\r\nThe process will require 62 MiB more space.\r\n11 MiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n\r\njail1 \/root # pkg install php73-exif php73-fileinfo php73-ftp php73-pdo_mysql php73-mysqli php73-zip\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 7 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        php73-exif: 7.3.2\r\n        php73-fileinfo: 7.3.2\r\n        php73-ftp: 7.3.2\r\n        php73-pdo_mysql: 7.3.2\r\n        php73-mysqli: 7.3.2\r\n        php73-zip: 7.3.2\r\n        libzip: 1.5.1\r\n\r\nNumber of packages to be installed: 7\r\n\r\nThe process will require 6 MiB more space.\r\n553 KiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<p>php73-pgsql\u30fbphp73-pdo-pgsql\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg install m4 help2man gmake texinfo autoconf\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up to date.\r\nAll repositories are up to date.\r\nThe following 10 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        m4: 1.4.18_1,1\r\n        help2man: 1.47.8_1\r\n        gmake: 4.2.1_3\r\n        texinfo: 6.5_4,1\r\n        autoconf: 2.69_2\r\n        p5-Locale-gettext: 1.07\r\n        p5-Unicode-EastAsianWidth: 1.40\r\n        p5-Locale-libintl: 1.31\r\n        p5-Text-Unidecode: 1.30\r\n        autoconf-wrapper: 20131203\r\n\r\nNumber of packages to be installed: 10\r\n\r\nThe process will require 16 MiB more space.\r\n545 KiB to be downloaded.\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<p>\u7f16\u8bd1<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # portinstall php73-pgsql php73-pdo_pgsql\r\n[Updating the portsdb &lt;format:bdb_btree&gt; in \/var\/db\/pkg ... - 32801 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000.........32000........ ..... done]\r\n[Reading data from pkg(8) ... - 136 packages found - done]\r\n---&gt;  Installing 'php73-pdo_pgsql-7.3.2' from a port (databases\/php73-pdo_pgsql)\r\n---&gt;  Building '\/usr\/ports\/databases\/php73-pdo_pgsql'\r\n===&gt;  Cleaning for php73-pdo_pgsql-7.3.2\r\n===&gt;  License PHP301 accepted by the user\r\n===&gt;   php73-pdo_pgsql-7.3.2 depends on file: \/usr\/local\/sbin\/pkg - found\r\n===&gt; Fetching all distfiles required by php73-pdo_pgsql-7.3.2 for building\r\n===&gt;  Extracting for php73-pdo_pgsql-7.3.2\r\n=&gt; SHA256 Checksum OK for php-7.3.2.tar.xz.\r\n===&gt;  Patching for php73-pdo_pgsql-7.3.2\r\n===&gt;   php73-pdo_pgsql-7.3.2 depends on file: \/usr\/local\/bin\/phpize - found\r\n===&gt;   php73-pdo_pgsql-7.3.2 depends on package: autoconf&gt;0 - found\r\n===&gt;   php73-pdo_pgsql-7.3.2 depends on file: \/usr\/local\/lib\/php\/20180731\/pdo.so - found\r\n===&gt;   php73-pdo_pgsql-7.3.2 depends on shared library: libpq.so.5 - found (\/usr\/local\/lib\/libpq.so.5)\r\n===&gt;  PHPizing for php73-pdo_pgsql-7.3.2\r\n===&gt;  Configuring for php73-pdo_pgsql-7.3.2\r\n\uff08\u9014\u4e2d\u7701\u7565\uff09\r\n---&gt;  Installing 'php73-pgsql-7.3.2' from a port (databases\/php73-pgsql)\r\n---&gt;  Building '\/usr\/ports\/databases\/php73-pgsql'\r\n===&gt;  Cleaning for php73-pgsql-7.3.2\r\n===&gt;  License PHP301 accepted by the user\r\n===&gt;   php73-pgsql-7.3.2 depends on file: \/usr\/local\/sbin\/pkg - found\r\n===&gt; Fetching all distfiles required by php73-pgsql-7.3.2 for building\r\n===&gt;  Extracting for php73-pgsql-7.3.2\r\n=&gt; SHA256 Checksum OK for php-7.3.2.tar.xz.\r\n===&gt;  Patching for php73-pgsql-7.3.2\r\n===&gt;   php73-pgsql-7.3.2 depends on file: \/usr\/local\/bin\/phpize - found\r\n===&gt;   php73-pgsql-7.3.2 depends on package: autoconf&gt;0 - found\r\n===&gt;   php73-pgsql-7.3.2 depends on shared library: libpq.so.5 - found (\/usr\/local\/lib\/libpq.so.5)\r\n===&gt;  PHPizing for php73-pgsql-7.3.2\r\n===&gt;  Configuring for php73-pgsql-7.3.2\r\n\uff08\u4ee5\u4e0b\u7701\u7565\uff09\r\n<\/code><\/pre>\n<p>pkg upgrade\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u30ed\u30c3\u30af\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # pkg lock php73-pgsql\r\nLocking php73-pgsql-7.3.2\r\njail1 \/root # pkg lock php73-pdo_pgsql\r\nLocking php73-pdo_pgsql-7.3.2\r\n<\/code><\/pre>\n<h3>webalizer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4e00\u90e8\u6587\u5b57\u5316\u3051\u5bfe\u7b56\u3068\u3057\u3066\u3001WEBALIZER_CONV\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u3001ports\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # portinstall japanese\/webalizer\r\n[Updating the portsdb &lt;format:bdb_btree&gt; in \/var\/db\/pkg ... - 32801 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000.........32000........ ..... done]\r\n[Reading data from pkg(8) ... - 138 packages found - done]\r\n---&gt;  Installing 'ja-webalizer-2.23.8_10' from a port (japanese\/webalizer)\r\n---&gt;  Building '\/usr\/ports\/japanese\/webalizer'\r\n===&gt;  Cleaning for ja-webalizer-2.23.8_10\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f1e37434c4406c18e98\/22-0.png\" alt=\"webalizer.png\" \/><\/div>\n<h2>\u8bbe\u7f6e\u548c\u542f\u52a8<\/h2>\n<p>\u6298\u89d2\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3057\u305f\u3001eventMPM\u3092php-fpm\u306b\u3088\u308a\u9023\u643a\u3059\u308b\u3002<\/p>\n<h3>Apache\u7684\u914d\u7f6e<\/h3>\n<p>\u7528\u5ba3\u8a00<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">apache24_enable<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"YES\"<\/span>\r\n<\/code><\/pre>\n<h4>\u670d\u52a1\u5668\u4fe1\u606f<\/h4>\n<pre class=\"post-pre\"><code>ServerRoot \"\/usr\/local\"\r\nListen 80\r\n&lt;IfModule unixd_module&gt;\r\nUser www\r\nGroup www\r\n&lt;\/IfModule&gt;\r\nServerAdmin hoge@example.jp\r\nServerName www.example.jp:80\r\n<\/code><\/pre>\n<h4>\u6dfb\u52a0\u6a21\u5757<\/h4>\n<p>mpm\u95a2\u9023\u30fbphp-fpm\u95a2\u9023\u3068ssl\u95a2\u9023\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u8ffd\u52a0\u524a\u9664\u3057\u3066\u3001\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>LoadModule mpm_event_module libexec\/apache24\/mod_mpm_event.so\r\n#LoadModule mpm_prefork_module libexec\/apache24\/mod_mpm_prefork.so\r\nLoadModule proxy_module libexec\/apache24\/mod_proxy.so\r\nLoadModule proxy_fcgi_module libexec\/apache24\/mod_proxy_fcgi.so\r\nLoadModule socache_shmcb_module libexec\/apache24\/mod_socache_shmcb.so\r\nLoadModule ssl_module libexec\/apache24\/mod_ssl.so\r\n<\/code><\/pre>\n<p>\u7ed3\u679c\u5982\u4e0b\uff08\u5305\u62ec\u6ce8\u91ca\u90e8\u5206\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>LoadModule mpm_event_module libexec\/apache24\/mod_mpm_event.so\r\n#LoadModule mpm_prefork_module libexec\/apache24\/mod_mpm_prefork.so\r\n#LoadModule mpm_worker_module libexec\/apache24\/mod_mpm_worker.so\r\nLoadModule authn_file_module libexec\/apache24\/mod_authn_file.so\r\n#LoadModule authn_dbm_module libexec\/apache24\/mod_authn_dbm.so\r\n#LoadModule authn_anon_module libexec\/apache24\/mod_authn_anon.so\r\n#LoadModule authn_dbd_module libexec\/apache24\/mod_authn_dbd.so\r\n#LoadModule authn_socache_module libexec\/apache24\/mod_authn_socache.so\r\nLoadModule authn_core_module libexec\/apache24\/mod_authn_core.so\r\nLoadModule authz_host_module libexec\/apache24\/mod_authz_host.so\r\nLoadModule authz_groupfile_module libexec\/apache24\/mod_authz_groupfile.so\r\nLoadModule authz_user_module libexec\/apache24\/mod_authz_user.so\r\n#LoadModule authz_dbm_module libexec\/apache24\/mod_authz_dbm.so\r\n#LoadModule authz_owner_module libexec\/apache24\/mod_authz_owner.so\r\n#LoadModule authz_dbd_module libexec\/apache24\/mod_authz_dbd.so\r\nLoadModule authz_core_module libexec\/apache24\/mod_authz_core.so\r\n#LoadModule authnz_fcgi_module libexec\/apache24\/mod_authnz_fcgi.so\r\nLoadModule access_compat_module libexec\/apache24\/mod_access_compat.so\r\nLoadModule auth_basic_module libexec\/apache24\/mod_auth_basic.so\r\n#LoadModule auth_form_module libexec\/apache24\/mod_auth_form.so\r\n#LoadModule auth_digest_module libexec\/apache24\/mod_auth_digest.so\r\n#LoadModule allowmethods_module libexec\/apache24\/mod_allowmethods.so\r\n#LoadModule file_cache_module libexec\/apache24\/mod_file_cache.so\r\n#LoadModule cache_module libexec\/apache24\/mod_cache.so\r\n#LoadModule cache_disk_module libexec\/apache24\/mod_cache_disk.so\r\n#LoadModule cache_socache_module libexec\/apache24\/mod_cache_socache.so\r\nLoadModule socache_shmcb_module libexec\/apache24\/mod_socache_shmcb.so\r\n#LoadModule socache_dbm_module libexec\/apache24\/mod_socache_dbm.so\r\n#LoadModule socache_memcache_module libexec\/apache24\/mod_socache_memcache.so\r\n#LoadModule watchdog_module libexec\/apache24\/mod_watchdog.so\r\n#LoadModule macro_module libexec\/apache24\/mod_macro.so\r\n#LoadModule dbd_module libexec\/apache24\/mod_dbd.so\r\n#LoadModule dumpio_module libexec\/apache24\/mod_dumpio.so\r\n#LoadModule buffer_module libexec\/apache24\/mod_buffer.so\r\n#LoadModule data_module libexec\/apache24\/mod_data.so\r\n#LoadModule ratelimit_module libexec\/apache24\/mod_ratelimit.so\r\nLoadModule reqtimeout_module libexec\/apache24\/mod_reqtimeout.so\r\n#LoadModule ext_filter_module libexec\/apache24\/mod_ext_filter.so\r\n#LoadModule request_module libexec\/apache24\/mod_request.so\r\n#LoadModule include_module libexec\/apache24\/mod_include.so\r\nLoadModule filter_module libexec\/apache24\/mod_filter.so\r\n#LoadModule reflector_module libexec\/apache24\/mod_reflector.so\r\n#LoadModule substitute_module libexec\/apache24\/mod_substitute.so\r\n#LoadModule sed_module libexec\/apache24\/mod_sed.so\r\n#LoadModule charset_lite_module libexec\/apache24\/mod_charset_lite.so\r\n#LoadModule deflate_module libexec\/apache24\/mod_deflate.so\r\n#LoadModule xml2enc_module libexec\/apache24\/mod_xml2enc.so\r\n#LoadModule proxy_html_module libexec\/apache24\/mod_proxy_html.so\r\nLoadModule mime_module libexec\/apache24\/mod_mime.so\r\nLoadModule log_config_module libexec\/apache24\/mod_log_config.so\r\n#LoadModule log_debug_module libexec\/apache24\/mod_log_debug.so\r\n#LoadModule log_forensic_module libexec\/apache24\/mod_log_forensic.so\r\n#LoadModule logio_module libexec\/apache24\/mod_logio.so\r\nLoadModule env_module libexec\/apache24\/mod_env.so\r\n#LoadModule mime_magic_module libexec\/apache24\/mod_mime_magic.so\r\n#LoadModule cern_meta_module libexec\/apache24\/mod_cern_meta.so\r\n#LoadModule expires_module libexec\/apache24\/mod_expires.so\r\nLoadModule headers_module libexec\/apache24\/mod_headers.so\r\n#LoadModule usertrack_module libexec\/apache24\/mod_usertrack.so\r\n#LoadModule unique_id_module libexec\/apache24\/mod_unique_id.so\r\nLoadModule setenvif_module libexec\/apache24\/mod_setenvif.so\r\nLoadModule version_module libexec\/apache24\/mod_version.so\r\n#LoadModule remoteip_module libexec\/apache24\/mod_remoteip.so\r\nLoadModule proxy_module libexec\/apache24\/mod_proxy.so\r\n#LoadModule proxy_connect_module libexec\/apache24\/mod_proxy_connect.so\r\n#LoadModule proxy_ftp_module libexec\/apache24\/mod_proxy_ftp.so\r\n#LoadModule proxy_http_module libexec\/apache24\/mod_proxy_http.so\r\nLoadModule proxy_fcgi_module libexec\/apache24\/mod_proxy_fcgi.so\r\n#LoadModule proxy_scgi_module libexec\/apache24\/mod_proxy_scgi.so\r\n#LoadModule proxy_uwsgi_module libexec\/apache24\/mod_proxy_uwsgi.so\r\n#LoadModule proxy_fdpass_module libexec\/apache24\/mod_proxy_fdpass.so\r\n#LoadModule proxy_wstunnel_module libexec\/apache24\/mod_proxy_wstunnel.so\r\n#LoadModule proxy_ajp_module libexec\/apache24\/mod_proxy_ajp.so\r\n#LoadModule proxy_balancer_module libexec\/apache24\/mod_proxy_balancer.so\r\n#LoadModule proxy_express_module libexec\/apache24\/mod_proxy_express.so\r\n#LoadModule proxy_hcheck_module libexec\/apache24\/mod_proxy_hcheck.so\r\n#LoadModule session_module libexec\/apache24\/mod_session.so\r\n#LoadModule session_cookie_module libexec\/apache24\/mod_session_cookie.so\r\n#LoadModule session_crypto_module libexec\/apache24\/mod_session_crypto.so\r\n#LoadModule session_dbd_module libexec\/apache24\/mod_session_dbd.so\r\n#LoadModule slotmem_shm_module libexec\/apache24\/mod_slotmem_shm.so\r\n#LoadModule slotmem_plain_module libexec\/apache24\/mod_slotmem_plain.so\r\nLoadModule ssl_module libexec\/apache24\/mod_ssl.so\r\n#LoadModule dialup_module libexec\/apache24\/mod_dialup.so\r\n#LoadModule http2_module libexec\/apache24\/mod_http2.so\r\n#LoadModule proxy_http2_module libexec\/apache24\/mod_proxy_http2.so\r\n#LoadModule lbmethod_byrequests_module libexec\/apache24\/mod_lbmethod_byrequests.so\r\n#LoadModule lbmethod_bytraffic_module libexec\/apache24\/mod_lbmethod_bytraffic.so\r\n#LoadModule lbmethod_bybusyness_module libexec\/apache24\/mod_lbmethod_bybusyness.so\r\n#LoadModule lbmethod_heartbeat_module libexec\/apache24\/mod_lbmethod_heartbeat.so\r\nLoadModule unixd_module libexec\/apache24\/mod_unixd.so\r\n#LoadModule heartbeat_module libexec\/apache24\/mod_heartbeat.so\r\n#LoadModule heartmonitor_module libexec\/apache24\/mod_heartmonitor.so\r\n#LoadModule dav_module libexec\/apache24\/mod_dav.so\r\nLoadModule status_module libexec\/apache24\/mod_status.so\r\nLoadModule autoindex_module libexec\/apache24\/mod_autoindex.so\r\n#LoadModule asis_module libexec\/apache24\/mod_asis.so\r\n#LoadModule info_module libexec\/apache24\/mod_info.so\r\n&lt;IfModule !mpm_prefork_module&gt;\r\n    #LoadModule cgid_module libexec\/apache24\/mod_cgid.so\r\n&lt;\/IfModule&gt;\r\n&lt;IfModule mpm_prefork_module&gt;\r\n    #LoadModule cgi_module libexec\/apache24\/mod_cgi.so\r\n&lt;\/IfModule&gt;\r\n#LoadModule dav_fs_module libexec\/apache24\/mod_dav_fs.so\r\n#LoadModule dav_lock_module libexec\/apache24\/mod_dav_lock.so\r\n#LoadModule vhost_alias_module libexec\/apache24\/mod_vhost_alias.so\r\n#LoadModule negotiation_module libexec\/apache24\/mod_negotiation.so\r\nLoadModule dir_module libexec\/apache24\/mod_dir.so\r\n#LoadModule imagemap_module libexec\/apache24\/mod_imagemap.so\r\n#LoadModule actions_module libexec\/apache24\/mod_actions.so\r\n#LoadModule speling_module libexec\/apache24\/mod_speling.so\r\n#LoadModule userdir_module libexec\/apache24\/mod_userdir.so\r\nLoadModule alias_module libexec\/apache24\/mod_alias.so\r\n#LoadModule rewrite_module libexec\/apache24\/mod_rewrite.so\r\n<\/code><\/pre>\n<h4>\u6dfb\u52a0DirectoryIndex\u3002<\/h4>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u53c2\u7167\u3055\u308c\u305f\u3068\u304d\u306bindex.html\u306b\u52a0\u3048\u3066index.php\u3082\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002\u4eca\u56de\u306f\u3001index.php\u304c\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;IfModule dir_module&gt;\r\n    DirectoryIndex index.php index.html\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h4>php-fpm\u9023\u643a<\/h4>\n<p>\u5f53\u8c03\u7528php\u811a\u672c\u65f6\uff0c\u4f7f\u7528php-fpm\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;FilesMatch \"\\.php$\"&gt;\r\n    SetHandler \"proxy:fcgi:\/\/127.0.0.1:9000\/\"\r\n&lt;\/FilesMatch&gt;\r\n<\/code><\/pre>\n<h4>Directory\u30a2\u30af\u30bb\u30b9\u8a2d\u5b9a<\/h4>\n<p>\u5982\u679c\u76ee\u5f55\u4e0b\u6ca1\u6709index.php\u6216index.html\u6587\u4ef6\uff0c\u5219\u7981\u6b62\u663e\u793a\u6587\u4ef6\u3002\u5141\u8bb8\u901a\u8fc7.htaccess\u6587\u4ef6\u8fdb\u884c\u8986\u5199\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;Directory \/&gt;\r\n    AllowOverride none\r\n    Require all denied\r\n&lt;\/Directory&gt;\r\n\r\nDocumentRoot \"\/usr\/local\/www\/apache24\/data\"\r\n&lt;Directory \"\/usr\/local\/www\/apache24\/data\"&gt;\r\n    Options FollowSymLinks\r\n    AllowOverride All\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n\r\n&lt;Files \".ht*\"&gt;\r\n    Require all denied\r\n&lt;\/Files&gt;\r\n<\/code><\/pre>\n<h4>\u65e5\u5fd7\u4fdd\u5b58\u8bbe\u7f6e<\/h4>\n<p>\uff11\u65e5\u306b\u4e00\u56de\u3001\u30ed\u30b0\u306e\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u3002\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u304c\uff0b\uff19\u306e\u305f\u3081\u30aa\u30d5\u30bb\u30c3\u30c8\uff08\u5206\u8a2d\u5b9a\uff09\u3092\uff0b\uff15\uff14\uff10\u3068\u8a2d\u5b9a\u3059\u308b<br \/>\nwebalizer\u306b\u30ea\u30d5\u30a1\u30fc\u306e\u60c5\u5831\u3092\u4e0e\u3048\u308b\u305f\u3081\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092combined\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>ErrorLog \"| \/usr\/local\/sbin\/rotatelogs \/var\/log\/httpd\/httpd-error%Y%m%d.log 86400 +540\"\r\nLogLevel warn\r\n\r\n&lt;IfModule log_config_module&gt;\r\n    LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\r\n    LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b\" common\r\n    &lt;IfModule logio_module&gt;\r\n      # You need to enable mod_logio.c to use %I and %O\r\n      LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\" %I %O\" combinedio\r\n    &lt;\/IfModule&gt;\r\n    CustomLog \"| \/usr\/local\/sbin\/rotatelogs \/var\/log\/httpd\/httpd-access%Y%m%d.log 86400 +540\" combined\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h4>cgi\u8a2d\u5b9a<\/h4>\n<p>\u4eca\u56de\u306f\u672a\u4f7f\u7528\u306e\u305f\u3081\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u8a2d\u5b9a\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>&lt;IfModule alias_module&gt;\r\n    ScriptAlias \/cgi-bin\/ \"\/usr\/local\/www\/apache24\/cgi-bin\/\"\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;IfModule cgid_module&gt;\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;Directory \"\/usr\/local\/www\/apache24\/cgi-bin\"&gt;\r\n    AllowOverride None\r\n    Options None\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\n<h4>\u8bbe\u7f6e\u652f\u6301HTTP\u8bf7\u6c42\u5934\u3002<\/h4>\n<p>\u56e0\u4e3a\u6ca1\u6709\u5b8c\u5168\u7406\u89e3\uff0c\u6240\u4ee5\u4fdd\u6301\u9ed8\u8ba4\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;IfModule headers_module&gt;\r\n    RequestHeader unset Proxy early\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h4>\u6253\u626e\u6210\u9ed8\u5287\u6f14\u54e1\u3002<\/h4>\n<p>\u4fdd\u6301\u9ed8\u8ba4\u8bbe\u7f6e\u4f7f\u7528<\/p>\n<pre class=\"post-pre\"><code>&lt;IfModule mime_module&gt;\r\n    TypesConfig etc\/apache24\/mime.types\r\n    AddType application\/x-compress .Z\r\n    AddType application\/x-gzip .gz .tgz\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h4>SSL\u8bbe\u7f6e<\/h4>\n<pre class=\"post-pre\"><code>Include etc\/apache24\/extra\/httpd-ssl.conf\r\n&lt;IfModule ssl_module&gt;\r\nSSLRandomSeed startup builtin\r\nSSLRandomSeed connect builtin\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>\u56e0\u4e3a\u4f7f\u7528\u4e86Webalizer\uff0c\u6240\u4ee5\u5c06\u65e5\u5fd7\u8bb0\u5f55\u5728\u540c\u4e00\u4e2a\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002\u540c\u65f6\uff0c\u4f7f\u7528rotatelogs\u5b9e\u7528\u5de5\u5177\uff0c\u5373\u4f7f\u65e5\u5fd7\u6587\u4ef6\u540d\u76f8\u540c\u4e5f\u4e0d\u4f1a\u5bfc\u81f4\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code>Listen 443\r\nSSLCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES\r\nSSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES\r\nSSLHonorCipherOrder on\r\nSSLProtocol all -SSLv3\r\nSSLProxyProtocol all -SSLv3\r\nSSLPassPhraseDialog  builtin\r\nSSLSessionCache        \"shmcb:\/var\/run\/ssl_scache(512000)\"\r\nSSLSessionCacheTimeout  300\r\n\r\n&lt;VirtualHost _default_:443&gt;\r\nDocumentRoot \"\/usr\/local\/www\/apache24\/data\"\r\nServerName www.example.jp:443\r\nServerAdmin hoge@example.jp\r\nErrorLog \"| \/usr\/local\/sbin\/rotatelogs \/var\/log\/httpd\/httpd-ssl_error%Y%m%d.log 86400 +540\"\r\n#TransferLog \"\/var\/log\/httpd-access.log\"\r\n\r\nSSLEngine on\r\nSSLCertificateFile \"\/usr\/local\/etc\/letsencrypt\/live\/example.jp\/fullchain.pem\"\r\nSSLCertificateKeyFile \"\/usr\/local\/etc\/letsencrypt\/live\/example.jp\/privkey.pem\"\r\n\r\n&lt;FilesMatch \"\\.(cgi|shtml|phtml|php)$\"&gt;\r\n    SSLOptions +StdEnvVars\r\n&lt;\/FilesMatch&gt;\r\n&lt;Directory \"\/usr\/local\/www\/apache24\/cgi-bin\"&gt;\r\n    SSLOptions +StdEnvVars\r\n&lt;\/Directory&gt;\r\n\r\nBrowserMatch \"MSIE [2-5]\" \\\r\n         nokeepalive ssl-unclean-shutdown \\\r\n         downgrade-1.0 force-response-1.0\r\n\r\n#CustomLog \"| \/usr\/local\/sbin\/rotatelogs \/var\/log\/httpd\/httpd-ssl_request%Y%m%d.log 86400 +540\" \\\r\n#          \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\\"%r\\\" %b\"\r\n    CustomLog \"| \/usr\/local\/sbin\/rotatelogs \/var\/log\/httpd\/httpd-access%Y%m%d.log 86400 +540\" combined\r\n\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\n<h3>Apache\u7684\u542f\u52a8<\/h3>\n<p>\u30ed\u30b0\u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3001\u958b\u59cb\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # mkdir \/var\/log\/httpd\r\njail1 \/root # service apache24 start\r\nPerforming sanity check on apache24 configuration:\r\nSyntax OK\r\nStarting apache24.\r\n<\/code><\/pre>\n<h3>php-fpm\u7684\u914d\u7f6e<\/h3>\n<p>\u8fd0\u7528\u58f0\u660e<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">php_fpm_enable<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"YES\"<\/span>\r\n<\/code><\/pre>\n<p>\u5c06\/usr\/local\/etc\/php.ini-production\u590d\u5236\u5230php.ini\u4e2d\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u884c<\/p>\n<pre class=\"post-pre\"><code><span class=\"py\">date.timezone<\/span> <span class=\"p\">=<\/span> <span class=\"s\">Asia\/Tokyo<\/span>\r\n<\/code><\/pre>\n<h3>\u542f\u52a8php-fpm<\/h3>\n<pre class=\"post-pre\"><code>jail1 \/root # service php-fpm start\r\nPerforming sanity check on php-fpm configuration:\r\n[24-Feb-2019 16:54:42] NOTICE: configuration file \/usr\/local\/etc\/php-fpm.conf test is successful\r\n\r\nStarting php_fpm.\r\n<\/code><\/pre>\n<h3>Webalizer\u7684\u8bbe\u7f6e<\/h3>\n<p>\u590d\u5236\u96cf\u5f62<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # cd \/usr\/local\/etc\r\njail1 \/usr\/local\/etc # cp ja-webalizer.conf-dist ja-webalizer.conf\r\n<\/code><\/pre>\n<p>\u6211\u5df2\u7ecf\u8fdb\u884c\u4e86\u4ee5\u4e0b\u7684\u66f4\u6539\u548c\u6dfb\u52a0\u3002<\/p>\n<pre class=\"post-pre\"><code>OutputDir      \/usr\/local\/www\/apache24\/data\/access_log\/\r\nHistoryName webalizer.hist\r\nIncremental <span class=\"nb\">yes\r\n<\/span>IncrementalName webalizer.current\r\nHostName    www.example.jp\r\nPageType    php\r\nDNSCache    dns_cache.db\r\nDNSChildren 5\r\nReallyQuiet no\r\nIgnoreSite  192.168.1.<span class=\"k\">*<\/span>\r\nIgnoreURL   \/access_log\/<span class=\"k\">*<\/span>\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u8f93\u51fa\u76ee\u5f55<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # mkdir \/usr\/local\/www\/apache24\/data\/access_log\/\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u65e5\u5fd7\u6587\u4ef6\u540d\u662f\u52a8\u6001\u53d8\u5316\u7684\uff0c\u56e0\u6b64\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u7f16\u5199\u811a\u672c\u5e76\u4f7f\u7528cron\u8fdb\u884c\u521b\u5efa\u3002<br \/>\n\u65e5\u5fd7\u6587\u4ef6\u5c06\u4ee5\u524d\u4e00\u5929\u7684\u521b\u5efa\u65e5\u671f\u4e3a\u76ee\u6807\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\">#!\/bin\/sh<\/span>\r\n<span class=\"c\">#Webalizer for an apache logfile of date format.<\/span>\r\n<span class=\"nv\">log<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"\/var\/log\/httpd\/httpd-access\"<\/span><span class=\"sb\">`<\/span><span class=\"nb\">date<\/span> <span class=\"nt\">-v<\/span> <span class=\"nt\">-1d<\/span> +%Y%m%d<span class=\"sb\">`<\/span><span class=\"s2\">\".log\"<\/span>\r\n\/bin\/echo <span class=\"nv\">$log<\/span>\r\n\/usr\/local\/bin\/ja-webalizer <span class=\"k\">${<\/span><span class=\"nv\">log<\/span><span class=\"k\">}<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>45      1       <span class=\"k\">*<\/span>       <span class=\"k\">*<\/span>       <span class=\"k\">*<\/span>       root    \/usr\/local\/sbin\/webalizer.sh\r\n<\/code><\/pre>\n<h3>postgresql\u306e\u8a2d\u5b9a<\/h3>\n<p>\u7528\u5ba3\u8a00\u8868\u8fbe<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgresql_enable<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"YES\"<\/span>\r\n<span class=\"nv\">postgresql_data<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"\/var\/db\/postgres\/data11\"<\/span>\r\n<span class=\"nv\">postgresql_flags<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"-w -s -m fast\"<\/span>\r\n<span class=\"nv\">postgresql_initdb_flags<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"--encoding=EUC_JP --lc-collate=C\"<\/span>\r\n<\/code><\/pre>\n<h4>\u521d\u59cb\u5316PostgreSQL\u6570\u636e\u5e93<\/h4>\n<p>\u7531\u4e8eqjail\u7684\u9ed8\u8ba4\u914d\u7f6e(\/usr\/local\/etc\/qjail.config\/*)\u65e0\u6cd5\u64cd\u4f5c\u5171\u4eab\u5185\u5b58\uff08system V IPC\u8d44\u6e90\uff09\uff0c\u56e0\u6b64\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code>running bootstrap script ... FATAL:  could not create shared memory segment: Function not implemented\r\n<\/code><\/pre>\n<p>\u56e0\u6b64\uff0c\u4e3a\u4e86\u5141\u8bb8\u5171\u4eab\u5185\u5b58\u64cd\u4f5c\uff0c\u9700\u8981\u5728server1:\/usr\/local\/etc\/qjailconfig\/jail1\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\u5e76\u91cd\u65b0\u542f\u52a8jail\uff08\u5df2\u4fee\u6539\u57fa\u672c\u7cfb\u7edf\u90e8\u52063\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>allow.sysvipc       =   \"1\";\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>jail1 \/root # service postgresql initdb\r\nThe files belonging to this database system will be owned by user \"postgres\".\r\nThis user must also own the server process.\r\n\r\nThe database cluster will be initialized with locale \"C\".\r\nThe default text search configuration will be set to \"english\".\r\n\r\nData page checksums are disabled.\r\n\r\ncreating directory \/var\/db\/postgres\/data10 ... ok\r\ncreating subdirectories ... ok\r\nselecting default max_connections ... 100\r\nselecting default shared_buffers ... 128MB\r\nselecting dynamic shared memory implementation ... posix\r\ncreating configuration files ... ok\r\nrunning bootstrap script ... ok\r\nperforming post-bootstrap initialization ... ok\r\nsyncing data to disk ... ok\r\n\r\nWARNING: enabling \"trust\" authentication for local connections\r\nYou can change this by editing pg_hba.conf or using the option -A, or\r\n--auth-local and --auth-host, the next time you run initdb.\r\n\r\nSuccess. You can now start the database server using:\r\n\r\n    \/usr\/local\/bin\/pg_ctl -D \/var\/db\/postgres\/data10 -l logfile start\r\n\r\n<\/code><\/pre>\n<p>\u8fd9\u6b21\u4e0d\u8003\u8651\u5916\u90e8\u8fde\u63a5\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u66f4\u6539\/var\/db\/postgres\/data10\/pg_hba.conf\u3002<\/p>\n<h4>\u542f\u52a8PostgreSQL\u3002<\/h4>\n<pre class=\"post-pre\"><code>jail1 \/root # service postgresql start\r\n2019-02-24 17:33:58.690 JST [4500] LOG:  listening on IPv6 address \"::1\", port 5432\r\n2019-02-24 17:33:58.691 JST [4500] LOG:  listening on IPv4 address \"127.0.0.1\", port 5432\r\n2019-02-24 17:33:58.692 JST [4500] LOG:  listening on Unix socket \"\/tmp\/.s.PGSQL.5432\"\r\n2019-02-24 17:33:58.697 JST [4500] LOG:  ending log output to stderr\r\n2019-02-24 17:33:58.697 JST [4500] HINT:  Future log output will go to log destination \"syslog\".\r\n<\/code><\/pre>\n<h4>\u6dfb\u52a0\u7528\u6237<\/h4>\n<pre class=\"post-pre\"><code>jail1 \/root # createuser -U postgres www\r\n<\/code><\/pre>\n<h4>\u521b\u5efa\u6570\u636e\u5e93<\/h4>\n<pre class=\"post-pre\"><code>jail1 \/root # createdb -U postgres -O www www\r\n<\/code><\/pre>\n<h4>\u786e\u8ba4<\/h4>\n<pre class=\"post-pre\"><code>jail1 \/root # psql -U www\r\npsql (11.2)\r\nType \"help\" for help.\r\n\r\nwww=&gt; \\l\r\n                             List of databases\r\n   Name    |  Owner   | Encoding | Collate | Ctype |   Access privileges\r\n-----------+----------+----------+---------+-------+-----------------------\r\n postgres  | postgres | EUC_JP   | C       | C     |\r\n template0 | postgres | EUC_JP   | C       | C     | =c\/postgres          +\r\n           |          |          |         |       | postgres=CTc\/postgres\r\n template1 | postgres | EUC_JP   | C       | C     | =c\/postgres          +\r\n           |          |          |         |       | postgres=CTc\/postgres\r\n www       | www      | EUC_JP   | C       | C     |\r\n(4 rows)\r\n\r\nwww=&gt; \\q\r\n<\/code><\/pre>\n<h3>MySQL\u7684\u914d\u7f6e<\/h3>\n<h4>\u8fd0\u7528\u5ba3\u8a00<\/h4>\n<pre class=\"post-pre\"><code><span class=\"nv\">mysql_enable<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"YES\"<\/span>\r\n<span class=\"nv\">mysql_dbdir<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"\/var\/db\/mysql\/data\"<\/span>\r\n<\/code><\/pre>\n<h4>\u6307\u5b9a\u8ba4\u8bc1\u63d2\u4ef6<\/h4>\n<pre class=\"post-pre\"><code>[mysqld]\r\ndefault_authentication_plugin   = mysql_native_password\r\n<\/code><\/pre>\n<h4>MySQL\u7684\u542f\u52a8<\/h4>\n<pre class=\"post-pre\"><code>jail1 \/root # service mysql-server start\r\nStarting mysql.\r\n<\/code><\/pre>\n<p>\u8bf7\u8bbe\u7f6e\u5bc6\u7801\uff08\u8bf7\u6307\u5b9a\u8981\u8bbe\u7f6e\u4e3a********\u7684\u5bc6\u7801\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>jail1 \/root # mysqladmin password ******** -u root\r\nmysqladmin: [Warning] Using a password on the command line interface can be insecure.\r\nWarning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b FreeBSD 12\u3092\u4f7f\u7528\u3057\u305f\u81ea\u5b85\u30b5\u30fc\u30d0\u306e\u69cb\u7bc9\u3092\u884c\u3063\u305f\u3002FreeBSD 12\u306f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u9593\u3082\u306a\u3044 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34681","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528freebsd-12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cweb\u670d\u52a1\u5668\u90e8\u5206\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b FreeBSD 12\u3092\u4f7f\u7528\u3057\u305f\u81ea\u5b85\u30b5\u30fc\u30d0\u306e\u69cb\u7bc9\u3092\u884c\u3063\u305f\u3002FreeBSD 12\u306f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u9593\u3082\u306a\u3044 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528freebsd-12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cweb\u670d\u52a1\u5668\u90e8\u5206\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-29T09:06:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T14:05:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f1e37434c4406c18e98\/22-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/\",\"name\":\"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-29T09:06:34+00:00\",\"dateModified\":\"2024-04-30T14:05:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528freebsd-12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cweb\u670d\u52a1\u5668\u90e8\u5206\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206","og_description":"\u306f\u3058\u3081\u306b FreeBSD 12\u3092\u4f7f\u7528\u3057\u305f\u81ea\u5b85\u30b5\u30fc\u30d0\u306e\u69cb\u7bc9\u3092\u884c\u3063\u305f\u3002FreeBSD 12\u306f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u9593\u3082\u306a\u3044 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528freebsd-12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cweb\u670d\u52a1\u5668\u90e8\u5206\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-29T09:06:34+00:00","article_modified_time":"2024-04-30T14:05:52+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f1e37434c4406c18e98\/22-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"15 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/","name":"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-29T09:06:34+00:00","dateModified":"2024-04-30T14:05:52+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528FreeBSD 12\u5728\u5bb6\u521b\u5efa\u670d\u52a1\u5668\uff0cWeb\u670d\u52a1\u5668\u90e8\u5206"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8freebsd-12%e5%9c%a8%e5%ae%b6%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8cweb%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e5%88%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34681"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34681\/revisions"}],"predecessor-version":[{"id":94574,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34681\/revisions\/94574"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}