目录
今天教大家
服务器运行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就完成啦,以上就是解决服务器运行jupyter notebook方法的详细内容,更多关于服务器运行jupyter notebook的资料请关注www.887551.com其它相关文章!