{"id":45935,"date":"2023-09-07T19:10:40","date_gmt":"2024-01-16T13:11:49","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/"},"modified":"2024-04-30T21:52:21","modified_gmt":"2024-04-30T13:52:21","slug":"45935-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u88fd\u54c1\u3092Linux\u4e0a\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u624b\u5143\u306eMac\u3067\u306f\u306a\u304fLinux\u74b0\u5883\u3067\u691c\u8a3c\u3084\u958b\u767a\u3092\u3057\u305f\u3044\u304c\u3001jupyter\u3067\u53ef\u8996\u5316\u3001\u30c8\u30e9\u30a4\u30a2\u30f3\u30c9\u30a8\u30e9\u30fc\u3057\u305f\u3044\u3068\u3044\u3046\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u3067\u5b9f\u8df5\u3057\u305f\u3002<br \/>\n\uff08\u7d50\u5c40jupyter\u306f\u88fd\u54c1\u306b\u7d44\u307f\u8fbc\u3080\u6642\u306b\u9762\u5012\u306a\u306e\u3067\u4f7f\u3046\u306e\u3092\u3084\u3081\u305f\uff09<\/p>\n<h1>Azure VM CentOS<\/h1>\n<h3>jupyter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"post-pre\"><code>sudo pip3 install jupyter\r\nmkdir ~\/.jupyter\r\n<\/code><\/pre>\n<h3>\u901a\u4fe1ssl\u5316<\/h3>\n<pre class=\"post-pre\"><code>cd ~\/.jupyter\/\r\nopenssl req -x509 -nodes -newkey rsa:2048 -keyout mycert.key -out mycert.pem\r\n<\/code><\/pre>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u30cf\u30c3\u30b7\u30e5\u6587\u5b57\u306e\u53d6\u5f97<\/h3>\n<pre class=\"post-pre\"><code>ipython3\r\nfrom notebook.auth import passwd\r\npasswd()\r\n\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\r\n'\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u308b'---&gt;\u2460\r\n<\/code><\/pre>\n<h3>jupyter notebook\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/h3>\n<pre class=\"post-pre\"><code>touch ~\/.jupyter\/jupyter_notebook_config.py\r\nvi ~\/.jupyter\/jupyter_notebook_config.py\r\n<\/code><\/pre>\n<p>jupyter_notebook_config.py\u306e\u8a2d\u5b9a\u5185\u5bb9<\/p>\n<pre class=\"post-pre\"><code>c = get_config()\r\nc.NotebookApp.ip = '*'\r\nc.NotebookApp.open_browser = False\r\nc.NotebookApp.port = 18888\r\nc.NotebookApp.password = u'\u2460\u3067\u8868\u793a\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u6587\u5b57'\r\nc.NotebookApp.certfile = u'\/home\/\u3010\u81ea\u5206\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3011\/.jupyter\/mycert.pem'\r\nc.NotebookApp.keyfile = u'\/home\/\u3010\u81ea\u5206\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3011\/.jupyter\/mycert.key'\r\n<\/code><\/pre>\n<h1>Azure\u306e\u8a2d\u5b9a<\/h1>\n<h3>azure\u306e\u30ea\u30bd\u30fc\u30b9\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u306718888\u30dd\u30fc\u30c8\u3092\u958b\u653e<\/h3>\n<p>\u30ea\u30bd\u30fc\u30b9\u30b0\u30eb\u30fc\u30d7 -&gt; \u81ea\u5206\u306e\u30ea\u30bd\u30fc\u30b9\u30b0\u30eb\u30fc\u30d7 -&gt; \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7 -&gt; \u53d7\u4fe1\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u898f\u5247 -&gt; \u8ffd\u52a0<br \/>\n&#8211; \u5b9b\u5148\u30dd\u30fc\u30c8\u7bc4\u56f2\uff1a18888<br \/>\n&#8211; \u30d7\u30ed\u30c8\u30b3\u30eb\uff1aTCP<br \/>\n&#8211; \u4ed6\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001\u540d\u524d\u306fjupyter\u7b49\u308f\u304b\u308a\u3084\u3059\u3044\u7269\u306b\u3002<\/p>\n<h1>\u904b\u7528<\/h1>\n<h3>\u30b5\u30fc\u30d0\u8d77\u52d5\uff08Azure VM\uff09<\/h3>\n<pre class=\"post-pre\"><code>jupyter notebook &amp;\r\n<\/code><\/pre>\n<p>\u8d77\u52d5\u6642\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8d77\u52d5\u6642\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u306a\u308b<br \/>\nAzure\u304b\u3089ssh\u3092\u5207\u3063\u3066\u3082jupyter\u3092\u7d99\u7d9a\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>nohup jupyter notebook &gt; \/dev\/null 2&gt;&amp;1 &amp;\r\n<\/code><\/pre>\n<h3>\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>https:\/\/[azure vm ip\u30a2\u30c9\u30ec\u30b9]:18888<\/p>\n<h3>\u30b5\u30fc\u30d0\u505c\u6b62<\/h3>\n<p>fg -&gt; Ctrl+c -&gt; y<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u88fd\u54c1\u3092Linux\u4e0a\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u624b\u5143\u306eMac\u3067\u306f\u306a\u304fLinux\u74b0\u5883\u3067\u691c\u8a3c\u3084\u958b\u767a\u3092\u3057\u305f\u3044\u304c\u3001jupyter [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45935","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"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>- Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/45935-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u88fd\u54c1\u3092Linux\u4e0a\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u624b\u5143\u306eMac\u3067\u306f\u306a\u304fLinux\u74b0\u5883\u3067\u691c\u8a3c\u3084\u958b\u767a\u3092\u3057\u305f\u3044\u304c\u3001jupyter [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-16T13:11:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T13:52:21+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\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\/45935-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-16T13:11:49+00:00\",\"dateModified\":\"2024-04-30T13:52:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/\"]}]},{\"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","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\/45935-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u88fd\u54c1\u3092Linux\u4e0a\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u624b\u5143\u306eMac\u3067\u306f\u306a\u304fLinux\u74b0\u5883\u3067\u691c\u8a3c\u3084\u958b\u767a\u3092\u3057\u305f\u3044\u304c\u3001jupyter [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-16T13:11:49+00:00","article_modified_time":"2024-04-30T13:52:21+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-16T13:11:49+00:00","dateModified":"2024-04-30T13:52:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/"]}]},{"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45935-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45935","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45935"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45935\/revisions"}],"predecessor-version":[{"id":94512,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45935\/revisions\/94512"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}