{"id":26817,"date":"2023-06-07T01:23:18","date_gmt":"2024-01-31T22:37:50","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/"},"modified":"2025-08-11T23:14:30","modified_gmt":"2025-08-11T15:14:30","slug":"%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/","title":{"rendered":"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d"},"content":{"rendered":"<p>\u6709\u6d88\u606f\u79f0\uff0cSlack\u5c06\u4e8e2022\u5e749\u67081\u65e5\u8d77\u6539\u53d8\u5176\u514d\u8d39\u8ba1\u5212\uff08\u4ece\u6b64\u53ea\u80fd\u67e5\u770b\u8fc7\u53bb90\u5929\u7684\u5386\u53f2\u8bb0\u5f55\uff09\u3002<br \/>\n\u4f5c\u4e3aSlack\u7684\u66ff\u4ee3\u54c1\uff0cMattermost\u662f\u4e00\u4e2a\u7ecf\u5e38\u88ab\u63d0\u53ca\u7684\u804a\u5929\u670d\u52a1\uff0c\u901a\u8fc7\u5728\u4e2a\u4eba\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\uff0c\u60a8\u53ef\u4ee5\u65e0\u9650\u5236\u4e14\u514d\u8d39\u5730\u4f7f\u7528\u4e0eSlack\u76f8\u5f53\u7684\u670d\u52a1\u3002<\/p>\n<p>\u5728\u6211\u6240\u5c5e\u7684\u56e2\u961f\u4e2d\uff0c\u6211\u4eec\u51b3\u5b9a\u5728\u81ea\u5df1\u7684\u8ba1\u7b97\u673a\u4e0a\u8fdb\u884cMattermost\u7684\u672c\u5730\u90e8\u7f72\u8fd0\u8425\u3002\u56e0\u4e3a\u5bf9Linux\u548c\u670d\u52a1\u5668\u8fd0\u7ef4\u975e\u5e38\u964c\u751f\u7684\u72b6\u6001\u4e0b\u5f00\u59cb\uff0c\u6211\u4e00\u8fb9\u6478\u7d22\u4e00\u8fb9\u8fdb\u884c\u8c03\u67e5\uff0c\u6700\u7ec8\u82b1\u4e86\u5927\u7ea6\u4e24\u5468\u65f6\u95f4\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Mattermost\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u521d\u671f\u8a2d\u5b9a\u3001Slack\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u4f5c\u696d\u306b\u3064\u3044\u3066\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u3064\u3064\u3001\u6700\u5f8c\u306b\u8e93\u3044\u305f\u30dd\u30a4\u30f3\u30c8\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u73af\u5883\u4ee5\u4e0b\u662f\u8ba1\u7b97\u673a\u7684\u76f8\u5173\u4fe1\u606f\uff1a<br \/>\n\u30fb\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux \/ Ubuntu 20.04.4 LTS<br \/>\n\u30fb\u4e2d\u592e\u5904\u7406\u5668\uff1aIntel x86_64<br \/>\n\u30fbMattermost\uff1a\u7248\u672c 7.1.2\uff08\u6709\u5173\u6bcf\u4e2a\u7248\u672c\u7684\u66f4\u65b0\u4fe1\u606f\uff0c\u8bf7\u70b9\u51fb\u6b64\u5904\uff09<br \/>\n\u30fbMySQL\uff1a\u7248\u672c 8.0.30<\/p>\n<h1>Mattermost\u7684\u5b89\u88c5\u65b9\u5f0f<\/p>\n<h3>\u6574\u4f53\u5f62\u8c61\u5728\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u5148\u5c55\u793a\u6574\u4f53\u60c5\u51b5\u3002<\/p>\n<pre class=\"post-pre\"><code># \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\r\nroot\/\r\n  \u2523\u2501 opt\/mattermost\/\r\n                 \u2523\u2501 bin\/mattermost (\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb)\r\n                 \u2523\u2501 config\/config.json (\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb)\r\n                 \u2523\u2501 data\/\r\n                      \u2523\u2501 users\/    (\u30e6\u30fc\u30b6\u30fc\u60c5\u5831)\r\n                      \u2523\u2501 import\/   (Slack\u7b49\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u7528\u30c7\u30fc\u30bf\u3092\u683c\u7d0d)\r\n                      \u2523\u2501 20220801\/ (\u65e5\u4ed8\u306b\u5bfe\u5fdc\u3059\u308b\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb)\r\n\r\n# \u30c1\u30e3\u30c3\u30c8\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u306fMySQL\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u308b\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5\u64cd\u4f5c\u6211\u57fa\u672c\u4e0a\u6309\u7167\u5b98\u65b9\u7684\u6b65\u9aa4\u8fdb\u884c\u4e86\u64cd\u4f5c\u3002<\/p>\n<h3>MySQL\u662f\u4e00\u79cd\u5f00\u6e90\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002\u4eca\u56de\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306bapt\u3092\u7528\u3044\u305f\u3002(\u74b0\u5883\u306b\u5fdc\u3058\u3066\u597d\u304d\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u9078\u629e)<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>apt update\r\n<span class=\"nb\">sudo <\/span>apt upgrade\r\n<span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>mysql-server\r\n<\/code><\/pre>\n<p>\u5728\u521d\u6b21\u542f\u52a8\u65f6\uff0c\u9700\u8981\u8fdb\u884croot\u7528\u6237\u7684\u8bbe\u7f6e\u3002\u6309\u7167\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u540e\u51fa\u73b0\u7684\u6307\u793a\u8fdb\u884c\u5bc6\u7801\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>mysql_secure_installation\r\n<\/code><\/pre>\n<p>root\u30e6\u30fc\u30b6\u30fc\u3067MySQL\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001mattermost\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8(\u4eca\u56de\u306f&#8221;mmuser&#8221;\u3068\u540d\u4ed8\u3051\u305f)\u3092\u4f5c\u6210\u3059\u308b\uff1a<\/p>\n<pre class=\"post-pre\"><code>mysql -u root -p\r\nmysql&gt; create user 'mmuser'@'localhost' identified by '(\u30d1\u30b9\u30ef\u30fc\u30c9)';  # (\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210)\r\nmysql&gt; create database mattermost;  # (\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210)\r\nmysql&gt; grant all privileges on mattermost.* to 'mmuser'@'localhost';  # (\u6a29\u9650\u4ed8\u4e0e)\r\nmysql&gt; exit  # (mSQL\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8)\r\n<\/code><\/pre>\n<p>Mattermost\u7684\u670d\u52a1\u5668\u901a\u8fc7\u8fd9\u4e2a\u8d26\u6237\u6765\u64cd\u4f5cMySQL\u4e0a\u7684\u6570\u636e\u5e93\u3002<\/p>\n<p>\u786e\u8ba4\u547d\u4ee4\u662f\u5426\u6b63\u786e\u6784\u5efa\u7684\u65b9\u5f0f\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre class=\"post-pre\"><code>mysql&gt; show databases;  # (\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7)\r\nmysql&gt; select user, host from mysql.user;  # (MySQL\u30e6\u30fc\u30b6\u30fc\u78ba\u8a8d)\r\nmysql&gt; show grants for mmuser@localhost;  # (\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u78ba\u8a8d)\r\n<\/code><\/pre>\n<h3>Mattermost &#8211; \u603c\u7b79\u83b7\u53d6\u5e76\u89e3\u538btar\u955c\u50cf\uff0c\u6267\u884c\u6240\u9700\u7684\u6587\u4ef6\u5939\u79fb\u52a8\u548c\u521b\u5efa\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>wget https:\/\/releases.mattermost.com\/7.1.2\/mattermost-7.1.2-linux-amd64.tar.gz\r\n<span class=\"nb\">tar<\/span> <span class=\"nt\">-xvzf<\/span> mattermost<span class=\"k\">*<\/span>.gz\r\n<span class=\"nb\">sudo mv <\/span>mattermost \/opt\r\n<span class=\"nb\">sudo mkdir<\/span> \/opt\/mattermost\/data\r\n<\/code><\/pre>\n<p>\u5728Linux\u7cfb\u7edf\u4e0a\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u542f\u52a8Mattermost\u7684\u7528\u6237\u7ec4\uff0c\u5e76\u6388\u4e88\/opt\/mattermost\u76ee\u5f55\u7684\u64cd\u4f5c\u6743\u9650\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>useradd <span class=\"nt\">--system<\/span> <span class=\"nt\">--user-group<\/span> mattermost\r\n<span class=\"nb\">sudo chown<\/span> <span class=\"nt\">-R<\/span> mattermost:mattermost \/opt\/mattermost\r\n<span class=\"nb\">sudo chmod<\/span> <span class=\"nt\">-R<\/span> g+w \/opt\/mattermost\r\n<\/code><\/pre>\n<p>\u4f7f\u5f97Mattermost\u53ef\u4ee5\u4f7f\u7528MySQL\u7684\u7ba1\u7406\u7528\u6237mmuser\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>vim \/opt\/mattermost\/config\/config.json  <span class=\"c\"># (Mattermost\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b)<\/span>\r\n\r\n<span class=\"s2\">\"SiteURL\"<\/span>:<span class=\"s2\">\"http:\/\/(IP\u30a2\u30c9\u30ec\u30b9or\u30c9\u30e1\u30a4\u30f3\u540d):8065\"<\/span>\r\n<span class=\"s2\">\"Drive name\"<\/span>:<span class=\"s2\">\"mysql\"<\/span>\r\n<span class=\"s2\">\"DataSource\"<\/span>:<span class=\"s2\">\"mmuser:(\u30d1\u30b9\u30ef\u30fc\u30c9)@tcp(localhost:3306)\/(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d)?charset=utf8mb4,utf8<\/span><span class=\"se\">\\u<\/span><span class=\"s2\">0026writeTimeout=30s\"<\/span>\r\n<\/code><\/pre>\n<h3>\u5f00\u59cb\u65e2\u7136\u51c6\u5907\u5de5\u4f5c\u90fd\u505a\u597d\u4e86\uff0c\u90a3\u5c31\u542f\u52a8Mattermost\u8bd5\u8bd5\u770b\u5427\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># mattermost(\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30b6\u30fc) \u3067 bin\/mattermost \u3092\u5b9f\u884c<\/span>\r\n<span class=\"nb\">sudo<\/span> <span class=\"nt\">-u<\/span> mattermost \/opt\/mattermost\/bin\/mattermost \r\n<\/code><\/pre>\n<p>\u5982\u679c\u4ea7\u751f\u5927\u7ea610\u884c\u7684\u8f93\u51fa\u65e5\u5fd7\uff0c\u6700\u540e\u51fa\u73b0\u7c7b\u4f3c&#8221;Server is listening on [::]:8065&#8243;\u7684\u65e5\u5fd7\uff0c\u5219\u8868\u793a\u6b63\u5e38\u3002(\u2192\u5982\u679c\u6709\u9519\u8bef\u63d0\u793a\u5e76\u4e14\u6ca1\u6709\u51fa\u73b0\u8fd9\u6761\u65e5\u5fd7\uff0c\u5219\u53ef\u80fd\u662fMySQL\u7684\u8bbe\u7f6e\u6709\u95ee\u9898)<\/p>\n<p>\u3053\u308c\u306f\u3001\u5b9f\u884c\u72b6\u614b\u306eMattermost\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3001\u30dd\u30fc\u30c8\u756a\u53f78065\u3067\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u6765\u308b\u306e\u3092\u5f85\u6a5f\u3057\u3066\u3044\u308b\u72b6\u614b\u3002<\/p>\n<p>Mattermost\u3092\u5b9f\u884c\u72b6\u614b\u3067\u3001\u624b\u5143\u306e\u30d1\u30bd\u30b3\u30f3\u306e\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/(IP\u30a2\u30c9\u30ec\u30b9 or \u30c9\u30e1\u30a4\u30f3\u540d):8065\u3092URL\u3068\u3057\u3066\u6253\u3061\u8fbc\u3081\u3070Mattermost\u306e\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u753b\u9762\u304c\u51fa\u73fe\u3059\u308b\u306f\u305a\u3002<br \/>\n(\u2192 \u30a2\u30af\u30bb\u30b9\u51fa\u6765\u306a\u3044\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u3088\u3063\u3066\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u906e\u65ad\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027 )<\/p>\n<h3>Systemd\u306e\u8a2d\u5b9a<br \/>\nMattermost\u306e\u8d77\u52d5\u30fb\u505c\u6b62\u306b\u95a2\u3057\u3066\u8af8\u8a2d\u5b9a\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306bsystemd\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo touch<\/span> \/lib\/systemd\/system\/mattermost.service <span class=\"c\"># \u8d77\u52d5\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/span>\r\n<span class=\"nb\">sudo <\/span>vim \/lib\/systemd\/system\/mattermost.service\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u66f8\u304d\u52a0\u3048\u308b\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">[<\/span>Unit<span class=\"p\">]<\/span>\r\nDescription<span class=\"p\">=<\/span>Mattermost\r\nAfter<span class=\"p\">=<\/span>network<span class=\"p\">.<\/span>target\r\nAfter<span class=\"p\">=<\/span>mysql<span class=\"p\">.<\/span>service\r\nBindsTo<span class=\"p\">=<\/span>mysql<span class=\"p\">.<\/span>service\r\n\r\n<span class=\"p\">[<\/span>Service<span class=\"p\">]<\/span>\r\nType<span class=\"p\">=<\/span>notify\r\nExecStart<span class=\"p\">=<\/span><span class=\"sr\">\/opt\/<\/span>mattermost<span class=\"sr\">\/bin\/<\/span>mattermost\r\nTimeoutStartSec<span class=\"p\">=<\/span><span class=\"m\">3600<\/span>\r\nKillMode<span class=\"p\">=<\/span>mixed\r\nRestart<span class=\"p\">=<\/span>always\r\nRestartSec<span class=\"p\">=<\/span><span class=\"m\">10<\/span>\r\nWorkingDirectory<span class=\"p\">=<\/span><span class=\"sr\">\/opt\/<\/span>mattermost\r\n<span class=\"nb\">User<\/span><span class=\"p\">=<\/span>mattermost\r\nGroup<span class=\"p\">=<\/span>mattermost\r\nLimitNOFILE<span class=\"p\">=<\/span><span class=\"m\">49152<\/span>\r\n\r\n<span class=\"p\">[<\/span>Install<span class=\"p\">]<\/span>\r\n  WantedBy<span class=\"p\">=<\/span>mysql<span class=\"p\">.<\/span>service\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3066 mattermost.service \u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u540d\u3067\u4f5c\u6210\u3055\u308c\u305f\u3002\u3053\u308c\u4ee5\u964d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306asystemctl\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u8d77\u52d5\u30fb\u505c\u6b62\u304c\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>systemctl daemon-reload  <span class=\"c\"># (\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u307f)<\/span>\r\n<span class=\"nb\">sudo <\/span>systemctl <span class=\"nb\">enable <\/span>mattermost.service   <span class=\"c\"># (\u518d\u8d77\u52d5\u6642\u3082systemd\u306e\u8a2d\u5b9a\u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f)<\/span>\r\n<span class=\"nb\">sudo <\/span>systemctl status mattermost.service   <span class=\"c\"># (\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d)<\/span>\r\n<span class=\"nb\">sudo <\/span>systemctl start mattermost.service    <span class=\"c\"># (Mattermost\u3092\u8d77\u52d5)<\/span>\r\n<span class=\"nb\">sudo <\/span>systemctl stop mattermost.service     <span class=\"c\"># (Mattermost\u3092\u505c\u6b62)<\/span>\r\n<span class=\"nb\">sudo <\/span>systemctl restart mattermost.service  <span class=\"c\"># (Mattermost\u3092\u518d\u8d77\u52d5)<\/span>\r\n<\/code><\/pre>\n<h1>\u521d\u671f\u8a2d\u5b9a\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u30fb\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u306eSMTP\u8a2d\u5b9a\u30fbhttps\u63a5\u7d9a\u306e\u6709\u52b9\u5316\u30fb\u65e5\u672c\u8a9e\u691c\u7d22\u6a5f\u80fd\u306e\u6709\u52b9\u5316\u30fb\u30c1\u30fc\u30e0\u306e\u524a\u9664\u6a5f\u80fd\u3092\u6709\u52b9\u5316\u3001\u3092\u884c\u3046\u3002<br \/>\n\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u306f\u3001Mattemost\u30ed\u30b0\u30a4\u30f3\u4e2d\u753b\u9762\u3067\u306e\u3001\u5de6\u4e0a\u30de\u30fc\u30af(\u6b63\u65b9\u5f62\u304c3\u00d73\u500b\u4e26\u3093\u3060\u3084\u3064)\u3092\u30af\u30ea\u30c3\u30af\u3001\u30b7\u30b9\u30c6\u30e0\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u9078\u629e\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n<h3>\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u3092\u4f5c\u6210http:\/\/(IP\u30a2\u30c9\u30ec\u30b9 or \u30c9\u30e1\u30a4\u30f3\u540d):8065\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u3053\u306e\u521d\u56de\u63a5\u7d9a\u6642\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u81ea\u52d5\u7684\u306b\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\u3068\u306a\u308b\u3002<\/p>\n<h3>SMTP\u8a2d\u5b9a\u30c1\u30fc\u30e0\u3078\u306e\u62db\u5f85\u30e1\u30fc\u30eb\u3084\u901a\u77e5\u30e1\u30fc\u30eb\u3092Mattermost\u5074\u304b\u3089\u9001\u308b\u305f\u3081\u306bSMTP\u8a2d\u5b9a\u304c\u5fc5\u9808\u3068\u306a\u308b\u3002<br \/>\n\u6700\u3082\u7c21\u5358\u306a\u3001outlook\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3068hotmail\u30b5\u30fc\u30d0\u30fc\u306e\u6307\u5b9a\u3092\u884c\u3063\u305f (\u516c\u5f0f\u624b\u9806)\uff1a<\/p>\n<p>\u30fb\u307e\u305a\u306f\u5225\u9014outlook\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001hotmail.com\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n\u30fbMattermost\u5074\u3067SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u306b\u767b\u9332\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>SMTP\u30b5\u30fc\u30d0\u30fc\uff1asmtp.office365.com\r\nSMTP\u30b5\u30fc\u30d0\u30fc\u30dd\u30fc\u30c8\uff1a587\r\nSMTP\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u540d\uff1a(your_email@hotmail.com)\r\nSMTP\u30b5\u30fc\u30d0\u30fc\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a(your_password)\r\nSMTP Server Name to smtp.office365.com\r\n\u63a5\u7d9a\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff1aSTARTTLS\r\n<\/code><\/pre>\n<p>\u30fb\u62db\u5f85\u30e1\u30fc\u30eb\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>\u62db\u5f85\u30e1\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\uff1a\u6709\u52b9\r\n<\/code><\/pre>\n<p>\u30fb\u672c\u756a\u74b0\u5883\u3067\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u305f\u3081\u30e1\u30fc\u30eb\u78ba\u8a8d\u3092\u6709\u52b9\u5316\u3057\u3066\u304a\u304f<\/p>\n<pre class=\"post-pre\"><code>\u96fb\u5b50\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\uff1a\u6709\u52b9\r\n<\/code><\/pre>\n<h3>\u542f\u7528HTTPS\u5916\u90e8\u304b\u3089Mattermost\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u5185\u5bb9\u3084\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081https\u901a\u4fe1\u3092\u6709\u52b9\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\nhttps\u901a\u4fe1\u306b\u306fTLS\u8a3c\u660e\u66f8\u304c\u5fc5\u8981\u3067\u3042\u308a\u3001TLS\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u306b\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002(IP\u30a2\u30c9\u30ec\u30b9\u3067\u53d6\u5f97\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u3082\u3042\u308b\u304c\u3001\u7d50\u5c40\u30c9\u30e1\u30a4\u30f3\u53d6\u5f97\u3057\u305f\u65b9\u304c\u5b89\u3044)<\/p>\n<p>\u3053\u3053\u3067\u306f\u65e2\u306b\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u53d6\u5f97\u3057\u305f\u3068\u3057\u3066\u3001certbot\u3092\u5229\u7528\u3057\u305fTLS\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u304a\u3088\u3073\u81ea\u52d5\u66f4\u65b0\u8a2d\u5b9a\u3092\u8aac\u660e\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code># TLS\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\r\nsudo apt-get install certbot  # certbot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nsudo certbot certonly --standalone -d $(\u30c9\u30e1\u30a4\u30f3\u540d)\r\nsudo certbot certificates  # \u8a3c\u660e\u66f8\u78ba\u8a8d\r\nsudo systemctl status certbot.timer  # \u8a3c\u660e\u66f8\u81ea\u52d5\u66f4\u65b0\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u72b6\u614b\u78ba\u8a8d\r\n\r\n# \u3088\u304f\u308f\u304b\u3089\u3093\u3051\u3069\u5b9f\u884c (\u539f\u6587\uff1aActivate the CAP_NET_BIND_SERVICE capability to allow Mattermost to bind to low ports)\r\n\"sudo setcap cap_net_bind_service=+ep \/opt\/mattermost\/bin\/mattermost\"\r\n<\/code><\/pre>\n<p>\u542f\u7528HTTPS\u901a\u4fe1<\/p>\n<pre class=\"post-pre\"><code>\u30b5\u30a4\u30c8URL\uff1a(\u30c9\u30e1\u30a4\u30f3\u540d)\r\n\u63a5\u7d9a\u5f85\u3061\u30a2\u30c9\u30ec\u30b9\uff1a443\r\n\u30dd\u30fc\u30c880\u3092443\u3078\u8ee2\u9001\u3059\u308b\uff1a\u6709\u52b9\r\n\u63a5\u7d9a\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\uff1aTLS\r\nTLS\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\uff1a(cert.pem\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u6307\u5b9a)\r\nTLS\u9375\u30d5\u30a1\u30a4\u30eb\uff1a(privkey.pem\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u6307\u5b9a)\r\nLet's Encrypt\u3092\u4f7f\u7528\u3059\u308b\uff1a\u6709\u52b9\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306a\u3069\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3067\u30dd\u30fc\u30c880(http)\u3068443(https)\u3092\u958b\u3051\u3066\u304a\u304f\u3002<br \/>\nMattermost\u3092\u518d\u8d77\u52d5\u3057\u3066\u5b8c\u4e86\u3002<\/p>\n<h3>\u65e5\u672c\u8a9e\u691c\u7d22\u6a5f\u80fd\u306e\u6709\u52b9\u5316Mattermost\u3067\u691c\u7d22\u306b\u5fc5\u8981\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u51e6\u7406\u3092\u884c\u3046\u6a5f\u80fd\u306fBleve\u3068\u547c\u3070\u308c\u3066\u3044\u308b\u3002<br \/>\nBleve\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4fdd\u5b58\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3001\u66f8\u63db\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo mkdir \/opt\/mattermost\/bleveindexes\r\nsudo chown mattermost: \/opt\/mattermost\/bleveindexes\r\n<\/code><\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b3\u30f3\u30bd\u30fc\u30eb &gt; \u5b9f\u9a13\u7684\u6a5f\u80fd &gt; Bleve\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u5168\u3066\u6709\u52b9\u306b\u3057\u3066\u3001IndexDir\uff1a\/opt\/mattermost\/bleveindexes\u306b\u8a2d\u5b9a\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ed8\u4e0e\u3092\u4eca\u3059\u3050\u958b\u59cb\u3059\u308b\u3092\u30af\u30ea\u30c3\u30af\u3067\u5b8c\u4e86<\/p>\n<h3>\u30c1\u30fc\u30e0\u306e\u524a\u9664\u6a5f\u80fd\u3092\u6709\u52b9\u5316Mattermost\u3067\u306f\u4eca\u306e\u3068\u3053\u308dGUI\u304b\u3089\u30c1\u30fc\u30e0\u306e\u524a\u9664\u306f\u51fa\u6765\u306a\u3044\u3002<br \/>\nconfig.json\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u30b3\u30de\u30f3\u30c9\u304b\u3089\u30c1\u30fc\u30e0\u524a\u9664\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>\"EnableAPITeamDeletion\"\uff1atrue\r\n\"EnableAPIUserDeletion\"\uff1atrue\r\n\"EnableAPIChannelDeletion\": true\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u4f7f\u7528mmctl\u547d\u4ee4\u5220\u9664\u56e2\u961f\u3002<\/p>\n<pre class=\"post-pre\"><code>mmctl team delete ${\u30c1\u30fc\u30e0\u540d}\r\n<\/code><\/pre>\n<h1>Slack\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u4e3b\u306b \u516c\u5f0f\u624b\u9806(\u82f1\u8a9e)\u3001\u65e5\u672c\u8a9e\u89e3\u8aac \u3092\u53c2\u7167<\/p>\n<h3>Slack\u30c7\u30fc\u30bf\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br \/>\nSlack\u5074\u304b\u3089\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u540d\u3092\u30af\u30ea\u30c3\u30af-&gt;\u300c\u8a2d\u5b9a\u3068\u305d\u306e\u4ed6\u7ba1\u7406\u9805\u76ee\u300d-&gt;\u300c\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e\u8a2d\u5b9a\u300d\u3092\u9078\u629e\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u753b\u9762\u3067\u65e5\u4ed8\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u958b\u59cb\u3001\u3057\u3070\u3089\u304f\u3057\u305f\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u304c\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fslack-bulk-export.zip\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3068\u30c1\u30e3\u30c3\u30c8\u5c65\u6b74\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002<br \/>\n\u753b\u50cf\u306a\u3069\u306e\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u306fSlack\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u5225\u9014\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u305d\u306e\u305f\u3081\u306bSlack\u30a2\u30d7\u30ea\u767b\u9332\u304a\u3088\u3073Token\u3092\u767a\u884c\u3057\u3066\u304a\u304f\u3002\u8a73\u3057\u3044\u624b\u9806\u306f\u4e0a\u8a18\u30ea\u30f3\u30af\u53c2\u7167\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306fslack-advanced-exporter\u3092\u7528\u3044\u3066\u884c\u3046\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># slack-advanced-exporter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span>\r\ncurl <span class=\"nt\">--location<\/span> <span class=\"nt\">--remote-name<\/span> https:\/\/github.com\/grundleborg\/slack-advanced-exporter\/releases\/download\/v0.4.0\/slack-advanced-exporter.linux-amd64.tar.gz\r\n<span class=\"nb\">tar<\/span> <span class=\"nt\">--extract<\/span> <span class=\"nt\">--file<\/span><span class=\"o\">=<\/span>slack-advanced-exporter.linux-amd64.tar.gz\r\n<span class=\"nb\">mv<\/span> <span class=\"nt\">--verbose<\/span> slack-advanced-exporter \/usr\/local\/bin\/\r\n\r\n<span class=\"c\"># \u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3068E\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092Slack\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/span>\r\nslack-advanced-exporter <span class=\"nt\">--input-archive<\/span> slack-bulk-export.zip <span class=\"nt\">--output-archive<\/span> export-with-emails.zip fetch-emails <span class=\"nt\">--api-token<\/span> <span class=\"k\">${<\/span><span class=\"nv\">SLACK_TOKEN<\/span><span class=\"k\">}<\/span>\r\nslack-advanced-exporter <span class=\"nt\">--input-archive<\/span> export-with-emails.zip <span class=\"nt\">--output-archive<\/span> export-with-emails-and-attachments.zip fetch-attachments\r\n<\/code><\/pre>\n<p>\u751f\u6210\u3055\u308c\u305fexport-with-emails-and-attachments.zip\u306b\u306f\u3001Slack\u5074\u306e\u5168\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002<\/p>\n<h3>\u5c06\u6570\u636e\u5bfc\u5165Mattermost\u4e8b\u5148\u521b\u5efaMattermost\u56e2\u961f\uff0c\u5e76\u5bfc\u5165\u5230\u76ee\u6807\u4f4d\u7f6e\u3002<\/p>\n<p>mmetl\u3092\u7528\u3044\u3066\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092Mattermost\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3084\u3059\u3044\u30c7\u30fc\u30bf\u5f62\u5f0f\u3078\u306e\u5909\u63db\u3092\u884c\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># mmetl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span>\r\ncurl <span class=\"nt\">--location<\/span> <span class=\"nt\">--remote-name<\/span> https:\/\/github.com\/mattermost\/mmetl\/releases\/download\/0.0.1\/mmetl.linux-amd64.tar.gz\r\n<span class=\"nb\">tar<\/span> <span class=\"nt\">--extract<\/span> <span class=\"nt\">--file<\/span><span class=\"o\">=<\/span>mmetl.linux-amd64.tar.gz\r\n<span class=\"nb\">mv<\/span> <span class=\"nt\">--verbose<\/span> mmetl \/usr\/local\/bin\/\r\n\r\n<span class=\"c\"># ${TEAMid}\u306b\u306f\u3001\"\u8868\u793a\u540d\"\u3067\u306f\u306a\u304f\"\u30c1\u30fc\u30e0ID\"(URL\u306b\u8868\u793a\u3055\u308c\u308b)\u306e\u65b9\u3092\u6307\u5b9a<\/span>\r\nmmetl transform slack <span class=\"nt\">--team<\/span> <span class=\"k\">${<\/span><span class=\"nv\">TEAMid<\/span><span class=\"k\">}<\/span> <span class=\"nt\">--file<\/span> export-with-emails-and-attachments.zip <span class=\"nt\">--output<\/span> mattermost_import.jsonl\r\n<\/code><\/pre>\n<p>\u30c1\u30e3\u30c3\u30c8\u5c65\u6b74\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u542b\u3080mattermost_import.jsonl\u3068\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u305fbulk-export-attachments\u304c\u751f\u6210\u3055\u308c\u308b\u3002<br \/>\n\u3053\u308c\u3089\u3092\u307e\u3068\u3081\u3066zip\u5316\u3059\u308b\uff1a<\/p>\n<pre class=\"post-pre\"><code>zip <span class=\"nt\">-r<\/span> mattermost-bulk-import.zip bulk-export-attachments mattermost_import.jsonl\r\n<\/code><\/pre>\n<p>Mattermost\u3078\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306fmmctl\u3092\u7528\u3044\u3066\u884c\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># mmctl\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5<\/span>\r\n<span class=\"nb\">ln<\/span> <span class=\"nt\">--symbolic<\/span> <span class=\"nt\">--verbose<\/span> \/opt\/mattermost\/bin\/mmctl \/usr\/local\/bin\/\r\n\r\n<span class=\"c\"># mmctl\u3092\u4f7f\u7528<\/span>\r\nmmctl import upload mattermost-bulk-import.zip  <span class=\"c\"># \"\/opt\/mattermost\/data\/import\" \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306bzip\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3044\u308b\u3060\u3051<\/span>\r\nmmctl import list available  <span class=\"c\"># \u3053\u3053\u3067\u8868\u793a\u3055\u308c\u308bzip\u30d5\u30a1\u30a4\u30eb\u3092\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6307\u5b9a\u3059\u308b<\/span>\r\nmmctl import process <span class=\"si\">$(<\/span>File_name<span class=\"si\">)<\/span>.zip\r\n\r\n<span class=\"c\"># \u5b9f\u884c\u30b8\u30e7\u30d6\u306e\u78ba\u8a8d<\/span>\r\nmmctl import job show <span class=\"nt\">--json<\/span> <span class=\"si\">$(<\/span>\u30b8\u30e7\u30d6ID<span class=\"si\">)<\/span>\r\n<span class=\"c\"># \u5168\u30b8\u30e7\u30d6\u5c65\u6b74\u306e\u78ba\u8a8d<\/span>\r\nmmctl import job list \r\n<\/code><\/pre>\n<p>\u3044\u304f\u3064\u304b\u30a4\u30f3\u30dd\u30fc\u30c8\u4f5c\u696d\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u8a70\u307e\u3063\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u304a\u304f\uff1a<br \/>\n\u2192 \u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3059\u304e\u308b\u30fb\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u591a\u3059\u304e\u308b\u306a\u3069\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b<br \/>\n\u2192 \u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u6709\u308a\u306e\u5834\u5408\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b<br \/>\n\u2192 \u8907\u6570\u306eSlack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b<br \/>\n\u2192 \u30b9\u30c6\u30fc\u30bf\u30b9\u304cin_progress\u306e\u307e\u307e\u7d42\u308f\u3089\u306a\u3044\u73fe\u8c61<\/p>\n<h1>\u30a8\u30e9\u30fc\u96c6<\/p>\n<h3>&#8220;Server is listening on [::]:8065&#8243;\u306e\u30ed\u30b0\u304c\u51fa\u306a\u3044<\/p>\n<pre class=\"post-pre\"><code>{\u201clevel\u201d:\u201cerror\u201d,\u201cts\u201d:1619691579.4546628,\u201ccaller\u201d:\u201csqlstore\/supplier.go:258\u201d,\r\n\u201cmsg\u201d:\u201cFailed to ping DB\u201d,\u201cerror\u201d:\u201cdial tcp: lookup : no such host\u201d,\u201cretrying in seconds\u201d:10}\r\n<\/code><\/pre>\n<p>\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u308b\u5834\u5408\u3001Mattermost\u304cMySQL\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3067\u304d\u3067\u3044\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3002(\u53c2\u8003\uff1a\u540c\u3058\u75c7\u72b6\u306e\u4eba)<br \/>\n\u3053\u306e\u5834\u5408\u3001MySQL\u306e\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210\u3001\u3082\u3057\u304f\u306f\u305d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u60c5\u5831\u3092config.json\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u7b87\u6240\u3067\u8aa4\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<h3>(IP\u30a2\u30c9\u30ec\u30b9):8065 \u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u306a\u3044Ubuntu\u30b5\u30fc\u30d0\u30fc\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u3088\u3063\u3066\u5916\u90e8\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002Ubuntu\u30b5\u30fc\u30d0\u30fc\u5074\u3067<\/p>\n<pre class=\"post-pre\"><code>curl <span class=\"nt\">-i<\/span> localhost:8065\r\n<\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u3066html\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3042\u308c\u3070\u3001mattermost\u306e\u8d77\u52d5\u306b\u6210\u529f\u3057\u3066\u304a\u308a\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306f\u51fa\u6765\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p>\u307e\u305a\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u30dd\u30fc\u30c8\u958b\u653e\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002(\u8a73\u3057\u304f\u7121\u3044\u4eba\u5411\u3051\uff1a\u30dd\u30fc\u30c8\u958b\u653e\u3068\u306f\u306a\u306b\u304b)<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>ufw status <span class=\"c\"># \u30dd\u30fc\u30c8\u72b6\u614b\u306e\u78ba\u8a8d<\/span>\r\n<span class=\"nb\">sudo <\/span>ufw allow 8065\/TCP <span class=\"c\"># \u30dd\u30fc\u30c8\u958b\u653e<\/span>\r\n<span class=\"nb\">sudo <\/span>ufw reload <span class=\"c\"># \u8a2d\u5b9a\u306e\u6709\u52b9\u5316<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u4ed6\u306b\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u95a2\u9023\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b\u3068\u826f\u3055\u305d\u3046\u3002<br \/>\nVPS\u4e0a\u3067\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u69cb\u7bc9\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001VPS\u5074\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3082\u30dd\u30fc\u30c8\u958b\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3002<\/p>\n<h3>Slack\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u30a8\u30e9\u30fc (1)<br \/>\n\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6642\u306b\u3044\u308d\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u304b\u3082\u3002<\/p>\n<pre class=\"post-pre\"><code>Error: failed to create upload session: : Unable to upload file. File is too large\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304cMattermost\u5074\u306e\u8a2d\u5b9a\u306e\u9650\u754c\u5024\u3092\u8d85\u3048\u3066\u3044\u308b\u306e\u3067\u3001config.json\u3082\u3057\u304f\u306fGUI\u5074\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u95a2\u3059\u308b\u8a2d\u5b9a(&#8220;MaxFileSize&#8221;)\u3092\u66f8\u304d\u63db\u3048\u308b\u3002(\u521d\u671f\u8a2d\u5b9a\u3067\u306f100MB\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b)<br \/>\n\u8a2d\u5b9a\u5909\u66f4\u5f8c\u306bsystemctl restart mattermost\u3067\u518d\u8d77\u52d5\u3057\u3066\u304a\u304f\u3068\u78ba\u5b9f\u306b\u6709\u52b9\u5316\u3067\u304d\u308b\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u30c1\u30fc\u30e0\u306e\u6700\u5927\u4eba\u6570\u3092\u8d85\u3048\u3066\u30a8\u30e9\u30fc\u306a\u3069\u304c\u51fa\u305f\u3002&#8221;MaxUsersPerTeam&#8221;\u3092\u66f8\u304d\u63db\u3048\u305f\u3002(\u521d\u671f\u8a2d\u5b9a\u3067\u306f50\u4eba\u3068\u306a\u3063\u3066\u3044\u308b)<\/p>\n<h3>Slack\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u30a8\u30e9\u30fc (2)Mattermost 7.1.2 \u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307emmctl\u3067\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u5165\u308a\u306e\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">[<\/span>\r\n  <span class=\"o\">{<\/span>\r\n    \u301c\r\n    <span class=\"s2\">\"status\"<\/span>: <span class=\"s2\">\"error\"<\/span>,\r\n    <span class=\"s2\">\"progress\"<\/span>: <span class=\"nt\">-1<\/span>,\r\n    <span class=\"s2\">\"data\"<\/span>: <span class=\"o\">{<\/span>\r\n      <span class=\"s2\">\"error\"<\/span>: <span class=\"s2\">\"Error while processing bulk import attachments. \u2014 attachment <\/span><span class=\"se\">\\\"<\/span><span class=\"s2\">data\/bulk-export-attachments\/F035BTPTQ_test-image.png<\/span><span class=\"se\">\\\"<\/span><span class=\"s2\"> not found in map\"<\/span>,\r\n      <span class=\"s2\">\"import_file\"<\/span>: <span class=\"s2\">\"7coajdui93ndmpqrzf_mattermost-bulk-import.zip\"<\/span>,\r\n      <span class=\"s2\">\"line_number\"<\/span>: <span class=\"s2\">\"9\"<\/span>\r\n    <span class=\"o\">}<\/span>\r\n  <span class=\"o\">}<\/span>\r\n<span class=\"o\">]<\/span>\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\uff0c\u770b\u8d77\u6765\u6587\u4ef6\u5df2\u7ecf\u88ab\u8bbe\u5b9a\u4e3a\u4ecedata\/bulk-export-attachments\/\u76ee\u5f55\u4e0b\u8bfb\u53d6\uff0c\u6240\u4ee5\u9700\u8981\u624b\u52a8\u79fb\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">mkdir <\/span>data\r\n<span class=\"nb\">mv <\/span>bulk-export-attachments data\/\r\nzip <span class=\"nt\">-r<\/span> mattermost-bulk-import data mattermost_import.jsonl\r\n<\/code><\/pre>\n<p>\u3067\u89e3\u6c7a\u3057\u305f<\/p>\n<h3>Slack\u304b\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u30a8\u30e9\u30fc (3)\u5728\u4ece\u591a\u4e2aSlack\u5de5\u4f5c\u7a7a\u95f4\u5bfc\u5165\u5230\u540c\u4e00\u4e2aMattermost\u670d\u52a1\u5668\u65f6\uff0c\u51fa\u73b0\u4e86\u4ee5\u4e0b\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code>mmctl import job show <span class=\"nt\">--json<\/span> 9wmqpqhm67y76foesqw  <span class=\"c\"># \u30b8\u30e7\u30d6\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/span>\r\n<span class=\"o\">[<\/span>\r\n  <span class=\"o\">{<\/span>\r\n    \u301c\r\n    <span class=\"s2\">\"status\"<\/span>: <span class=\"s2\">\"error\"<\/span>,\r\n    <span class=\"s2\">\"progress\"<\/span>: <span class=\"nt\">-1<\/span>,\r\n    <span class=\"s2\">\"data\"<\/span>: <span class=\"o\">{<\/span>\r\n      <span class=\"s2\">\"error\"<\/span>: <span class=\"s2\">\"We could not count the users. \u2014 importUser: An account with that email already exists., invalid input: entity: User field: email value: mail-address@google.com\"<\/span>,\r\n      <span class=\"s2\">\"import_file\"<\/span>: <span class=\"s2\">\"stwsmetagifuume9txg6c_mattermost-bulk-import.zip\"<\/span>,\r\n      <span class=\"s2\">\"line_number\"<\/span>: <span class=\"s2\">\"6\"<\/span>\r\n    <span class=\"o\">}<\/span>\r\n  <span class=\"o\">}<\/span>\r\n<span class=\"o\">]<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306f\u3001\u8907\u6570\u306eSlack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u304a\u3044\u3066\u540c\u4e00\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u7528\u3057\u306a\u304c\u3089\u7570\u306a\u308b\u30e6\u30fc\u30b6\u30fc\u30cd\u30fc\u30e0\u3092\u767b\u9332\u3057\u3066\u3044\u308b\u4eba\u304c\u3044\u308b\u3068\u767a\u751f\u3059\u308b\u3002<br \/>\nMattermost\u5074\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u5358\u4f4d\u3067\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u30921\u5bfe1\u306b\u7d10\u3065\u3051\u3066\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u60c5\u5831\u304c\u3042\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002<br \/>\n\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u306f\u3001mattermost_import.jsonl\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3068\u30c1\u30e3\u30c3\u30c8\u5c65\u6b74\u306b\u542b\u307e\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u30cd\u30fc\u30e0\u3092\u5168\u3066\u65e2\u5b58\u306eID\u3067\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u901a\u3057\u305f\u3002<\/p>\n<h3>Slack\u5bfc\u5165\u65f6\u53d1\u751f\u9519\u8bef (4)\u30b9\u30c6\u30fc\u30bf\u30b9\u304cin_progress\u306e\u307e\u307e\u7d42\u308f\u3089\u306a\u3044\u73fe\u8c61\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u660e\u78ba\u306a\u539f\u56e0\u304c\u308f\u304b\u3089\u306a\u3044\u304c\u3001Twitter\u3067\u691c\u7d22\u3057\u305f\u3068\u3053\u308d\u540c\u3058\u75c7\u72b6\u306e\u4eba\u3092\u898b\u304b\u3051\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">[<\/span>\r\n  <span class=\"o\">{<\/span>\r\n    \u301c\r\n    <span class=\"s2\">\"status\"<\/span>: <span class=\"s2\">\"in_progress\"<\/span>,\r\n    <span class=\"s2\">\"progress\"<\/span>: 0,\r\n    <span class=\"s2\">\"data\"<\/span>: <span class=\"o\">{<\/span>\r\n      <span class=\"s2\">\"import_file\"<\/span>: <span class=\"s2\">\"stwsmetagifuume6c_mattermost-bulk-import.zip\"<\/span>\r\n    <span class=\"o\">}<\/span>\r\n  <span class=\"o\">}<\/span>\r\n<span class=\"o\">]<\/span>\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5408\u8a08\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u5834\u5408\u306b\u8d77\u304d\u308b\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u3001Slack\u304b\u3089\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3092\u5c0f\u5206\u3051\u306b\u3057\u3066\u8907\u6570\u56de\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u4f5c\u696d\u3092\u884c\u3063\u3066\u56de\u907f\u3057\u305f\u3002<br \/>\nin_progress\u4e2d\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u4f5c\u696d\u3092\u505c\u6b62\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304cmmctl\u306b\u5b58\u5728\u3057\u306a\u3044\u306e\u3067\u56f0\u3063\u3066\u3044\u307e\u3059 (\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8)\u3002\u8ab0\u304b\u308f\u304b\u308b\u65b9\u3044\u308c\u3070\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u305d\u306e\u4ed6\u30fbSlack\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u65e5\u672c\u8a9e\u30c1\u30e3\u30f3\u30cd\u30eb\u540d\u306f\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u624b\u4f5c\u696d\u3067\u76f4\u3057\u305f\u3002<br \/>\n\u30fb\u5168\u30a4\u30f3\u30dd\u30fc\u30c8\u7d42\u3048\u305f\u5f8c\u306b\u3001\u65e5\u672c\u8a9e\u691c\u7d22\u6709\u52b9\u306e\u305f\u3081\u306eBleve\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ed8\u52a0\u4f5c\u696d\u3092\u884c\u3046\u3068\u3001\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046 (97%\u3050\u3089\u3044)\u3002\u65e5\u672c\u8a9e\u691c\u7d22\u81ea\u4f53\u306f\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u7121\u8996\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u6d88\u606f\u79f0\uff0cSlack\u5c06\u4e8e2022\u5e749\u67081\u65e5\u8d77\u6539\u53d8\u5176\u514d\u8d39\u8ba1\u5212\uff08\u4ece\u6b64\u53ea\u80fd\u67e5\u770b\u8fc7\u53bb90\u5929\u7684\u5386\u53f2\u8bb0\u5f55\uff09\u3002 \u4f5c\u4e3aSlac [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26817","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06mattermost\u5b89\u88c5\u5230ubuntu\u73af\u5883\u4e2d\u3002-4\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06mattermost\u5b89\u88c5\u5230ubuntu\u73af\u5883\u4e2d\u3002-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-31T22:37:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T15:14:30+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/\",\"name\":\"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-31T22:37:50+00:00\",\"dateModified\":\"2025-08-11T15:14:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"description\":\"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06mattermost\u5b89\u88c5\u5230ubuntu\u73af\u5883\u4e2d\u3002-4\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d","og_description":"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06mattermost\u5b89\u88c5\u5230ubuntu\u73af\u5883\u4e2d\u3002-4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-31T22:37:50+00:00","article_modified_time":"2025-08-11T15:14:30+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/","name":"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-31T22:37:50+00:00","dateModified":"2025-08-11T15:14:30+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"description":"\u5173\u4e8e\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06Mattermost\u5b89\u88c5\u5230Ubuntu\u73af\u5883\u4e2d"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86mattermost%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e7%8e%af%e5%a2%83%e4%b8%ad%e3%80%82-4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26817"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26817\/revisions"}],"predecessor-version":[{"id":111022,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26817\/revisions\/111022"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}