{"id":29257,"date":"2018-01-12T03:42:15","date_gmt":"2018-01-11T18:42:15","guid":{"rendered":"https:\/\/ur.edu-connect.net\/?p=29257"},"modified":"2024-02-03T23:00:35","modified_gmt":"2024-02-03T14:00:35","slug":"rocket-chat%e3%82%92snap%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%ef%bc%88ubuntu-14-04-lts-16-04-1-lts%ef%bc%89","status":"publish","type":"post","link":"https:\/\/ur.edu-connect.net\/archives\/29257","title":{"rendered":"Rocket.Chat\u3092snap\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08Ubuntu 14.04 LTS \/ 16.04.1 LTS\uff09"},"content":{"rendered":"\n
\"\"<\/a><\/figure>\n\n\n\n

Rocket.Chat\u3092Snap\u3067Ubuntu 14.04 LTS \u3068 16.04.1 LTS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306e\u8a18\u9332\u3067\u3059\u3002<\/p>\n\n\n\n

\u53c2\u8003\u30b5\u30a4\u30c8\uff1asnap\u3092\u4f7f\u3063\u305fRocket.Chat\u306e\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n\n\n\n

\u4e8b\u524d\u6e96\u5099\uff1aSnap\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3059\u306b\u306fLinux Kernel\uff08HWE\uff09\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001LTSEnablementStack<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u6e08\u307e\u305b\u3001\u518d\u8d77\u52d5\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n

snapd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n
$ sudo apt install snapd<\/code><\/pre>\n\n\n\n

\u4e00\u65e6\u518d\u8d77\u52d5\u3059\u308b\uff08\u4e0d\u5fc5\u8981\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u691c\u7d22\u3057\u3066\u3082\u306a\u304b\u306a\u304b\u89e3\u6c7a\u7b56\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u304c\u518d\u8d77\u52d5\u3067\u89e3\u6d88\u3057\u305f\uff09\u3002<\/p>\n\n\n\n

$ sudo reboot<\/code><\/pre>\n\n\n\n

Rocket.Chat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n
$ sudo snap install rocketchat-server<\/code><\/pre>\n\n\n\n

\u3053\u308c\u3067\u52d5\u304f\u306f\u305a\u306a\u306e\u3067\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n

$ sudo systemctl status snap.rocketchat-server.rocketchat-server.service\n$ sudo systemctl status snap.rocketchat-server.rocketchat-mongo.service<\/code><\/pre>\n\n\n\n

\u5b9f\u969b\u306b\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u78ba\u8a8d \uff1e https:\/\/\uff08Server Address\uff09:3000\u3002<\/p>\n\n\n\n

\u4f55\u304b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u518d\u8d77\u52d5\u3084<\/p>\n\n\n\n

$ sudo systemctl restart snap.rocketchat-server.rocketchat-server.service\n$ sudo systemctl restart snap.rocketchat-server.rocketchat-mongo.service<\/code><\/pre>\n\n\n\n

\u30ed\u30b0\u306e\u78ba\u8a8d\u3092\u3059\u308b\u3002<\/p>\n\n\n\n

$ sudo journalctl -u snap.rocketchat-server.rocketchat-server\n$ sudo journalctl -u snap.rocketchat-server.rocketchat-mongo.service\n<\/code><\/pre>\n\n\n\n

\u3064\u3044\u3067\u306bRocket.Chat\u30b5\u30fc\u30d0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30fc\u30c8\uff083000\uff09\u3092\u5909\u66f4\u3059\u308b<\/h2>\n\n\n\n
$ sudo snap run rocketchat-server.initcaddy<\/code><\/pre>\n\n\n\n

\u30e1\u30c3\u30bb\u30fc\u30b8\uff1aReplace \/var\/snap\/rocketchat-server\/(current)\/Caddyfile with your own to customize reverse proxy \u304c\u8868\u793a\u3055\u308c\u308b\uff08current\u306e\u90e8\u5206\u306f\u30d3\u30eb\u30c9\u306b\u3088\u3063\u3066\u7570\u306a\u308b\uff09\u306e\u3067\u3001Caddyfile\u3092\u7de8\u96c6\u3059\u308b\u3002\u4f8b\u3048\u3070SSL\u63a5\u7d9a\u3067\u30dd\u30fc\u30c830000\u306b\u5909\u66f4\u3059\u308b\u5834\u5408\uff1a<\/p>\n\n\n\n

$ sudo vi \/var\/snap\/rocketchat-server\/(current)\/Caddyfile<\/code><\/pre>\n\n\n\n
https:\/\/example.com:30000 #\u3053\u306e\u884c\u306e\u307f\u5909\u66f4\nproxy \/ localhost:3000 {\nwebsocket\ntransparent\n}<\/code><\/pre>\n\n\n\n

Caddy\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n

$ sudo systemctl restart snap.rocketchat-server.rocketchat-caddy<\/code><\/pre>\n\n\n\n

\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u8a2d\u5b9a\u306e\u8a73\u7d30\u306f Auto SSL with Snaps<\/a> \u3092\u53c2\u7167\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Rocket.Chat\u3092Snap\u3067Ubuntu 14.04 LTS \u3068 16.04.1 LTS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306e\u8a18\u9332\u3067\u3059\u3002 \u53c2\u8003\u30b5\u30a4\u30c8\uff1asnap\u3092\u4f7f\u3063\u305fRocket.Chat\u306e\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4e8b\u524d\u6e96\u5099\uff1aSnap\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3059\u306b\u306fLinux Kernel\uff08HWE\uff09\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001LTSEnablementStack\u3092\u53c2\u8003\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u6e08\u307e\u305b\u3001\u518d\u8d77\u52d5\u3057\u3066\u304a\u304f\u3002 snapd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4e00\u65e6\u518d\u8d77\u52d5\u3059\u308b\uff08 […]<\/p>\n","protected":false},"author":1,"featured_media":29259,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[172,171,27],"class_list":["post-29257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-misc","tag-chat","tag-rocket-chat","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/29257"}],"collection":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/comments?post=29257"}],"version-history":[{"count":7,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/29257\/revisions"}],"predecessor-version":[{"id":29673,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/29257\/revisions\/29673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media\/29259"}],"wp:attachment":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media?parent=29257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/categories?post=29257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/tags?post=29257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}