Not sure how to vacate Jupyter Notebook ports that are in use

拈花ヽ惹草 提交于 2019-12-25 08:48:38

问题


The title explains it all. I'm currently working within AWS and am setting up anaconda for my projects. I'm trying to work on https://XYZ.compute.amazonaws.com:8888 since that is the only port that will load in chrome.

Every time I exit my jupyter window and close my Notebook session, It shows that this port is still in use.

Any help on how to vacate these ports would be much appreciated.


回答1:


Did you use 'Ctrl + c' on the terminal to stop the Jupyter server? If not, every time you try running Jupyter again it will automatically add 1 to the previously used port number.

Another way around is to modify the AWS EC2 instance access rules and allow other ports like 9999




回答2:


You have used screen. follow below steps to close the running sessions.

  1. Reattach to the screen session (screen -r)
  2. Hit Ctrl +c to terminate the Jupyter notebook session

If nothing works power off and on your server to free the ports



来源:https://stackoverflow.com/questions/45406147/not-sure-how-to-vacate-jupyter-notebook-ports-that-are-in-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!