{"id":3313,"date":"2022-04-13T10:20:18","date_gmt":"2023-11-23T15:18:15","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-mattermost-on-rocky-linux-9","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-mattermost-on-rocky-linux-9\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Mattermost on Rocky Linux 9"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<h2>Introduction<\/h2>\n<p>Mattermost is an open-source messaging platform designed for team collaboration. It provides various features such as file sharing, integrations, and support for various communication methods. In this guide, we will walk you through the steps to install Mattermost on Rocky Linux 9.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A server running Rocky Linux 9.<\/li>\n<li>Root access or a user with <code>sudo<\/code> privileges.<\/li>\n<li>Basic knowledge of the command line.<\/li>\n<\/ul>\n<h2>Step 1: Update the System<\/h2>\n<p>Before starting the installation, it&#8217;s a good idea to update your system packages:<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<h2>Step 2: Install Dependencies<\/h2>\n<p>Install the necessary dependencies for running Mattermost:<\/p>\n<pre><code>sudo dnf install -y postfix wget curl<\/code><\/pre>\n<h2>Step 3: Install PostgreSQL<\/h2>\n<p>Mattermost uses a database to store data. We&#8217;ll install PostgreSQL:<\/p>\n<pre><code>sudo dnf install -y postgresql postgresql-server postgresql-contrib<\/code><\/pre>\n<p>Initialize the PostgreSQL database:<\/p>\n<pre><code>sudo postgresql-setup --initdb<\/code><\/pre>\n<p>Start and enable the PostgreSQL service:<\/p>\n<pre><code>sudo systemctl start postgresql\r\nsudo systemctl enable postgresql<\/code><\/pre>\n<h2>Step 4: Create PostgreSQL Database and User<\/h2>\n<p>Log in to the PostgreSQL prompt:<\/p>\n<pre><code>sudo -u postgres psql<\/code><\/pre>\n<p>Inside the PostgreSQL shell, create a database and a user for Mattermost:<\/p>\n<pre><code>CREATE DATABASE mattermost;\r\nCREATE USER mmuser WITH PASSWORD 'your_password';\r\nGRANT ALL PRIVILEGES ON DATABASE mattermost TO mmuser;\r\n\\q<\/code><\/pre>\n<p>Replace <code>your_password<\/code> with a secure password.<\/p>\n<h2>Step 5: Download and Install Mattermost<\/h2>\n<p>Download the latest release of Mattermost:<\/p>\n<pre><code>wget https:\/\/releases.mattermost.com\/7.6.0\/linux\/mattermost-team-7.6.0-linux-amd64.tar.gz<\/code><\/pre>\n<p>Extract the downloaded archive:<\/p>\n<pre><code>tar -xvzf mattermost-team-7.6.0-linux-amd64.tar.gz<\/code><\/pre>\n<p>Move the Mattermost files to the appropriate directory:<\/p>\n<pre><code>sudo mv mattermost \/opt\/<\/code><\/pre>\n<p>Create a symbolic link for easier access:<\/p>\n<pre><code>sudo ln -s \/opt\/mattermost\/bin\/mattermost \/usr\/local\/bin\/mattermost<\/code><\/pre>\n<h2>Step 6: Configure Mattermost<\/h2>\n<p>Go to the Mattermost directory:<\/p>\n<pre><code>cd \/opt\/mattermost\/config<\/code><\/pre>\n<p>Copy the sample configuration file:<\/p>\n<pre><code>sudo cp config.json config.json.bak\r\nsudo nano config.json<\/code><\/pre>\n<p>Locate the database section and modify it to match your PostgreSQL settings:<\/p>\n<pre><code>\"DriverName\": \"postgres\",\r\n    \"DataSource\": \"mmuser:your_password@localhost\/mattermost?sslmode=disable\"<\/code><\/pre>\n<p>Save and exit the editor.<\/p>\n<h2>Step 7: Start Mattermost<\/h2>\n<p>Start the Mattermost service:<\/p>\n<pre><code>sudo mattermost<\/code><\/pre>\n<p>To keep it running in the background, you might want to use a tool like <code>screen<\/code> or <code>nohup<\/code>.<\/p>\n<h2>Step 8: Configure Firewall<\/h2>\n<p>If you are using a firewall, allow access to the Mattermost port (default is 8065):<\/p>\n<pre><code>sudo firewall-cmd --add-port=8065\/tcp --permanent\r\nsudo firewall-cmd --reload<\/code><\/pre>\n<h2>Step 9: Access Mattermost<\/h2>\n<p>Open a web browser and navigate to <code>http:\/\/your_server_ip:8065<\/code>. You should see the Mattermost setup page. Follow the on-screen instructions to complete the setup.<\/p>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed Mattermost on Rocky Linux 9. You can now create an account and start using Mattermost for your team collaboration.<\/p>\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/mattermost.com\/\" target=\"_blank\" rel=\"follow\">Mattermost Official Website<\/a><\/li>\n<li><a href=\"https:\/\/docs.mattermost.com\/\" target=\"_blank\" rel=\"follow\">Mattermost Documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.postgresql.org\/\" target=\"_blank\" rel=\"follow\">PostgreSQL Official Website<\/a><\/li>\n<\/ul>\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 Introduction Mattermost is an open-source messaging platform designed for team collaboration. It provides various features such as file sharing, integrations, and support for various communication methods.\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-3313","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\/3313","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=3313"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3313\/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=3313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}