{"id":35656,"date":"2025-05-05T16:51:10","date_gmt":"2025-05-05T08:51:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35656.html"},"modified":"2025-05-05T16:51:10","modified_gmt":"2025-05-05T08:51:10","slug":"%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85mattermost%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35656.html","title":{"rendered":"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5bf9\u4e8e\u4f01\u4e1a\u672c\u5730\u90e8\u7f72\u4e14\u514d\u8d39\u5f00\u6e90\u7684\u5373\u65f6\u6d88\u606f\u7cfb\u7edf&#xff0c;\u5e02\u9762\u4e0a\u6709\u51e0\u4e2a\u6bd4\u8f83\u6210\u719f\u4e14\u529f\u80fd\u76f8\u5bf9\u5b8c\u5584\u7684\u9009\u62e9\u3002\u8fd9\u4e9b\u7cfb\u7edf\u5141\u8bb8\u4f01\u4e1a\u5c06\u901a\u8baf\u6570\u636e\u5b8c\u5168\u638c\u63e1\u5728\u81ea\u5df1\u624b\u4e2d&#xff0c;\u6ee1\u8db3\u6570\u636e\u5b89\u5168\u548c\u5408\u89c4\u6027\u7684\u9700\u6c42\u3002Mattermost (Team Edition)\u662f\u503c\u5f97\u8003\u8651\u7684\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>\u7279\u70b9&#xff1a; Mattermost \u662f\u4e00\u4e2a\u5f00\u6e90\u3001\u79c1\u6709\u4e91\u7684\u6d88\u606f\u548c\u534f\u4f5c\u5e73\u53f0&#xff0c;\u88ab\u8ba4\u4e3a\u662f Slack \u7684\u4e00\u4e2a\u6709\u529b\u5f00\u6e90\u66ff\u4ee3\u54c1\u3002\u5176 Team Edition \u662f\u5b8c\u5168\u514d\u8d39\u548c\u5f00\u6e90\u7684&#xff0c;\u63d0\u4f9b\u4e86\u6838\u5fc3\u7684\u5373\u65f6\u901a\u8baf\u529f\u80fd\u3002<\/li>\n<li>\u4e3b\u8981\u529f\u80fd (Team Edition): \u4e00\u5bf9\u4e00\u804a\u5929\u3001\u7fa4\u7ec4\u5bf9\u8bdd\u3001\u9891\u9053\u3001\u6587\u4ef6\u5171\u4eab\u3001\u641c\u7d22\u3001\u901a\u77e5\u7b49\u3002<\/li>\n<li>\u672c\u5730\u90e8\u7f72&#xff1a; \u652f\u6301\u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u672c\u5730\u90e8\u7f72&#xff0c;\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u5b89\u88c5\u6307\u5357&#xff0c;\u53ef\u4ee5\u901a\u8fc7 Docker \u6216\u76f4\u63a5\u5b89\u88c5\u4e8c\u8fdb\u5236\u6587\u4ef6\u7b49\u65b9\u5f0f\u90e8\u7f72\u3002<\/li>\n<li>\u4f01\u4e1a\u9002\u7528\u6027&#xff1a; \u63d0\u4f9b\u4e86\u57fa\u7840\u7684\u4f01\u4e1a\u901a\u8baf\u534f\u4f5c\u80fd\u529b&#xff0c;\u5bf9\u4e8e\u6ce8\u91cd\u6570\u636e\u5b89\u5168\u548c\u6210\u672c\u63a7\u5236\u7684\u4f01\u4e1a\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u867d\u7136\u90e8\u5206\u9ad8\u7ea7\u4f01\u4e1a\u529f\u80fd&#xff08;\u5982 AD\/LDAP \u540c\u6b65\u3001\u9ad8\u7ea7\u6743\u9650\u63a7\u5236\u3001\u5ba1\u8ba1\u65e5\u5fd7\u7b49&#xff09;\u9700\u8981\u5347\u7ea7\u5230\u4ed8\u8d39\u7684 Enterprise \u7248\u672c&#xff0c;\u4f46\u514d\u8d39\u7684 Team Edition \u5df2\u7ecf\u80fd\u591f\u6ee1\u8db3\u57fa\u672c\u7684\u56e2\u961f\u5185\u90e8\u6c9f\u901a\u9700\u6c42\u3002<\/li>\n<li>\u5f00\u6e90\u8bb8\u53ef&#xff1a; Team Edition \u9075\u5faa MIT \u8bb8\u53ef\u8bc1\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u5c06\u6f14\u793a\u5b89\u88c5Ubuntu24.10\u548cMattermost\u670d\u52a1\u5668&#xff1a;<\/p>\n<h2 style=\"background-color:transparent\">\u4e00\u3001\u5b89\u88c5Ubuntu24.10<\/h2>\n<h3 style=\"background-color:transparent\">1\u3001\u5728VMware Workstation\u4e2d\u521b\u5efa\u4e00\u4e2a\u5982\u4e0b\u914d\u7f6e\u7684Ubuntu\u670d\u52a1\u5668<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"796\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085059-68187bf3ee4e8.png\" width=\"728\" \/><\/p>\n<h3 style=\"background-color:transparent\">2\u3001\u5b89\u88c5Ubuntu<\/h3>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u57fa\u672c\u4e0a\u50bb\u74dc\u5f0f\u7684&#xff0c;\u4e0b\u9762\u53ea\u5bf9\u5173\u952e\u70b9\u622a\u56fe&#xff0c;\u5176\u4f59\u9ed8\u8ba4\u5373\u53ef\u3002<\/p>\n<p>\u4e0b\u56fe\u7b49\u5f85\u68c0\u6d4b\u7ed3\u675f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"794\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085100-68187bf414d18.png\" width=\"1288\" \/><\/p>\n<p>\u51fa\u73b0\u4e0b\u56fe\u7ee7\u7eed<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"798\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085100-68187bf469ac8.png\" width=\"1281\" \/><\/p>\n<p>\u5bf9\u521d\u5b66\u8005\u4e0b\u56fe\u5efa\u8bae\u4e0d\u8981\u9009\u62e9\u4f7f\u7528LVM&#xff0c;\u53ef\u4ee5\u6839\u636e\u81ea\u5df2\u60c5\u51b5\u51b3\u5b9a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"792\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085100-68187bf4beb7f.png\" width=\"1287\" \/><\/p>\n<p>\u4e0b\u56fe\u8fd9\u91cc\u7ee7\u7eed<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"800\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085101-68187bf51e451.png\" width=\"1277\" \/><\/p>\n<p>\u4e0b\u56fe\u8f93\u5165\u59d3\u540d\u3001\u670d\u52a1\u5668\u540d\u79f0\u3001\u767b\u5f55\u7528\u6237\u540d\u548c\u5bc6\u7801<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"793\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085101-68187bf573697.png\" width=\"1276\" \/><\/p>\n<p>\u4e0b\u56fe\u9009\u62e9\u5b89\u88c5OpenSSH Server<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"796\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085101-68187bf5c7cd2.png\" width=\"1283\" \/><\/p>\n<p>\u4e0b\u56fe\u53ef\u4ee5\u5b89\u88c5\u6240\u9700\u5e94\u7528&#xff0c;\u8fd9\u91cc\u4e0d\u505a\u4efb\u4f55\u9009\u62e9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"795\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085102-68187bf62824a.png\" width=\"1282\" \/><\/p>\n<p>\u4e0b\u56fe\u5f00\u59cb\u5b89\u88c5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"794\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085102-68187bf67fa79.png\" width=\"1288\" \/><\/p>\n<p>\u5b89\u88c5\u7ed3\u675f\u91cd\u542f\u670d\u52a1\u5668<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"791\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085102-68187bf6d6409.png\" width=\"1288\" \/><\/p>\n<h2 style=\"background-color:transparent\">\u4e8c\u3001\u57fa\u4e8eLinux\u76f4\u63a5\u5b89\u88c5Mattermost\u670d\u52a1\u5668<\/h2>\n<h3>1\u3001\u57fa\u4e8eUbuntu 24.04\u6dfb\u52a0\u5b58\u50a8\u5e93<\/h3>\n<p>sudo rm \/usr\/share\/keyrings\/mattermost-archive-keyring.gpg<\/p>\n<p>curl -sL -o- https:\/\/deb.packages.mattermost.com\/pubkey.gpg |  gpg &#8211;dearmor | sudo tee \/usr\/share\/keyrings\/mattermost-archive-keyring.gpg &gt; \/dev\/null <\/p>\n<h3>2\u3001\u5b89\u88c5<span style=\"color:#000000\"><span style=\"background-color:#ffffff\">Mattermost Server <\/span><\/span><\/h3>\n<p>sudo apt update<br \/>\nsudo apt install mattermost -y <\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u60a8\u7684\u7cfb\u7edf\u4e0a\u73b0\u5728\u5df2\u5b89\u88c5\u4e86\u6700\u65b0\u7684 Mattermost Server \u7248\u672c\u3002<\/span><\/span><\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u5b89\u88c5\u8def\u5f84\u4e3a\/opt\/mattermost\u3002\u8be5\u8f6f\u4ef6\u5305\u5c06\u6dfb\u52a0\u540d\u4e3a \u7684\u7528\u6237\u548c\u7ec4mattermost\u3002\u6240\u9700\u7684 systemd \u5355\u5143\u6587\u4ef6\u4e5f\u5df2\u521b\u5efa&#xff0c;\u4f46\u4e0d\u4f1a\u8bbe\u7f6e\u4e3a\u6d3b\u52a8\u72b6\u6001\u3002<\/span><\/span><\/p>\n<p style=\"text-align:start\">\u7531\u4e8e Mattermost \u4ed3\u5e93\u4e2d\u7684\u7b7e\u540d\u8f6f\u4ef6\u5305\u53ef\u7528\u4e8e\u591a\u79cd\u5b89\u88c5\u7c7b\u578b&#xff0c;\u56e0\u6b64\u6211\u4eec\u4e0d\u4f1a\u5411 systemd \u5355\u5143\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4efb\u4f55\u4f9d\u8d56\u9879\u3002\u5982\u679c\u60a8\u8981\u5c06 Mattermost \u670d\u52a1\u5668\u4e0e\u6570\u636e\u5e93\u5b89\u88c5\u5728\u540c\u4e00\u4e2a\u7cfb\u7edf\u4e0a&#xff0c;\u5219\u53ef\u80fd\u9700\u8981\u5c06After&#061;postgresql.service \u548cBindsTo&#061;postgresql.service\u90fd\u6dfb\u52a0\u5230systemd\u6587\u4ef6\u7684[Unit]\u5355\u5143\u90e8\u5206\u4e2d\u3002<\/p>\n<h3>3\u3001\u914d\u7f6e<span style=\"color:#000000\"><span style=\"background-color:#ffffff\">Mattermost Server <\/span><\/span><\/h3>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u5728\u542f\u52a8 Mattermost \u670d\u52a1\u5668\u4e4b\u524d&#xff0c;\u60a8\u9700\u8981\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u3002\u793a\u4f8b\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e\/opt\/mattermost\/config\/config.defaults.json\u3002<\/span><\/span><\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u4f7f\u7528\u6b63\u786e\u7684\u6743\u9650\u91cd\u547d\u540d\u6b64\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/span><\/span><\/p>\n<p>sudo install -C -m 600 -o mattermost -g mattermost \/opt\/mattermost\/config\/config.defaults.json \/opt\/mattermost\/config\/config.json <\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u5728\u6b64\u6587\u4ef6\u4e2d\u914d\u7f6e\u4ee5\u4e0b\u5c5e\u6027&#xff1a;<\/span><\/span><\/p>\n<ul>\n<li>\n<p>\u5728 \u4e0bSqlSettings&#xff0c;\u8bbe\u7f6eDriverName\u4e3a&#034;postgres&#034;\u3002\u8fd9\u662f\u6240\u6709 Mattermost \u5b89\u88c5\u7684\u9ed8\u8ba4\u548c\u63a8\u8350\u6570\u636e\u5e93\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728 \u4e0bSqlSettings&#xff0c;\u8bbe\u7f6eDataSource\u4e3a\u7528\u60a8\u7684\u6570\u636e\u5e93\u540d\u79f0&#034;postgres:\/\/mmuser:&lt;mmuser-password&gt;&#064;&lt;host-name-or-IP&gt;:5432\/mattermost?sslmode&#061;disable&amp;connect_timeout&#061;10&#034;\u66ff\u6362mmuser\u3001&lt;mmuser-password&gt;\u548c\u3002&lt;host-name-or-IP&gt;mattermost<\/p>\n<\/li>\n<li>\n<p>\u5728 \u4e0bServiceSettings&#xff0c;\u8bbe\u7f6e&#034;SiteURL&#034;&#xff1a;Mattermost \u5e94\u7528\u7a0b\u5e8f\u7684\u57df\u540d&#xff08;\u4f8b\u5982https:\/\/mattermost.example.com&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u6211\u4eec\u5efa\u8bae\u914d\u7f6e\u914d\u7f6e\u652f\u6301\u7535\u5b50\u90ae\u4ef6supportSettings&#xff0c;\u5e76\u8bbe\u7f6e&#034;SupportEmail&#034;\u3002\u8fd9\u662f\u60a8\u7684\u7528\u6237\u5728\u9700\u8981\u5e2e\u52a9\u65f6\u4f1a\u8054\u7cfb\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/span><\/span><\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u4fee\u6539config.json\u914d\u7f6e\u6587\u4ef6\u540e&#xff0c;\u73b0\u5728\u5c31\u53ef\u4ee5\u542f\u52a8 Mattermost \u670d\u52a1\u5668\u4e86&#xff1a;<\/span><\/span><\/p>\n<p>sudo systemctl start mattermost <\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u9a8c\u8bc1 Mattermost \u662f\u5426\u6b63\u5728\u8fd0\u884c&#xff1a; curl\u00a0http:\/\/localhost:8065\u3002\u60a8\u5e94\u8be5\u4f1a\u770b\u5230 Mattermost \u670d\u52a1\u5668\u8fd4\u56de\u7684 HTML\u3002<\/span><\/span><\/p>\n<p style=\"text-align:start\"><span style=\"color:#000000\"><span style=\"background-color:#ffffff\">\u6700\u540e\u4e00\u6b65&#xff0c;\u6839\u636e\u60a8\u7684\u8981\u6c42&#xff0c;\u8fd0\u884c\u4ee5\u4fbf Mattermost \u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u542f\u52a8\u3002<\/span><\/span><\/p>\n<p>sudo systemctl enable mattermost.service <\/p>\n<p>sslmode\u914d\u7f6e\u4e2d\u8be5\u5c5e\u6027\u7684\u503cDataSource\u5b8c\u5168\u53d6\u51b3\u4e8e\u60a8\u7684\u539f\u751f\u73af\u5883\u3002\u8bf7\u53c2\u9605\u539f\u751f\u73af\u5883\u8bbe\u7f6e\u6587\u6863\u4ee5\u83b7\u53d6\u6709\u5173\u5176\u503c\u7684\u6307\u5bfc\u3002\u53ef\u7528\u7684\u9009\u9879sslmode\u5305\u62ecdisable\u6216require\u3002\u4f8b\u5982&#xff0c;\u5982\u679c\u60a8\u4f7f\u7528 Amazon Lightsail \u4f5c\u4e3a\u6570\u636e\u6e90&#xff0c;\u5219\u5fc5\u987b\u8bbe\u7f6esslmode\u4e3arequire\u624d\u80fd\u6210\u529f\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002<\/p>\n<h3>4\u3001\u66f4\u65b0\u670d\u52a1\u5668<\/h3>\n<p>\u5f53\u65b0\u7684 Mattermost \u7248\u672c\u53d1\u5e03\u65f6&#xff0c;\u8fd0\u884c&#xff1a;\u4e0b\u8f7d\u5e76\u66f4\u65b0\u60a8\u7684 Mattermost \u5b9e\u4f8b\u3002<\/p>\n<p>sudo apt update &amp;&amp; sudo apt upgrade <\/p>\n<p>\u00a0\u8fd0\u884c\u8be5\u547d\u4ee4\u65f6&#xff0c;\u5c06\u4e0e\u5176\u4ed6\u8f6f\u4ef6\u5305\u4e00\u8d77\u66f4\u65b0\u3002\u5f3a\u70c8\u5efa\u8bae\u60a8\u5728\u4f7f\u7528 \u8fd0\u884c\u8be5\u547d\u4ee4\u4e4b\u524d\u505c\u6b62 Mattermost \u670d\u52a1\u5668\u3002<\/p>\n<p> sudo apt upgrademattermost-serveraptsudo systemctl stop mattermost <\/p>\n<h3 style=\"background-color:transparent\">5\u3001\u5220\u9664\u670d\u52a1\u5668<\/h3>\n<p>\u5982\u679c\u4e0d\u7528\u4e86\u8981\u5220\u9664<\/p>\n<p>sudo apt remove &#8211;purge mattermost <\/p>\n<h2>\u4e09\u3001\u57fa\u4e8eUbuntu Linux\u90e8\u7f72\u5bb9\u5668\u7248<\/h2>\n<h3 style=\"background-color:transparent\">1\u3001\u5b89\u88c5Docker<\/h3>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d\u6240\u6709\u51b2\u7a81\u7684\u8f6f\u4ef6\u5305&#xff1a;<\/p>\n<p>for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done <\/p>\n<p>\u8bbe\u7f6e Docker \u7684apt\u5b58\u50a8\u5e93\u3002<\/p>\n<p># Add Docker&#039;s official GPG key:<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install ca-certificates curl<br \/>\nsudo install -m 0755 -d \/etc\/apt\/keyrings<br \/>\nsudo curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg -o \/etc\/apt\/keyrings\/docker.asc<br \/>\nsudo chmod a&#043;r \/etc\/apt\/keyrings\/docker.asc<\/p>\n<p># Add the repository to Apt sources:<br \/>\necho \\\\<br \/>\n  &#034;deb [arch&#061;$(dpkg &#8211;print-architecture) signed-by&#061;\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/ubuntu \\\\<br \/>\n  $(. \/etc\/os-release &amp;&amp; echo &#034;${UBUNTU_CODENAME:-$VERSION_CODENAME}&#034;) stable&#034; | \\\\<br \/>\n  sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<br \/>\nsudo apt-get update <\/p>\n<p>\u5b89\u88c5\u6700\u65b0\u7248\u672c<\/p>\n<p>sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin <\/p>\n<h3>2\u3001\u5b89\u88c5\u00a0Docker Compose<\/h3>\n<p>sudo curl -SL https:\/\/github.com\/docker\/compose\/releases\/download\/v2.35.1\/docker-compose-linux-x86_64 -o \/usr\/local\/bin\/docker-compose<\/p>\n<p>sudo chmod &#043;x \/usr\/local\/bin\/docker-compose <\/p>\n<h3>3\u3001\u5728 Docker \u4e0a\u90e8\u7f72 Mattermost<\/h3>\n<p>\u00a0\u514b\u9686\u5b58\u50a8\u5e93<\/p>\n<p>git clone https:\/\/github.com\/mattermost\/docker<br \/>\ncd docker <\/p>\n<p>\u521b\u5efa.env\u6587\u4ef6<\/p>\n<p>cp env.example .env <\/p>\n<ul>\n<li>\n<p>\u60a8\u5fc5\u987b\u7f16\u8f91.env\u6587\u4ef6DOMAIN\u4e2d\u7684\u503c\u4ee5\u5bf9\u5e94\u4e8e\u60a8\u7684 Mattermost \u670d\u52a1\u5668\u57df\u3002<\/p>\n<\/li>\n<li>\n<p>\u5efa\u8bae\u901a\u8fc7\u914d\u7f6e\u90ae\u7bb1MM_SUPPORTSETTINGS_SUPPORTEMAIL\u3002\u8fd9\u662f\u60a8\u7684\u7528\u6237\u5728\u9700\u8981\u5e2e\u52a9\u65f6\u53ef\u4ee5\u8054\u7cfb\u7684\u90ae\u7bb1\u5730\u5740\u3002<\/p>\n<\/li>\n<\/ul>\n<p>sudo nano .env <\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"94\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085103-68187bf7381ae.png\" width=\"404\" \/><\/p>\n<p>\u00a0\u521b\u5efa\u6240\u9700\u7684\u76ee\u5f55\u5e76\u8bbe\u7f6e\u5176\u6743\u9650\u3002<\/p>\n<p>mkdir -p .\/volumes\/app\/mattermost\/{config,data,logs,plugins,client\/plugins,bleve-indexes}<br \/>\nsudo chown -R 2000:2000 .\/volumes\/app\/mattermost <\/p>\n<h3 style=\"background-color:transparent\">4\u3001\u90e8\u7f72Mattermost<\/h3>\n<p>sudo docker compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d <\/p>\n<p>\u4e0b\u56fe\u5f00\u59cb\u90e8\u7f72<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"617\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085103-68187bf741458.png\" width=\"1664\" \/><\/p>\n<p>\u90e8\u7f72\u7ed3\u675f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"674\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085103-68187bf7a5ea3.png\" width=\"1659\" \/><\/p>\n<h3>5\u3001\u8bbf\u95ee<\/h3>\n<p>\u8981\u8bbf\u95ee\u65b0\u7684 Mattermost \u90e8\u7f72&#xff0c;\u8bf7http:\/\/&lt;YOUR_MM_DOMAIN&gt;:8065\/\u5728\u6d4f\u89c8\u5668\u4e2d\u5bfc\u822a\u81f3\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"777\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085104-68187bf82076a.png\" width=\"1414\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1087\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085104-68187bf8732dd.png\" width=\"1425\" \/>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"932\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085105-68187bf900b87.png\" width=\"1632\" \/><\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1001\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085105-68187bf9b9eaa.png\" width=\"1596\" \/><\/p>\n<p>\u00a0\u4e0b\u56fe\u4fee\u6539\u8bed\u8a00<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1236\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085106-68187bfa8d523.png\" width=\"1707\" \/><\/p>\n<p>\u7ed3\u679c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1174\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085107-68187bfb7a03e.png\" width=\"1665\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1233\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085108-68187bfc3dca5.png\" width=\"1659\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5bf9\u4e8e\u4f01\u4e1a\u672c\u5730\u90e8\u7f72\u4e14\u514d\u8d39\u5f00\u6e90\u7684\u5373\u65f6\u6d88\u606f\u7cfb\u7edf\uff0c\u5e02\u9762\u4e0a\u6709\u51e0\u4e2a\u6bd4\u8f83\u6210\u719f\u4e14\u529f\u80fd\u76f8\u5bf9\u5b8c\u5584\u7684\u9009\u62e9\u3002\u8fd9\u4e9b\u7cfb\u7edf\u5141\u8bb8\u4f01\u4e1a\u5c06\u901a\u8baf\u6570\u636e\u5b8c\u5168\u638c\u63e1\u5728\u81ea\u5df1\u624b\u4e2d\uff0c\u6ee1\u8db3\u6570\u636e\u5b89\u5168\u548c\u5408\u89c4\u6027\u7684\u9700\u6c42\u3002Mattermost (Team Edition)\u662f\u503c\u5f97\u8003\u8651\u7684\u9009\u9879\uff1a<\/p>\n","protected":false},"author":2,"featured_media":35636,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1880,235,2771,43,44],"topic":[],"class_list":["post-35656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-it","tag-235","tag-2771","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/35656.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5bf9\u4e8e\u4f01\u4e1a\u672c\u5730\u90e8\u7f72\u4e14\u514d\u8d39\u5f00\u6e90\u7684\u5373\u65f6\u6d88\u606f\u7cfb\u7edf\uff0c\u5e02\u9762\u4e0a\u6709\u51e0\u4e2a\u6bd4\u8f83\u6210\u719f\u4e14\u529f\u80fd\u76f8\u5bf9\u5b8c\u5584\u7684\u9009\u62e9\u3002\u8fd9\u4e9b\u7cfb\u7edf\u5141\u8bb8\u4f01\u4e1a\u5c06\u901a\u8baf\u6570\u636e\u5b8c\u5168\u638c\u63e1\u5728\u81ea\u5df1\u624b\u4e2d\uff0c\u6ee1\u8db3\u6570\u636e\u5b89\u5168\u548c\u5408\u89c4\u6027\u7684\u9700\u6c42\u3002Mattermost (Team Edition)\u662f\u503c\u5f97\u8003\u8651\u7684\u9009\u9879\uff1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35656.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-05T08:51:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085059-68187bf3ee4e8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35656.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35656.html\",\"name\":\"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-05T08:51:10+00:00\",\"dateModified\":\"2025-05-05T08:51:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35656.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35656.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35656.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/35656.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5bf9\u4e8e\u4f01\u4e1a\u672c\u5730\u90e8\u7f72\u4e14\u514d\u8d39\u5f00\u6e90\u7684\u5373\u65f6\u6d88\u606f\u7cfb\u7edf\uff0c\u5e02\u9762\u4e0a\u6709\u51e0\u4e2a\u6bd4\u8f83\u6210\u719f\u4e14\u529f\u80fd\u76f8\u5bf9\u5b8c\u5584\u7684\u9009\u62e9\u3002\u8fd9\u4e9b\u7cfb\u7edf\u5141\u8bb8\u4f01\u4e1a\u5c06\u901a\u8baf\u6570\u636e\u5b8c\u5168\u638c\u63e1\u5728\u81ea\u5df1\u624b\u4e2d\uff0c\u6ee1\u8db3\u6570\u636e\u5b89\u5168\u548c\u5408\u89c4\u6027\u7684\u9700\u6c42\u3002Mattermost (Team Edition)\u662f\u503c\u5f97\u8003\u8651\u7684\u9009\u9879\uff1a","og_url":"https:\/\/www.wsisp.com\/helps\/35656.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-05T08:51:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250505085059-68187bf3ee4e8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35656.html","url":"https:\/\/www.wsisp.com\/helps\/35656.html","name":"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-05T08:51:10+00:00","dateModified":"2025-05-05T08:51:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35656.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35656.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35656.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu\u4e0a\u5b89\u88c5Mattermost\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=35656"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35656\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/35636"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35656"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}