{"id":4543,"date":"2021-08-27T19:11:41","date_gmt":"2021-08-27T10:11:41","guid":{"rendered":"https:\/\/okamurax.com\/?p=4543"},"modified":"2021-09-03T23:13:21","modified_gmt":"2021-09-03T14:13:21","slug":"centosconoha-mattermost%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=4543","title":{"rendered":"CentOS(ConoHa) Mattermost\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8"},"content":{"rendered":"<h2>ConoHa\u8a2d\u5b9a<\/h2>\n<p>\u5b9f\u9a13\u306e\u305f\u3081\u3001ConoHa \u30e1\u30e2\u30ea1GB\u30d7\u30e9\u30f3\u3067Mattermost\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3066\u307f\u305f\u3002<\/p>\n<p>SSH\u30ad\u30fc\u8a2d\u5b9a\u3057\u5fd8\u308c\u305f\u306e\u3067root\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5229\u7528\u3057\u3001TeraTerm\u304b\u3089\u63a5\u7d9a\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"7UlR9dS2t5\"><p><a href=\"https:\/\/appbay.org\/?p=2414\">MuuMuu + Xserver  \u72ec\u81ea\u30c9\u30e1\u30a4\u30f3<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;MuuMuu + Xserver  \u72ec\u81ea\u30c9\u30e1\u30a4\u30f3&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=2414&#038;embed=true#?secret=K0MRUc9I8y#?secret=7UlR9dS2t5\" data-secret=\"7UlR9dS2t5\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"fJ8IMOzBxx\"><p><a href=\"https:\/\/appbay.org\/?p=4070\">CentOS(ConoHa) \u521d\u671f\u8a2d\u5b9a LAMP<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;CentOS(ConoHa) \u521d\u671f\u8a2d\u5b9a LAMP&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=4070&#038;embed=true#?secret=qwbhK10pvf#?secret=fJ8IMOzBxx\" data-secret=\"fJ8IMOzBxx\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>SSH\u63a5\u7d9a\u3068\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u3042\u305f\u308a\u3092\u5b9f\u884c\u3002<\/p>\n<h2>Mattermost\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c7a\u3081\u3001\u30c1\u30fc\u30e0(Create a team)\u3092\u4f5c\u6210\u3059\u308b\u3002\u3053\u3053\u3067\u3001\u30c1\u30fc\u30e0\u540d\u3068URL\u3092\u6c7a\u3081\u308b\u3002<\/p>\n<p>\u30fb\u65e5\u672c\u8a9e\u5316<\/p>\n<p>\u30e1\u30cb\u30e5\u30fc\uff1eAccount Settings\uff1eDisplay\uff1eLanguage<br \/>\n\u65e5\u672c\u8a9e\u306b\u5909\u66f4<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b3\u30f3\u30bd\u30fc\u30eb\uff1e\u8a00\u8a9e\uff1e<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b5\u30fc\u30d0\u30fc\u8a00\u8a9e\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8a00\u8a9e\u306e\uff12\u3064\u3092<br \/>\n\u65e5\u672c\u8a9e\u306b\u5909\u66f4<\/p>\n<p>\u30fb\u30c8\u30fc\u30af\u30f3\u767a\u884c<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b3\u30f3\u30bd\u30fc\u30eb\uff1e\u7d71\u5408\u6a5f\u80fd\u7ba1\u7406<br \/>\n\u30d1\u30fc\u30bd\u30ca\u30eb\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b<\/p>\n<p>\u30e1\u30cb\u30e5\u30fc\uff1e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a2d\u5b9a\uff1e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff1e\u30d1\u30fc\u30bd\u30ca\u30eb\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3<br \/>\n\u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3059\u308b<\/p>\n<p>C#\u306b\u3066RestAPI\u3092\u5229\u7528\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/p>\n<pre class=\"lang:c# decode:true \">using System.Net.Http;\r\nusing System.Windows.Forms;\r\n\r\nnamespace WindowsFormsApp1\r\n{\r\n    public partial class Form1 : Form\r\n    {\r\n        public Form1()\r\n        {\r\n            InitializeComponent();\r\n\r\n            string token = \"xxx\";\r\n            string url = \"http:\/\/xxx\/api\/v4\/\" + \"users\";\r\n\r\n            \/\/ \uff11\r\n            var client1 = new HttpClient();\r\n            var request = new HttpRequestMessage(HttpMethod.Get, url);\r\n            request.Headers.Add(\"ContentType\", \"application\/json\");\r\n            request.Headers.Add(\"Authorization\", \"Bearer \" + token);\r\n            var response1 =  client1.SendAsync(request);\r\n            MessageBox.Show(response1.Result.Content.ReadAsStringAsync().Result);\r\n\r\n            \/\/ 2\r\n            var client2 = new HttpClient();\r\n            client2.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(\"Bearer\", token);\r\n            client2.DefaultRequestHeaders.Add(\"ContentType\", \"application\/json\");\r\n            var response2 =  client2.GetAsync(url);\r\n            MessageBox.Show(response2.Result.Content.ReadAsStringAsync().Result);\r\n\r\n            \/\/ 3\r\n            var client3 = new HttpClient();\r\n            client3.DefaultRequestHeaders.Add(\"Authorization\", \"Bearer \" + token); \/\/ 2\u3068\u306f\u3053\u3053\u304c\u9055\u3046\r\n            client3.DefaultRequestHeaders.Add(\"ContentType\", \"application\/json\");\r\n            var response3 = client3.GetAsync(url);\r\n            MessageBox.Show(response3.Result.Content.ReadAsStringAsync().Result);\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<h2>Ubuntu Rocket Chat\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u540c\u3058\u3088\u3046\u306a\u30bd\u30d5\u30c8\u306eRocketChat\u306e\u5834\u5408\u3002<br \/>\n\u5c11\u3057\u64cd\u4f5c\u3057\u3066\u307f\u305f\u3060\u3051\u3067\u5229\u7528\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><span style=\"color: #0000ff;\">snap install rocketchat-server<\/span><\/p>\n<p>\u30fbufw<\/p>\n<p><span style=\"color: #0000ff;\">ufw allow 3000\/tcp<\/span><br \/>\n<span style=\"color: #0000ff;\">ufw reload<\/span><\/p>\n<p>\u30fb\u30a2\u30f3\u30a4\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><span style=\"color: #0000ff;\">snap remove rocketchat-server<\/span><\/p>\n<p>\u30fbufw<\/p>\n<p><span style=\"color: #0000ff;\">ufw status numbered(\u756a\u53f7\u78ba\u8a8d)<\/span><br \/>\n<span style=\"color: #0000ff;\">ufw delete \u756a\u53f7<\/span><br \/>\n<span style=\"color: #0000ff;\">ufw reload<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ConoHa\u8a2d\u5b9a \u5b9f\u9a13\u306e\u305f\u3081\u3001ConoHa \u30e1\u30e2\u30ea1GB\u30d7\u30e9\u30f3\u3067Mattermost\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3066\u307f\u305f\u3002 SSH\u30ad\u30fc\u8a2d\u5b9a\u3057\u5fd8\u308c\u305f\u306e\u3067root\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5229\u7528\u3057\u3001TeraTerm\u304b\u3089\u63a5\u7d9a\u3002 MuuMuu + X &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=4543\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;CentOS(ConoHa) Mattermost\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9,145],"class_list":["post-4543","post","type-post","status-publish","format-standard","hentry","category-1","tag-c-net","tag-linux"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/4543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4543"}],"version-history":[{"count":7,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/4543\/revisions"}],"predecessor-version":[{"id":4568,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/4543\/revisions\/4568"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}