{"id":141,"date":"2015-01-31T13:41:11","date_gmt":"2015-01-31T05:41:11","guid":{"rendered":"http:\/\/miku.host.smartgslb.com\/?p=141"},"modified":"2015-01-31T13:41:11","modified_gmt":"2015-01-31T05:41:11","slug":"mediawiki%e8%bf%81%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/sora.sound.moe\/?p=141","title":{"rendered":"Mediawiki\u8fc1\u79fb"},"content":{"rendered":"<p>\u6628\u5929\u665a\u4e0a\u5e2eacgn.moe\u642c\u8fc1\u4e86\u670d\u52a1\u5668\u81f3\u56fd\u5185\u963f\u91cc\u4e91\u3002\u771f\u662f\u8822\u6b7b\u6211\u4e86\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u6211\u662f\u7b80\u5355\u7c97\u66b4\u7684\u8fc1\u79fb\u515a\uff0c\u76f4\u63a5\u9501\u6b7b\u6570\u636e\u5e93($wgReadOnly)\u7136\u540e<\/p>\n<pre class=\"lang:default decode:true\">cd htdocs\nzip -r 233.zip *<\/pre>\n<p>\u6253\u5305\u4e86\u6240\u6709\u6587\u4ef6\u76f4\u63a5\u4e0b\u8f7d\u3002<\/p>\n<p>\u963f\u91cc\u4e91\u8fde\u63a5linode\u7684\u901f\u5ea6\u53ea\u670920kb\/s\u2026\u2026\u86cb\u75bc\uff0c\u672c\u673a\u4e2d\u8f6c\u4e00\u4e0b\uff0c\u4e34\u65f6\u63d0\u4e86\u963f\u91cc\u4e91\u7684\u5e26\u5bbd\uff0c\u4e91\u670d\u52a1\u5c31\u662f\u65b9\u4fbf\u2026\u2026\u79fb\u52a8\u5927\u6cd5\u597d\uff0c\u4e0b\u8f7dLinode\u53ef\u4ee5\u8fbe\u52305M\/s<\/p>\n<p>linode\u90a3\u8fb9\u6211\u662f\u7528phpmyadmin\u5bfc\u51fa\u4e86\u6570\u636e\u5e93\uff0c\u963f\u91cc\u4e91\u8fd9\u8fb9\u6ca1\u88c5\uff0c\u800c\u4e14\u6570\u636e\u5e93\u4e5f\u633a\u5927\u4e86\uff0c\u5c31\u7528\u547d\u4ee4\u884c\u5bfc\u5165\u4e86\u6570\u636e\u5e93<\/p>\n<pre class=\"lang:default decode:true \">mysql -u root -p\n&gt;&gt;\u8f93\u5165\u5bc6\u7801\nuse wiki\nsource ~\/wiki.sql<\/pre>\n<p>\u54d7\u5566\u5566\u4e00\u5927\u7247\u7136\u540e\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u89e3\u538b\u6587\u4ef6\uff0c\u5220\u9664\u4e34\u65f6\u6587\u4ef6\uff0c\u914d\u7f6erewrite\uff0c\u66f4\u6539DNS\uff0c\u4e0a\u7ebfCDN\uff0c\u5b8c\u6210\uff01<\/p>\n<p>\u4e0d\u8fc7\u6628\u5929\u5230\u4eca\u5929\u53d1\u73b0mysql\u5d29\u6e83\u4e86\u597d\u591a\u6b21\uff0c\u67e5\u4e86\u4e0b\u65e5\u5fd7\uff1a<\/p>\n<pre class=\"lang:default decode:true \">150131 12:38:38 InnoDB: Fatal error: cannot allocate memory for the buffer pool\n150131 12:38:38 [ERROR] Plugin 'InnoDB' init function returned error.\n150131 12:38:38 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\n150131 12:38:38 [ERROR] Unknown\/unsupported storage engine: InnoDB\n150131 12:38:38 [ERROR] Aborting<\/pre>\n<p>\u2026\u2026\u65e0\u6cd5\u5206\u914d\u5185\u5b58\u662f\u4ec0\u4e48\u9b3c\u3002<\/p>\n<p>\u5148\u914d\u7f6e\u4e86swap\uff0c\u7136\u540e\u770b\u4e86\u4e0bmy.cnf\uff0c\u53d1\u73b0innodb \u76f8\u5173\u7684\u90fd\u6ca1\u5f00\uff1f<\/p>\n<pre class=\"lang:default decode:true \">innodb_buffer_pool_size = 128M\ninnodb_additional_mem_pool_size = 4M\ninnodb_log_file_size = 128M\ninnodb_log_files_in_group = 2\ninnodb_log_buffer_size = 2M\ninnodb_flush_log_at_trx_commit = 1<\/pre>\n<p>\u6839\u636e\u5b9e\u9645\u5185\u5b58\u8bbe\u7f6e\u4e86\u4e00\u4e0b\uff08\u4e0d\u5982\u4e0a\uff09\uff0c\u7136\u540eservice mysqld restart\uff0c\u7ed3\u679c\u53c8\u62a5\u9519\u4e86<\/p>\n<pre class=\"lang:default decode:true \">150131 13:14:09 InnoDB: Initializing buffer pool, size = 64.0M\n150131 13:14:09 InnoDB: Completed initialization of buffer pool\nInnoDB: Error: log file .\/ib_logfile0 is of different size 0 5242880 bytes\nInnoDB: than specified in the .cnf file 0 16777216 bytes!\n150131 13:14:09 [ERROR] Plugin 'InnoDB' init function returned error.<\/pre>\n<p>\u539f\u6765\u662flog\u6587\u4ef6\u5927\u5c0f\u91cd\u65b0\u8bbe\u7f6e\u540e\u7684\u539f\u56e0\uff0c\u5220\u6389\u4e86mysql\/data\u76ee\u5f55\u4e0b\u7684ib_logfile0\uff0c\u91cd\u542f\uff0c\u5b8c\u6bd5\u3002<\/p>\n<p>=================================<\/p>\n<p><span style=\"color: #ff0000;\"><strong>2015\u5e743\u670829\u65e5\u66f4\u65b0<\/strong><\/span><\/p>\n<p>\u5176\u5b9e\uff0c\u95ee\u9898\u6839\u672c\u4e0d\u662f\u8fd9\u4e2a\u3002<\/p>\n<p>\u95ee\u9898\u7684\u5173\u952e\u5728\u4e8e\u963f\u91cc\u4e91\u7684ECS\u7684\u786c\u76d8\u7684IO\u5b9e\u5728\u592a\u5783\u573e\u4e86\u3002<\/p>\n<p>\u5728\u5185\u5b58\u8f6c\u50a8\u7684\u65f6\u5019\u76f4\u63a5IO\u5c31\u5361\u6b7b\u5bfc\u81f4\u5185\u5b58\u7206\u6389\u3002<\/p>\n<p>\u7ed9\u6211\u4eec\u5e26\u6765\u7684\u8840\u7684\u6559\u8bad\u662f\uff0c\u5343\u4e07\u4e0d\u8981\u5728ECS\u4e0a\u81ea\u5df1\u642d\u5efa\u6570\u636e\u5e93\u670d\u52a1\uff0c\u5b81\u53ef\u52a0\u94b1\u4e0aRDS\u3002<\/p>\n<p>\u542f\u7528RDS\u4e00\u4e2a\u6708\u4ee5\u6765\uff0c\u57fa\u672c\u6ca1\u6709\u51fa\u73b0\u8fc7\u7c7b\u4f3c\u7684\u95ee\u9898\u3002<\/p>\n<p>\u987a\u4fbf\u4e00\u63d0\uff0c\u611f\u89c9\u963f\u91cc\u4e91\u7684CDN\u8ba1\u8d39\u6709\u70b9\u5947\u602a\uff0c\u660e\u660e\u6bcf\u4e2a\u6708\u90fd\u53ef\u4ee5\u7528\u6389\u5927\u6982\u597d\u51e0\u4e2aG\u7684\u6d41\u91cf\uff0c\u8d26\u5355\u51fa\u6765\u5374\u53ea\u6709\u51e0\u5206\u94b1\u3002<\/p>\n<p>\u5154\u5154\u5154\u5154\u5154\u5154\uff0c\u4e0b\u9762\u662f\u83ca\u82e3\u4eec\u7684\u5410\u69fd\u65f6\u95f4~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5929\u665a\u4e0a\u5e2eacgn.moe\u642c\u8fc1\u4e86\u670d\u52a1\u5668\u81f3\u56fd\u5185\u963f\u91cc\u4e91\u3002\u771f\u662f\u8822\u6b7b\u6211\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[21],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"twentyseventeen-featured-image":false,"twentyseventeen-thumbnail-avatar":false},"uagb_author_info":{"display_name":"Sora","author_link":"https:\/\/sora.sound.moe\/?author=1"},"uagb_comment_info":5,"uagb_excerpt":"\u6628\u5929\u665a\u4e0a\u5e2eacgn.moe\u642c\u8fc1\u4e86\u670d\u52a1\u5668\u81f3\u56fd\u5185\u963f\u91cc\u4e91\u3002\u771f\u662f\u8822\u6b7b\u6211\u4e86\u3002","_links":{"self":[{"href":"https:\/\/sora.sound.moe\/index.php?rest_route=\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/sora.sound.moe\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sora.sound.moe\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sora.sound.moe\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sora.sound.moe\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":0,"href":"https:\/\/sora.sound.moe\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/sora.sound.moe\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sora.sound.moe\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sora.sound.moe\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}