AlloyDB Omni unter Debian oder Ubuntu installieren
In diesem Abschnitt wird beschrieben, wie Sie AlloyDB Omni mit der AlloyDB Omni-CLI in Ihrer Debian- oder Ubuntu-Umgebung installieren.
Systemanforderungen
Ihr Linux-Computer muss die folgenden Systemanforderungen erfüllen:
Eine virtuelle oder physische Maschine mit einem Debian-basierten Betriebssystem wie Debian oder Ubuntu.
Mindestens 2 CPUs mit x86-/AMD64-Architektur.
Mindestens 2 GB RAM Für eine optimale Leistung empfehlen wir, jeder CPU 8 GB RAM zuzuweisen.
Mindestens 20 GB verfügbarer Speicherplatz.
Uneingeschränkter Root-Zugriff im Betriebssystem.
Linux-Kernel-Version 4.18 oder höher Für eine optimale Leistung empfehlen wir die Kernel-Version 5.3 oder höher.
Linux-cgroup v2 ist aktiviert.
Auf den meisten modernen Linux-Systemen ist cgroup v2 standardmäßig aktiviert.
Führen Sie stat -fc %T /sys/fs/cgroup/ in einer Shell aus, um zu prüfen, ob cgroup v2 aktiviert ist. Wenn cgroup v2 aktiviert ist, wird in der Befehlsausgabe cgroup2fs angezeigt.
Der TCP-Port 5432 wird von keinem anderen Dienst verwendet.
Wenn Sie AlloyDB Omni auf einer Cloud-Plattform installieren, empfehlen wir die Verwendung der folgenden Instanztypen:
Für Google Cloudempfehlen wir n2-highmem Instanzen.
Für Amazon Web Services empfehlen wir R6i-Instanzen.
Für Microsoft Azure empfehlen wir Ebsv5-Instanzen.
Installieren Sie die AlloyDB Omni CLI und Docker auf Ihrem Debian- oder Ubuntu-Computer:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-17 (UTC)."],[[["\u003cp\u003eAlloyDB Omni can be installed on Debian or Ubuntu environments using the AlloyDB Omni CLI, providing a quick setup for your own environment.\u003c/p\u003e\n"],["\u003cp\u003eSystem requirements for running AlloyDB Omni include a Debian-based OS, minimum 2 CPUs, 2 GB RAM (8 GB per CPU recommended), 20 GB storage, and Linux kernel 4.18 or higher.\u003c/p\u003e\n"],["\u003cp\u003eThe installation process involves installing the AlloyDB Omni CLI and Docker, followed by running a command to install and launch the AlloyDB Omni server software.\u003c/p\u003e\n"],["\u003cp\u003eConnecting to AlloyDB Omni is achieved via \u003ccode\u003epsql\u003c/code\u003e after the server software is launched, allowing users to interact with the database using a command-line prompt.\u003c/p\u003e\n"],["\u003cp\u003eFor optimal performance on cloud platforms, specific instance types are recommended, such as \u003ccode\u003en2-highmem\u003c/code\u003e on Google Cloud, \u003ccode\u003eR6i\u003c/code\u003e on Amazon Web Services, and \u003ccode\u003eEbsv5\u003c/code\u003e on Microsoft Azure.\u003c/p\u003e\n"]]],[],null,["# Install AlloyDB Omni\n\nSelect a documentation version: 15.5.2keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/quickstart)\n- [16.8.0](/alloydb/omni/16.8.0/docs/quickstart)\n- [16.3.0](/alloydb/omni/16.3.0/docs/quickstart)\n- [15.12.0](/alloydb/omni/15.12.0/docs/quickstart)\n- [15.7.1](/alloydb/omni/15.7.1/docs/quickstart)\n- [15.7.0](/alloydb/omni/15.7.0/docs/quickstart)\n- [15.5.5](/alloydb/omni/15.5.5/docs/quickstart)\n- [15.5.4](/alloydb/omni/15.5.4/docs/quickstart)\n- [15.5.2](/alloydb/omni/15.5.2/docs/quickstart)\n\n\u003cbr /\u003e\n\n| **Note:** Your use of AlloyDB Omni is subject to the agreement between you and Google that governs Google Cloud offerings. If you do not have a Google Cloud account, or have not otherwise entered into an agreement with Google that governs Google Cloud offerings, please do not proceed or download this software until you have done so. To create a Google Cloud account, see [the Google Cloud homepage](/docs/get-started).\n\n\u003cbr /\u003e\n\nThis quickstart shows you how to install AlloyDB Omni on your own\nenvironment in a few steps.\n\n- To install a production-ready AlloyDB Omni cluster in a Linux environment, see [Install\n AlloyDB Omni on Debian or Ubuntu](#linux).\n\nInstall AlloyDB Omni on Debian or Ubuntu\n----------------------------------------\n\nThis section shows you how to install AlloyDB Omni using the\nAlloyDB Omni CLI in your Debian or Ubuntu environment. \n\n#### System requirements\n\nEnsure that you have a Linux machine that meets the following system\nrequirements:\n\n- A virtual or physical machine running a Debian-based OS, such as Debian or Ubuntu.\n- A minimum of 2 CPUs, with x86/AMD64 architecture.\n- A minimum of 2 GB of RAM. For optimal performance, we recommend allocating 8 GB of RAM for each CPU.\n- At least 20 GB of available storage.\n- Unrestricted root access within the OS.\n- Linux kernel version 4.18 or higher. We recommend kernel version 5.3 or higher for best performance.\n- Linux cgroup v2 enabled. By default, cgroup v2 is enabled on most modern Linux systems.\n To check whether cgroup v2 is enabled, run\n `stat -fc %T /sys/fs/cgroup/` in a shell. If cgroup v2 is\n enabled, the command output shows `cgroup2fs`.\n\n- TCP port `5432` not in use by any other service.\n- If you are installing AlloyDB Omni on a cloud platform, then we recommend using the following instance types:\n - On Google Cloud, we recommend `n2-highmem` instances.\n - On Amazon Web Services, we recommend `R6i` instances.\n - On Microsoft Azure, we recommend `Ebsv5` instances.\n\n1. Install the AlloyDB Omni CLI and Docker on your Debian or Ubuntu machine:\n\n curl https://us-apt.pkg.dev/doc/repo-signing-key.gpg | sudo apt-key add -\n sudo apt update\n echo \"deb https://us-apt.pkg.dev/projects/alloydb-omni alloydb-omni-apt main\" \\\n | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list\n sudo apt update\n sudo apt-get -y install alloydb-cli docker.io\n\n2. Use the command-line program to install and launch the AlloyDB Omni\n server software:\n\n sudo alloydb database-server install\n\n3. Connect to AlloyDB Omni using `psql`:\n\n sudo docker exec -it pg-service psql -h localhost -U postgres\n\n The terminal window displays `psql` login text that ends with a\n `postgres=#` prompt.\n\nWhat's next\n-----------\n\n- [Run and connect to\n AlloyDB Omni](/alloydb/omni/15.5.2/docs/run-connect)\n\n- [Customize your AlloyDB Omni installation](/alloydb/omni/15.5.2/docs/install)"]]