{"id":802,"date":"2015-07-20T15:22:04","date_gmt":"2015-07-20T06:22:04","guid":{"rendered":"https:\/\/jirak.net\/wp\/?p=802"},"modified":"2015-07-20T15:22:04","modified_gmt":"2015-07-20T06:22:04","slug":"php-xcache-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%97%b0%eb%8f%99","status":"publish","type":"post","link":"https:\/\/jirak.net\/wp\/php-xcache-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%97%b0%eb%8f%99\/","title":{"rendered":"php + xcache \uc124\uce58 \ubc0f \uc5f0\ub3d9"},"content":{"rendered":"<p>Install XCache<\/p>\n<p>&nbsp;<\/p>\n<p>1. \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<p>\uacf5\uc2dd\uc0ac\uc774\ud2b8 :\u00a0http:\/\/xcache.lighttpd.net<br \/>\n\ub2e4\uc6b4\ub85c\ub4dc\ud398\uc774\uc9c0 :\u00a0http:\/\/xcache.lighttpd.net\/wiki\/ReleaseArchive (2015\/07\/20 \uae30\uc900)<\/p>\n<p>Latest Stable Release: 3.2.x (full 5.1 ~ 5.6 support)<br \/>\nOld Stable Release: 3.1.x (full 5.1 ~ 5.4 support)<\/p>\n<p>\uc774\ub807\uac8c \ub418\uc5b4\uc788\uc73c\ubbc0\ub85c \ucd5c\uc2e0 \ubc84\uc804\uc744 \uc0ac\uc6a9\ud558\ub294 \ubd84\ub4e4\uc740 \uadf8\ub0e5 latest\ub97c \uc0ac\uc6a9\ud558\uc2ec \ub418\uaca0\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>2. \uc124\uce58<\/p>\n<p>wget\u00a0http:\/\/xcache.lighttpd.net\/pub\/Releases\/3.2.0\/xcache-3.2.0.tar.gz<\/p>\n<p>tar zxvpf\u00a0xcache-3.2.0.tar.gz<\/p>\n<p>cd xcache-3.2.0<\/p>\n<p>phpize<\/p>\n<p>.\/configure &#8211;enable-xcache&#8217; &#8216;&#8211;with-php-config=\/usr\/local\/bin\/php-config&#8217; &#8216;&#8211;enable-xcache-coverager<\/p>\n<p>make<\/p>\n<p>cp modules\/xcache.so \/usr\/local\/lib\/php\/extensions\/<\/p>\n<p>mkdir \/home\/ADMIN<\/p>\n<p>cp -rv htdocs \/home\/ADMIN\/xcache<\/p>\n<p>&nbsp;<\/p>\n<p>3. \uc124\uc815<\/p>\n<p>php.ini \uc5d0 \uc544\ub798\ub0b4\uc6a9 \ucd94\uac00<\/p>\n<p>(extension_dir = &#8220;\/usr\/local\/lib\/php\/extensions&#8221; \uc0c1\ud669\uc744 \uac00\uc815\ud568)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nextension=xcache.so\r\n\r\nxcache.admin.auth=On\r\nxcache.admin.user=&quot;admin&quot;\r\nxcache.admin.pass=&quot;fcea920f7412b5da7be0cf42b8c93759&quot;\r\nxcache.shm_scheme = &quot;mmap&quot;\r\nxcache.size = 60M\r\nxcache.count = 1\r\nxcache.slots = 8K\r\nxcache.ttl = 0\r\nxcache.gc_interval = 0\r\nxcache.var_size = 4M\r\nxcache.var_count = 1\r\nxcache.var_slots = 8K\r\nxcache.var_ttl = 0\r\nxcache.var_maxttl = 0\r\nxcache.var_gc_interval = 300\r\nxcache.var_namespace_mode = 0\r\nxcache.var_namespace = &quot;&quot;\r\nxcache.readonly_protection = Off\r\nxcache.mmap_path = &quot;\/dev\/zero&quot;\r\nxcache.coredump_directory = &quot;&quot;\r\nxcache.coredump_type = 0\r\nxcache.disable_on_crash = Off\r\nxcache.experimental = Off\r\nxcache.cacher = On\r\nxcache.stat = On\r\nxcache.optimizer = Off\r\n\r\n<\/pre>\n<p>\ucc38\uace0\ub85c \uad00\ub9ac\uc790 \ubaa8\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4\uba74<\/p>\n<p>xcache.admin.X \uad00\ub828 \ud56d\ubaa9\uc740 \uc124\uc815\ud558\uc9c0 \uc54a\uc544\ub3c4 \ub418\uba70..<\/p>\n<p>xcache.admin.pass \uc5d0\ub294 md5 \uc778\ucf54\ub529 \uac12\uc774 \ub4e4\uc5b4\uac00\uae30 \ub54c\ubb38\uc5d0..<\/p>\n<p>\uc801\uc808\ud788 \uc0dd\uc131&#8230;.<\/p>\n<p>php<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n&lt;?echo md5(&quot;1234567&quot;);?&gt;\r\n\r\n<\/pre>\n<p>python<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nimport md5\r\nprint md5.md5(&quot;1234567&quot;).hexdigest()\r\n\r\n<\/pre>\n<p>\ubb50 \ub300\ucda9 \uc774\ub807\uac8c&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>php -i|grep xcache<\/p>\n<p>\uacb0\uacfc\uac00 \uc704\uc5d0 \uc124\uc815\ud55c \ub0b4\uc6a9\ub4e4\ub85c \uc8fd \ub098\uc628\ub2e4\uac70\ub098..<\/p>\n<p>&lt;?phpinfo();?&gt;<\/p>\n<p>\ub0b4\uc6a9\uc5d0 xcache \uad00\ub828 \ub0b4\uc6a9\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\ub2e4\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \ub85c\ub529\ub41c \uac83.<\/p>\n<p>&nbsp;<\/p>\n<p>4. \uad00\ub9ac\uc790 \ud654\uba74<\/p>\n<p>&nbsp;<\/p>\n<p>* \uc544\ud30c\uce58 \uc124\uc815<\/p>\n<p>Alias \/xcache \/home\/ADMIN\/xcache<\/p>\n<p>* \uc811\uc18d<\/p>\n<p>http:\/\/youripaddress\/xcache<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Install XCache &nbsp; 1. \ub2e4\uc6b4\ub85c\ub4dc \uacf5\uc2dd\uc0ac\uc774\ud2b8 :\u00a0http:\/\/xcache.lighttpd.net \ub2e4\uc6b4\ub85c\ub4dc\ud398\uc774\uc9c0 :\u00a0http:\/\/xcache.lighttpd.net\/wiki\/ReleaseArchive (2015\/07\/20 \uae30\uc900) Latest Stable Release: 3.2.x (full 5.1 ~ 5.6 support) Old Stable Release: 3.1.x (full 5.1 ~ 5.4 support) \uc774\ub807\uac8c \ub418\uc5b4\uc788\uc73c\ubbc0\ub85c \ucd5c\uc2e0 \ubc84\uc804\uc744 \uc0ac\uc6a9\ud558\ub294 \ubd84\ub4e4\uc740 \uadf8\ub0e5 latest\ub97c \uc0ac\uc6a9\ud558\uc2ec \ub418\uaca0\ub2e4. &nbsp; 2. \uc124\uce58 wget\u00a0http:\/\/xcache.lighttpd.net\/pub\/Releases\/3.2.0\/xcache-3.2.0.tar.gz tar zxvpf\u00a0xcache-3.2.0.tar.gz cd xcache-3.2.0 phpize .\/configure &#8211;enable-xcache&#8217; &#8216;&#8211;with-php-config=\/usr\/local\/bin\/php-config&#8217; &#8216;&#8211;enable-xcache-coverager make cp modules\/xcache.so \/usr\/local\/lib\/php\/extensions\/ mkdir \/home\/ADMIN cp -rv htdocs \/home\/ADMIN\/xcache &nbsp; 3. \uc124\uc815 php.ini \uc5d0 \uc544\ub798\ub0b4\uc6a9 \ucd94\uac00 (extension_dir = &#8220;\/usr\/local\/lib\/php\/extensions&#8221; \uc0c1\ud669\uc744 \uac00\uc815\ud568) extension=xcache.so xcache.admin.auth=On xcache.admin.user=&quot;admin&quot; xcache.admin.pass=&quot;fcea920f7412b5da7be0cf42b8c93759&quot; xcache.shm_scheme = &quot;mmap&quot; xcache.size = 60M xcache.count = 1 xcache.slots = 8K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 4M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.var_namespace_mode = 0 xcache.var_namespace = &quot;&quot; xcache.readonly_protection = Off xcache.mmap_path = &quot;\/dev\/zero&quot; xcache.coredump_directory = &quot;&quot; xcache.coredump_type = 0 xcache.disable_on_crash = Off xcache.experimental = Off xcache.cacher = <a class=\"mh-excerpt-more\" href=\"https:\/\/jirak.net\/wp\/php-xcache-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%97%b0%eb%8f%99\/\" title=\"php + xcache \uc124\uce58 \ubc0f \uc5f0\ub3d9\">[ more&#8230; ]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[291],"tags":[238,336,272,332,193,386,385,384],"class_list":["post-802","post","type-post","status-publish","format-standard","hentry","category-web","tag-apache","tag-config","tag-httpd","tag-install","tag-php","tag-php-ini","tag-speed","tag-xcache"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/comments?post=802"}],"version-history":[{"count":1,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/802\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/802\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/media?parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/categories?post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/tags?post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}