无法访问 Azure 上的 Jupyter
Jupyter on Azure can not be reached
我无法访问 Azure 云中数据科学 VM 上的 Jupyter notebook。
我做了什么:
- 为 Linux 创建数据科学 VM。新建资源组、NSG等
- 按照命令
dsvm-more-info
的说明进行操作。那是
- 设置
c.NotebookApp.password
(u'sha1:89this89is89a89fake89')
- 重启 jupyter
- 访问https://12.34.56.78:9999/(IP地址当然是假的。)
但是我无法与服务器建立任何连接。
- SSH 没有任何问题。
- NSG 看起来不错:TCP/9999 允许所有人使用(这是默认设置。)
- 我尝试在 VM 上 https://localhost:9999/,但没有建立连接。
- http://12.34.56.78:9999/ 无效。 (以防万一。)
c.NotebookApp.allow_origin = '*'
没有任何改变。
- 我的订阅是测试版。这相关吗?
- 根据 Jupyter 文档,我创建了 mykey.key 和 mycert.pem 以及
添加了
jupyter_notebook_config.py
中文件的绝对路径。但
这没有帮助。
The Jupyter notebook is accessed through JupyterHub. You sign in using
your local Linux user name and password.
因此,您应该从端口 8000 而不是 9999 连接 Jupyter notebook。
您可以从任何主机访问 Jupyter 笔记本服务器。只需输入 https://<VM DNS name or IP Address>:8000/
您还可以使用 netstat -ant
来检查虚拟机上的端口侦听。端口 9999 没有监听。因此,您无法从端口 9999 获取它。
有关 Azure 数据科学 VM 上的 Jupyter 的更多信息,请参阅此 link。你可以检查 Jupyter notebook
.
如果您在 Ubuntu 上运行,则可以连接到 Jupyter Notebook。
假设您的 jupyter notebook 将 运行 on port:8888 on Azure VM。
首先你必须创建一个 SSH 隧道:
在您的本地计算机上键入:
ssh -L 8080:localhost:8888 username@server_address
然后在 Azure 上启动笔记本
jupyter notebook --no-browser
最后,在本地计算机上的网络浏览器中打开 http://localhost:8080。
我无法访问 Azure 云中数据科学 VM 上的 Jupyter notebook。
我做了什么:
- 为 Linux 创建数据科学 VM。新建资源组、NSG等
- 按照命令
dsvm-more-info
的说明进行操作。那是- 设置
c.NotebookApp.password
(u'sha1:89this89is89a89fake89') - 重启 jupyter
- 设置
- 访问https://12.34.56.78:9999/(IP地址当然是假的。)
但是我无法与服务器建立任何连接。
- SSH 没有任何问题。
- NSG 看起来不错:TCP/9999 允许所有人使用(这是默认设置。)
- 我尝试在 VM 上 https://localhost:9999/,但没有建立连接。
- http://12.34.56.78:9999/ 无效。 (以防万一。)
c.NotebookApp.allow_origin = '*'
没有任何改变。- 我的订阅是测试版。这相关吗?
- 根据 Jupyter 文档,我创建了 mykey.key 和 mycert.pem 以及
添加了
jupyter_notebook_config.py
中文件的绝对路径。但 这没有帮助。
The Jupyter notebook is accessed through JupyterHub. You sign in using your local Linux user name and password.
因此,您应该从端口 8000 而不是 9999 连接 Jupyter notebook。
您可以从任何主机访问 Jupyter 笔记本服务器。只需输入 https://<VM DNS name or IP Address>:8000/
您还可以使用 netstat -ant
来检查虚拟机上的端口侦听。端口 9999 没有监听。因此,您无法从端口 9999 获取它。
有关 Azure 数据科学 VM 上的 Jupyter 的更多信息,请参阅此 link。你可以检查 Jupyter notebook
.
如果您在 Ubuntu 上运行,则可以连接到 Jupyter Notebook。
假设您的 jupyter notebook 将 运行 on port:8888 on Azure VM。 首先你必须创建一个 SSH 隧道:
在您的本地计算机上键入:
ssh -L 8080:localhost:8888 username@server_address
然后在 Azure 上启动笔记本
jupyter notebook --no-browser
最后,在本地计算机上的网络浏览器中打开 http://localhost:8080。