服务器运行jupyter notebook,解决办法
生活随笔
收集整理的這篇文章主要介紹了
服务器运行jupyter notebook,解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我是人見人愛,花見花開的毛利
今天教大家服務器運行jupyter notebook
第一,給我買一臺服務器
要知道公網ip
虛擬環境
mkvirtualenv -p /usr/bin/python3.6 deeplearn workon deeplearn pip install tensorflow pip install jupyter然后
vim ~/.jupyter/jupyter_notebook_config.py c.NotebookApp.ip = '0.0.0.0' c.NotebookApp.open_browser = False c.NotebookApp.port = 8888 c.NotebookApp.password = 'sha1:6c132ae43f5c:4b4cf1efc42fba2c1480e3283c6bcb9769313bdb'然后關防火墻
root@VM-0-5-ubuntu:~# firewall-cmd --state running root@VM-0-5-ubuntu:~# systemctl stop firewalld.service root@VM-0-5-ubuntu:~# systemctl disable firewalld.service Synchronizing state of firewalld.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable firewalld Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.打開jupyter notebook
打開瀏覽器,跑起來
也可以將服務器換成本地的,建立一個隧道
本地打開沒問題
總結
以上是生活随笔為你收集整理的服务器运行jupyter notebook,解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 二十五、深入Python中的协程
- 下一篇: tf2.0 (一)