简体   繁体   English

使用 Windows+puTTY 时如何在 AWS EC2 + Ubuntu 中运行 Python 和 Jupyter?

[英]How to run Python and Jupyter in AWS EC2 + Ubuntu when using Windows+puTTY?

I just started trying AWS EC2 free tier.我刚开始尝试 AWS EC2 免费套餐。 I use Windows 10 + puTTY to connect ubuntu in ec2.我在 ec2 中使用 Windows 10 + puTTY 连接 ubuntu。 So far, where I have got is:到目前为止,我得到的是:

在此处输入图片说明

You can see that I already can use putty to link to Ubuntu.您可以看到我已经可以使用 putty 链接到 Ubuntu。 And python and Jupyter have been already installed.并且python和Jupyter已经安装好了。 But, I do not know how to use Jupyter for Python coding.但是,我不知道如何使用 Jupyter 进行 Python 编码。

PS.I also tried the methods presented in https://docs.aws.amazon.com/dlami/latest/devguide/setup-jupyter-configure-client-windows.html , but I do not know how to continue. PS.我也尝试了https://docs.aws.amazon.com/dlami/latest/devguide/setup-jupyter-configure-client-windows.html 中介绍的方法,但我不知道如何继续。

So, how can I use Jupyter and Python in EC2 when using puTTP to link to AWS?那么,当使用 puTTP 链接到 AWS 时,如何在 EC2 中使用 Jupyter 和 Python?

Thanks for opening this query.感谢您打开此查询。 Apologies for the delayed response.为延迟响应道歉。 We investigated the above query and looks like the port setup for using Jupyter notebook on your instance has not been done correctly.我们调查了上述查询,看起来在您的实例上使用 Jupyter notebook 的端口设置没有正确完成。 We would recommend following steps from the guide .我们建议遵循指南中的步骤

Essentially, your ec2 instance should allow for opening a port and setting up a server.本质上,您的 ec2 实例应该允许打开一个端口并设置一个服务器。 The logs pasted above indicated that no server was up and this might have been because the ec2 instance wasn't configured with the correct configuration.上面粘贴的日志表明没有服务器启动,这可能是因为 ec2 实例没有使用正确的配置进行配置。 Please ensure that you setup a Custom TCP Rule as mentioned above while launching your instance and then try the above steps again.请确保您在启动实例时设置了上述Custom TCP Rule ,然后再次尝试上述步骤。

Please feel free to comment and let us know if this doesn't solve your issue.如果这不能解决您的问题,请随时发表评论并告诉我们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM