Manuel:mctest.php

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

Détails

mctest.php est nom d'utilisateur script de maintenance MédiaWiki qui effectue plusieurs requêtes 'set', 'incr', 'get' sur chaque serveur en memchache en présente nom d'utilisateur rapport.

Options et arguments

Option Description Obligatoire Valeur par défaut
--i Number of iterations optionnel 100
--cache Use servers from this $wgObjectCaches store optionnel
--driver Either "php" or "pecl" optionnel php
--server[:port] Memcached server to test, with optional port optionnel

Utilisation

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

Test de base

Terminal

Test avec un nombre d'itérations personnalisé

Terminal

Test avec un serveur et un port personnalisé

Terminal

Erreurs communes

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.


Voir aussi