-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add port finding tip on Jupyter page
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,16 @@ Finally ``Ctrl + left mouse click`` on the link from the first terminal session | |
ssh -L 8888:localhost:8889 [email protected] ssh -N -L 8889:localhost:8888 node112 | ||
.. tip:: | ||
|
||
To help find an open port you can try running this command: | ||
|
||
.. code-block:: console | ||
for p in {8000..9000}; do m=$(netstat -l|grep -c localhost:${p}); if [[ $m == 0 ]]; then echo "try $p"; break; fi; done | ||
*Thanks to Felix Ulrich-Oltean for this suggestion* | ||
|
||
.. FIXME: below method not working. | ||
.. | ||
|