解決服務(wù)器運行jupyter notebook方法
今天教大家
服務(wù)器運行jupyter notebook
第一,給我買一臺服務(wù)器
要知道公網(wǎng)ip
虛擬環(huán)境
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'
然后關(guān)防火墻
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
打開瀏覽器,跑起來
也可以將服務(wù)器換成本地的,建立一個隧道
本地打開沒問題
服務(wù)器跑Jupyter就完成啦,以上就是解決服務(wù)器運行jupyter notebook方法的詳細內(nèi)容,更多關(guān)于服務(wù)器運行jupyter notebook的資料請關(guān)注本站其它相關(guān)文章!
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。