exp:expclusterenable
Make the installation a one-node DFS cluster: the share, the cluster tables, the settings, the files moved in; a dry run unless --apply.
Skript bin/php/expclusterenable.php, Code in kernel/private/classes/commands/expclusterenable.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:expclusterenable --help
./console exp:cluster:enable --help
php bin/php/expclusterenable.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
Make the installation a one-node DFS cluster
Makes the share folder (default: dfs next to the installation, --share another one outside it), the
kernel's cluster tables in the site's own database (kernel/sql/<engine>/cluster_dfs_schema.sql; the
collections of cluster_dfs_schema.json on MongoDB), the
cluster settings as a marked block of settings/override/file.ini.append.php and config.cluster.php
for the cluster gateway, clears the INI caches, and moves the stored files in with clusterize.php
(once per var directory; --no-move leaves that for later). MySQL/MariaDB, PostgreSQL, MongoDB, Oracle, SQL Server,
or SQLite for
one node only. The rewrite rule of the gateway is printed for the web server: add it
in front of the site's own rules. Files that change are backed up to var/backup/cluster/. Without
--apply nothing is written.
./console exp:cluster:enable what would be done
./console exp:cluster:enable --apply
./console exp:cluster:enable --share=/mnt/e1/dfs/example.com --apply
Exit code: 0 done, shown, or on already; 1 a step failed (what was written is put back); 2 wrong
options or the installation cannot be a cluster (its database, its own cluster settings).Optionen
| Option | Wert | Hilfe |
|---|---|---|
--share | erforderlich | the share folder, an absolute path outside the installation (default: dfs next to it) |
--backend | erforderlich | auto (the default: the site's database), mysqli, postgresql, sqlite, mongodb, oracle or sqlserver |
--no-move | do not move the stored files in now (run bin/php/clusterize.php yourself) | |
--apply | schreiben; ohne diese Option wird nichts geändert |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expclusterenable.php, kernel/private/classes/commands/expclusterenable.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.