i using jupyter notebook project. since ssh linux cluster @ work use
ssh -y -l 8000:localhost:8888 user@host
then start notebook jupyter notebook --no-browser &
can continue using terminal. on local machine open localhost:8000
, go work.
my problem forgot several times close server foregrounding process , killing ctrl-c
. instead logged out of ssh session. when run jupyter notebook list
get
currently running servers: http://localhost:8934/ :: /export/home/jbalsells http://localhost:8870/ :: /export/home/jbalsells http://localhost:8892/ :: /export/home/jbalsells http://localhost:8891/ :: /export/home/jbalsells http://localhost:8890/ :: /export/home/jbalsells http://localhost:8889/ :: /export/home/jbalsells http://localhost:8888/ :: /export/home/jbalsells
i not want of these servers running on work's machine, not know how close them!
when run ps nothing:
pid tty time cmd 12678 pts/13 00:00:00 bash 22584 pts/13 00:00:00 ps
i have jupyter 4.1.0 installed.
so found solution.
since jupyter notebook list
tells ports notebook servers running on looked pids using netstat -tulpn
got information http://www.cyberciti.biz/faq/what-process-has-open-linux-port/
active internet connections (only servers) proto recv-q send-q local address foreign address state pid/program name tcp 0 0 0.0.0.0:8649 0.0.0.0:* listen - tcp 0 0 0.0.0.0:139 0.0.0.0:* listen - tcp 0 0 0.0.0.0:33483 0.0.0.0:* listen - tcp 0 0 0.0.0.0:5901 0.0.0.0:* listen 39125/xvnc
without looking hard able find ports knew jupyter notebook list
, processes running them (you use grep
if hard find them). killed them kill 8337
(or whatever number associated).
Comments
Post a Comment