本篇教程,介紹如何設(shè)置服務(wù)器的 1, 安裝jupyter notebook這里推薦安裝Anaconda wget https://repo./archive/Anaconda3-2018.12-Linux-x86_64.sh 安裝好之后運(yùn)行jupyter notebook, 不報(bào)錯(cuò), 說(shuō)明安裝成功 jupyter notebook 2, 配置文件局域網(wǎng)登陸Jupyter notebook, 要有密碼, 類似RStudio-server 2.1, 生成配置文件 jupyter notebook --generate-config 如果之前有配置文件, 你可以選擇覆蓋, 從新進(jìn)行設(shè)置: 選擇y Overwrite /home/dengfei/.jupyter/jupyter_notebook_config.py with default config? [y/N]y 2.2, 編輯~/.jupyter/jupyter_notebook_config.py文件 vim ~/.jupyter/jupyter_notebook_config.py 設(shè)置如下:
c.NotebookApp.allow_remote_access = True 把上面三行追加到配置文件的末尾: 3, 生成密碼打開ipython from notebook.auth import passwd 輸入notebook的密碼即可. 4, 運(yùn)行notebook命令, 查看是否可以登錄(base) [dengfei@localhost ~]$ jupyter notebook 上面顯示, 8888這個(gè)端口已經(jīng)占用, 這里使用8889端口. 192.168.3.44:8889 進(jìn)行訪問 5, 輸入上步設(shè)置的密碼, 進(jìn)行登錄.在哪一個(gè)路徑打開的jupyter notebook, notebook中就顯示當(dāng)前路徑 |
|
來(lái)自: 育種數(shù)據(jù)分析 > 《待分類》