Jump to content

Manual:mctest.php

From mediawiki.org
This page is a translated version of the page Manual:Mctest.php and the translation is 71% complete.

詳細

mctest.php is a MediaWiki maintenance script that makes several 'set', 'incr', 'get' requests on every memcached server and shows a report.

オプション/引数

オプション 説明 必須かどうか 既定値
--i Number of iterations 省略可能 100
--cache Use servers from this $wgObjectCaches store 省略可能
--driver Either "php" or "pecl" 省略可能 php
--server[:port] Memcached server to test, with optional port 省略可能

使用法

php maintenance/mctest.php [ --i| --cache| --driver| --server[:port] ]

Basic test

Terminal

Test with custom iterations

Terminal

Test with custom server and port

Terminal

よくあるエラー

MediaWiki isn't configured for Memcached usage
This error occurs when your MediaWiki installation is not configured properly with memcached server.
MediaWiki isn't configured with a cache named '$cache'
This indicates that you have not configured the '$cache' properly in $wgObjectCaches. Check LocalSettings.php for configuration details.


関連項目