見出し画像

Mattermost(8.1.7) 導入

前提条件として、Mysqlが導入されている事
[root@irohaboard-sv data]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 262125
Server version: 10.3.28-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create user 'mmuser'@'localhost' identified by 'mmpass'
-> ;
Query OK, 0 rows affected (0.144 sec)

MariaDB [(none)]> create database mattermost;
Query OK, 1 row affected (0.020 sec)

MariaDB [(none)]> grant all privileges on mattermost.* to 'mmuser'@'localhost';
Query OK, 0 rows affected (0.018 sec)

MariaDB [(none)]>

MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| alfresco |
| information_schema |
| irohaboard |
| keycloak |
| matcha |
| mattermost |
| mysql |
| nextcloud |
+--------------------+
14 rows in set (0.191 sec)

[root@irohaboard-sv tmp]# wget https://releases.mattermost.com/8.1.7/mattermost-8.1.7-linux-amd64.tar.gz
--2024-01-17 13:05:28-- https://releases.mattermost.com/8.1.7/mattermost-8.1.7-linux-amd64.tar.gz
releases.mattermost.com (releases.mattermost.com) をDNSに問いあわせています... 99.86.199.35, 99.86.199.94, 99.86.199.61, ...
releases.mattermost.com (releases.mattermost.com)|99.86.199.35|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 437572604 (417M) [application/x-tar]
`mattermost-8.1.7-linux-amd64.tar.gz' に保存中

mattermost-8.1.7-linux-am 100%[===================================>] 417.30M 24.1MB/s 時間 30s

2024-01-17 13:06:00 (13.7 MB/s) - `mattermost-8.1.7-linux-amd64.tar.gz' へ保存完了 [437572604/437572604]

mattermost/client/4038.acec16d411c00eb00a85.js.map
mattermost/ENTERPRISE-EDITION-LICENSE.txt
mattermost/manifest.txt
mattermost/NOTICE.txt
[root@irohaboard-sv tmp]# mv mattermost /opt
[root@irohaboard-sv tmp]# mkdir /opt/mattermost/data
[root@irohaboard-sv tmp]# useradd --system --user-group mattermost
The memcache was not invalidated by NSS responder.
[root@irohaboard-sv tmp]# chown -R mattermost:mattermost /opt/mattermost
[root@irohaboard-sv tmp]# chmod -R g+w /opt/mattermost
[root@irohaboard-sv tmp]# cp /opt/mattermost/config/config.json /opt/mattermost/config/config.org.json

[root@irohaboard-sv tmp]# vi /opt/mattermost/config/config.json

[fma@irohaboard-sv standalone]$ sudo -u mattermost /opt/mattermost/bin/mattermost

{"timestamp":"2024-01-17 13:50:18.159 +09:00","level":"info","msg":"Server is initializing...","caller":"platform/service.go:173","go_version":"go1.19.5"}
{"timestamp":"2024-01-17 13:50:18.160 +09:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:246","database":"master","dataSource":":@tcp(localhost:3306)/mattermost?writeTimeout=30s&charset=utf8mb4%2Cutf8"}
{"timestamp":"2024-01-17 13:50:18.161 +09:00","level":"warn","msg":"MariaDB detected. You are using an unsupported database. Please consider using MySQL or Postgres.","caller":"sqlstore/store.go:1232"}
{"timestamp":"2024-01-17 13:50:18.165 +09:00","level":"warn","msg":"Table collation mismatch","caller":"sqlstore/store.go:1295","table_name":"uploadsessions","connection_collation":"utf8mb4_general_ci","table_collation":"utf8_general_ci"}
{"timestamp":"2024-01-17 13:50:18.168 +09:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:246","database":"master","dataSource":":@tcp(localhost:3306)/mattermost?multiStatements=true&writeTimeout=30s&charset=utf8mb4%2Cutf8"}
{"timestamp":"2024-01-17 13:50:45.327 +09:00","level":"error","msg":"License key from https://mattermost.com required to unlock enterprise features.","caller":"platform/license.go:102","error":"resource: License id: "}
{"timestamp":"2024-01-17 13:50:45.359 +09:00","level":"error","msg":"License key from https://mattermost.com required to unlock enterprise features.","caller":"platform/license.go:102","error":"resource: License id: "}
{"timestamp":"2024-01-17 13:50:45.359 +09:00","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:96","number_of_hubs":8}
{"timestamp":"2024-01-17 13:50:45.359 +09:00","level":"info","msg":"Loaded system translations","caller":"i18n/i18n.go:132","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"timestamp":"2024-01-17 13:50:45.362 +09:00","level":"info","msg":"Ensuring the telemetry ID..","caller":"telemetry/telemetry.go:149"}
{"timestamp":"2024-01-17 13:50:45.399 +09:00","level":"info","msg":"telemetry ID is set","caller":"telemetry/telemetry.go:159","id":"9cxwstqkuffn8qqabkxqx8jpge"}
{"timestamp":"2024-01-17 13:50:45.404 +09:00","level":"info","msg":"Current version is 8.1.7 (7025434773/Tue Nov 28 22:49:35 UTC 2023/77aeda5cedc8ef60d06da024202b8c7999efd671/e33941bd63a35f71153c8035608dd8904d1bf305)","caller":"app/server.go:426","current_version":"8.1.7","build_number":"7025434773","build_date":"Tue Nov 28 22:49:35 UTC 2023","build_hash":"77aeda5cedc8ef60d06da024202b8c7999efd671","build_hash_enterprise":"e33941bd63a35f71153c8035608dd8904d1bf305","service_environment":"production"}
{"timestamp":"2024-01-17 13:50:45.404 +09:00","level":"info","msg":"Enterprise Build","caller":"app/server.go:436","enterprise_build":true}
{"timestamp":"2024-01-17 13:50:45.404 +09:00","level":"info","msg":"Printing current working","caller":"app/server.go:442","directory":"/opt/keycloak/standalone"}
{"timestamp":"2024-01-17 13:50:45.404 +09:00","level":"info","msg":"Loaded config","caller":"app/server.go:443","source":"file:///opt/mattermost/config/config.json"}
{"timestamp":"2024-01-17 13:50:45.492 +09:00","level":"info","msg":"Starting workers","caller":"jobs/workers.go:48"}
{"timestamp":"2024-01-17 13:50:45.492 +09:00","level":"info","msg":"Starting schedulers.","caller":"jobs/schedulers.go:47"}
{"timestamp":"2024-01-17 13:50:45.492 +09:00","level":"warn","msg":"Fetching time of first server run failed. Setting to 'now'.","caller":"app/server.go:531"}

後は、コンソールから http://自身のIP:8065/login
オンプレ環境で使えます、使い勝手もSlack同様で違和感は無いと思います




いいなと思ったら応援しよう!