{"id":1890,"date":"2025-08-02T19:21:12","date_gmt":"2024-12-26T21:17:08","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"wie-man-mattermost-auf-debian-12-installiert","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/wie-man-mattermost-auf-debian-12-installiert\/","title":{"rendered":"Wie man Mattermost auf Debian 12 installiert"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<p>In dieser Anleitung erfahren Sie, wie Sie Mattermost auf einem Debian 12-Server installieren. Mattermost ist eine Open-Source-Team-Kommunikationssoftware, die als Slack-Alternative dient und sich f\u00fcr selbstgehostete Umgebungen eignet.<\/p>\n<h2>Schritt 1: System aktualisieren<\/h2>\n<p>Bevor Sie mit der Installation von Mattermost beginnen, stellen Sie sicher, dass Ihr Debian 12-System auf dem neuesten Stand ist. F\u00fchren Sie dazu die folgenden Befehle aus:<\/p>\n<pre>        sudo apt update\r\n        sudo apt upgrade -y\r\n    <\/pre>\n<h2>Schritt 2: Abh\u00e4ngigkeiten installieren<\/h2>\n<p>Um Mattermost auf Debian 12 zu installieren, m\u00fcssen Sie einige Abh\u00e4ngigkeiten installieren. F\u00fchren Sie den folgenden Befehl aus:<\/p>\n<pre>        sudo apt install -y wget curl lsb-release apt-transport-https\r\n    <\/pre>\n<h2>Schritt 3: Mattermost-Repository hinzuf\u00fcgen<\/h2>\n<p>F\u00fcgen Sie das Mattermost-Repository zu Ihrer Systemquelle hinzu:<\/p>\n<pre>        wget https:\/\/releases.mattermost.com\/5.37.1\/mattermost-team-5.37.1-linux-amd64.tar.gz\r\n        tar -xvzf mattermost-team-5.37.1-linux-amd64.tar.gz\r\n        sudo mv mattermost \/opt\r\n    <\/pre>\n<h2>Schritt 4: Datenbank einrichten<\/h2>\n<p>Sie m\u00fcssen eine MySQL-Datenbank f\u00fcr Mattermost einrichten. Melden Sie sich bei MySQL an und erstellen Sie die Datenbank:<\/p>\n<pre>        sudo mysql -u root -p\r\n        CREATE DATABASE mattermost_db CHARACTER SET = 'utf8' COLLATE = 'utf8_general_ci';\r\n        CREATE USER 'mattermost'@'localhost' IDENTIFIED BY 'password';\r\n        GRANT ALL PRIVILEGES ON mattermost_db.* TO 'mattermost'@'localhost';\r\n        FLUSH PRIVILEGES;\r\n        EXIT;\r\n    <\/pre>\n<h2>Schritt 5: Mattermost konfigurieren<\/h2>\n<p>Gehen Sie in das Verzeichnis <code>\/opt\/mattermost\/config<\/code> und bearbeiten Sie die Datei <code>config.json<\/code>, um die Datenbankkonfiguration hinzuzuf\u00fcgen:<\/p>\n<pre>        sudo nano \/opt\/mattermost\/config\/config.json\r\n    <\/pre>\n<p>\u00c4ndern Sie die Datenbankeinstellungen wie folgt:<\/p>\n<pre>        \"SqlSettings\": {\r\n            \"DriverName\": \"mysql\",\r\n            \"DataSource\": \"mattermost:password@tcp(localhost:3306)\/mattermost_db?charset=utf8mb4,utf8&amp;writeTimeout=30s&amp;readTimeout=30s\",\r\n            \"MaxIdleConns\": 10,\r\n            \"MaxOpenConns\": 100\r\n        }\r\n    <\/pre>\n<h2>Schritt 6: Mattermost starten<\/h2>\n<p>F\u00fchren Sie den folgenden Befehl aus, um Mattermost zu starten:<\/p>\n<pre>        sudo \/opt\/mattermost\/bin\/mattermost\r\n    <\/pre>\n<p>Mattermost sollte nun auf Port 8065 laufen. Sie k\u00f6nnen auf die Weboberfl\u00e4che zugreifen, indem Sie im Browser <code>http:\/\/:8065<\/code> aufrufen.<\/p>\n<h2>Schritt 7: Mattermost als Dienst einrichten<\/h2>\n<p>Um Mattermost automatisch beim Systemstart zu starten, m\u00fcssen Sie eine Systemd-Dienstdatei erstellen:<\/p>\n<pre>        sudo nano \/etc\/systemd\/system\/mattermost.service\r\n    <\/pre>\n<p>F\u00fcgen Sie die folgende Konfiguration hinzu:<\/p>\n<pre>        [Unit]\r\n        Description=Mattermost\r\n        After=network.target\r\n\r\n        [Service]\r\n        Type=simple\r\n        User=mattermost\r\n        Group=mattermost\r\n        ExecStart=\/opt\/mattermost\/bin\/mattermost\r\n        WorkingDirectory=\/opt\/mattermost\r\n        Restart=always\r\n        LimitNOFILE=49152\r\n\r\n        [Install]\r\n        WantedBy=multi-user.target\r\n    <\/pre>\n<p>Aktivieren und starten Sie den Dienst:<\/p>\n<pre>        sudo systemctl daemon-reload\r\n        sudo systemctl enable mattermost\r\n        sudo systemctl start mattermost\r\n    <\/pre>\n<h2>Schritt 8: Firewall konfigurieren<\/h2>\n<p>Stellen Sie sicher, dass der Port 8065 in Ihrer Firewall ge\u00f6ffnet ist, damit Sie \u00fcber das Webinterface auf Mattermost zugreifen k\u00f6nnen:<\/p>\n<pre>        sudo ufw allow 8065\r\n        sudo ufw reload\r\n    <\/pre>\n<h2>VPS-Empfehlung<\/h2>\n<p>Wenn Sie nach einem zuverl\u00e4ssigen VPS suchen, besuchen Sie den folgenden Link f\u00fcr Windows VPS-Dienste: <a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\" rel=\"follow\">Windows VPS von NetCloud24<\/a>.<\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 In dieser Anleitung erfahren Sie, wie Sie Mattermost auf einem Debian 12-Server installieren. Mattermost ist eine Open-Source-Team-Kommunikationssoftware, die als Slack-Alternative dient und sich f\u00fcr selbstgehostete Umgebungen\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1890"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1890\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}