in This Tutorial you will learn " How To install Mattermost with Nginx web server on Rocky Linux 8.5"
Mattermost is an open-source instant messaging service.
Nginx (pronounced engine x) is open source Web server software that also performs reverse proxy, load balancing, email proxy and HTTP cache services.
Hoempage - https://mattermost.com/
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y ; dnf install mysql-server nginx -y
systemctl start mysqld ; systemctl enable mysqld
mysql_secure_installation
mysql -u root -p
CREATE DATABASE matterdb;
CREATE USER 'matteruser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON matterdb.* TO matteruser@localhost;
FLUSH PRIVILEGES;
EXIT;
useradd --system --user-group mattermost ; wget https://releases.mattermost.com/6.0.2/mattermost-6.0.2-linux-amd64.tar.gz
tar -xf mattermost-6.0.2-linux-amd64.tar.gz ; mv mattermost /opt
mkdir /opt/mattermost/data ; chown -R mattermost:mattermost /opt/mattermost ; chmod -R g+w /opt/mattermost ; nano /opt/mattermost/config/config.json
"SiteURL": "http://server.yourdomain.com",
"DriverName": "mysql",
"DataSource": "matteruser:password@tcp(localhost:3306)/matterdb?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s",
nano /etc/systemd/system/mattermost.service
[Unit]
Description=Mattermost
After=syslog.target network.target mysqld.service
[Service]
Type=notify
WorkingDirectory=/opt/mattermost
User=mattermost
ExecStart=/opt/mattermost/bin/mattermost
PIDFile=/var/spool/mattermost/pid/master.pid
TimeoutStartSec=3600
LimitNOFILE=49152
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start mattermost ; systemctl enable mattermost ; systemctl status mattermost
nano /etc/nginx/conf.d/mattermost.conf
server {
listen 80;
server_name server.yourdomain.com;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://localhost:8065/;
index index.html index.htm;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
nginx -t
systemctl start nginx ; systemctl enable nginx ; systemctl status nginx
http://server.yourdomain.com | admin/●●●●●●
__________________________________________________________________________________________
Saturday, January 22, 2022
How To install Mattermost with Nginx web server on Rocky Linux 8.5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment