Jump to content
MediaWiki

手册:维护脚本

From mediawiki.org
This page is a translated version of the page Manual:Maintenance scripts and the translation is 100% complete.
维护脚本

· ·

维护脚本用于进行各种管理、导入、维护、汇报与升级任务。 这些脚本用PHP编写,位于MediaWiki安装目录下的maintenance子目录。

MediaWiki含有超过200个 维护脚本,它们的通用性和质量各不相同。 在使用脚本前,您应当仔细阅读其的文档;如果它没有附带文档,使用时请多加小心。

自MediaWiki 1.40起,维护脚本应间接通过php ./maintenance/run.php 调用。直接调用维护脚本会触发警告。

In order to run most scripts, you will need access to the command line of the server or shell access through an SSH client like ssh or PuTTY. For details, see our information about running scripts .

If a script needs to modify the structure of a database (as does Update.php, for example), special configuration variables may need to be set in LocalSettings.php to allow this. See the relevant configuration information for details.

For an extensive list of scripts that may be run, see our list of scripts broken down by type.

参阅

AltStyle によって変換されたページ (->オリジナル) /