Guest User

Untitled

a guest
Dec 11th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. c = get_config()
  2. c.NotebookApp.port = 80
  3.  
  4. $ sudo netstat -lnp
  5. Active Internet connections (only servers)
  6. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  7. tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1226/vsftpd
  8. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1532/sshd
  9. tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3433/cupsd
  10. tcp 0 0 127.0.0.1:5984 0.0.0.0:* LISTEN 1410/beam.smp
  11. tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1653/mysqld
  12. tcp6 0 0 :::22 :::* LISTEN 1532/sshd
  13. tcp6 0 0 ::1:631 :::* LISTEN 3433/cupsd
  14. udp 0 0 0.0.0.0:52741 0.0.0.0:* 796/avahi-daemon: r
  15. udp 0 0 0.0.0.0:5353 0.0.0.0:* 796/avahi-daemon: r
  16. udp 0 0 0.0.0.0:31114 0.0.0.0:* 1105/dhclient
  17. udp 0 0 0.0.0.0:68 0.0.0.0:* 1105/dhclient
  18. udp 0 0 xxx.xxx.xxx.xxx:123 0.0.0.0:* 2607/ntpd
  19. udp 0 0 127.0.0.1:123 0.0.0.0:* 2607/ntpd
  20. udp 0 0 0.0.0.0:123 0.0.0.0:* 2607/ntpd
  21. udp 0 0 0.0.0.0:631 0.0.0.0:* 1630/cups-browsed
  22. udp6 0 0 :::5353 :::* 796/avahi-daemon: r
  23. udp6 0 0 :::69 :::* 1607/in.tftpd
  24. udp6 0 0 :::24682 :::* 1105/dhclient
  25. udp6 0 0 xxxx::xxxx:xxxx:xxxx:123 :::* 2607/ntpd
  26. udp6 0 0 ::1:123 :::* 2607/ntpd
  27. udp6 0 0 :::123 :::* 2607/ntpd
  28. udp6 0 0 :::59559 :::* 796/avahi-daemon: r
  29. Active UNIX domain sockets (only servers)
  30. Proto RefCnt Flags Type State I-Node PID/Program name Path
  31. unix 2 [ ACC ] STREAM LISTENING 20483 3253/pulseaudio /run/user/1003/pulse/native
  32. unix 2 [ ACC ] STREAM LISTENING 18697 3179/gnome-session @/tmp/.ICE-unix/3179
  33. unix 2 [ ACC ] STREAM LISTENING 15765 2507/X /tmp/.X11-unix/X0
  34. unix 2 [ ACC ] STREAM LISTENING 20481 3253/pulseaudio /tmp/.esd-1003/socket
  35. unix 2 [ ACC ] STREAM LISTENING 18698 3179/gnome-session /tmp/.ICE-unix/3179
  36. unix 2 [ ACC ] STREAM LISTENING 15764 2507/X @/tmp/.X11-unix/X0
  37. unix 2 [ ACC ] STREAM LISTENING 10538 768/bluetoothd /var/run/sdp
  38. unix 2 [ ACC ] STREAM LISTENING 21564 3433/cupsd /var/run/cups/cups.sock
  39. unix 2 [ ACC ] STREAM LISTENING 10820 1653/mysqld /var/run/mysqld/mysqld.sock
  40. unix 2 [ ACC ] STREAM LISTENING 16666 3184/dbus-daemon @/tmp/dbus-1gowauBlhV
  41. unix 2 [ ACC ] STREAM LISTENING 14432 748/dbus-daemon /var/run/dbus/system_bus_socket
  42. unix 2 [ ACC ] STREAM LISTENING 8877 1/init @/com/ubuntu/upstart
  43. unix 2 [ ACC ] STREAM LISTENING 16698 3136/ibus-daemon @/tmp/dbus-ue1VKkXx
  44. unix 2 [ ACC ] STREAM LISTENING 12135 3005/gnome-keyring- /run/user/1003/keyring-htUkSg/control
  45. unix 2 [ ACC ] STREAM LISTENING 14469 796/avahi-daemon: r /var/run/avahi-daemon/socket
  46. unix 2 [ ACC ] STREAM LISTENING 10034 3102/dbus-daemon @/tmp/dbus-SCYaEa0Hje
  47. unix 2 [ ACC ] STREAM LISTENING 18577 3005/gnome-keyring- /run/user/1003/keyring-htUkSg/pkcs11
  48. unix 2 [ ACC ] STREAM LISTENING 18581 3005/gnome-keyring- /run/user/1003/keyring-htUkSg/gpg
  49. unix 2 [ ACC ] STREAM LISTENING 18583 3005/gnome-keyring- /run/user/1003/keyring-htUkSg/ssh
  50. unix 2 [ ACC ] STREAM LISTENING 18569 3007/init @/com/ubuntu/upstart-session/1003/3007
  51. unix 2 [ ACC ] SEQPACKET LISTENING 11473 396/systemd-udevd /run/udev/control
  52. unix 2 [ ACC ] STREAM LISTENING 10725 1572/acpid /var/run/acpid.socket
  53.  
  54. ipython notebook --ip=0.0.0.0 --port=80 or
  55. jupyter notebook --ip=0.0.0.0 --port=80
  56.  
  57. usage: ipython [-h] [--certfile NOTEBOOKAPP.CERTFILE] [--ip NOTEBOOKAPP.IP]
  58. [--pylab [NOTEBOOKAPP.PYLAB]]
  59. [--log-level NOTEBOOKAPP.LOG_LEVEL]
  60. [--port-retries NOTEBOOKAPP.PORT_RETRIES]
  61. [--notebook-dir NOTEBOOKAPP.NOTEBOOK_DIR]
  62. [--config NOTEBOOKAPP.CONFIG_FILE]
  63. [--keyfile NOTEBOOKAPP.KEYFILE] [--port NOTEBOOKAPP.PORT]
  64. [--transport KERNELMANAGER.TRANSPORT]
  65. [--browser NOTEBOOKAPP.BROWSER] [--script] [-y] [--no-browser]
  66. [--debug] [--no-mathjax] [--no-script] [--generate-config]
  67.  
  68. ps auxww | grep 'ipython' | awk '{print $2}' | xargs sudo kill -9
Add Comment
Please, Sign In to add comment