サーバ側にJupyterをインストールする

4389 ワード


最近、周りの人がJupyterを使っているのを見て、ホームページのプログラミングが爽やかです.必要な子供用シューズはサーバーにインストールしてみてください.
まずanacondaをインストールする必要があります
Anacondaインストール手順[1]
公式サイトのアドレス:https://www.anaconda.com/download/#linux
Anaconda3-5.3.0-Linux-x86_64.sh depends on what you download wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh bash Anaconda3-5.3.0-Linux-x86_64.sh -u
ヒントに従ってEnterを押す
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>

プロンプトに従ってyesを入力し、license agreementに同意します.
... ...
kerberos (krb5, non-Windows platforms)
A network authentication protocol designed to provide strong authentication
for client/server applications by using secret-key cryptography.

cryptography
A Python library which exposes cryptographic recipes and primitives.

Do you approve the license terms? [yes|no]
>>> yes

ダイレクトEnterキー、デフォルトのインストールパス
Anaconda2 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>>

環境変数を書き込み、yesを直接入力
... ...
installing: zlib-1.2.8-3 ...
installing: anaconda-4.4.0-np112py27_0 ...
installing: conda-4.3.21-py27_0 ...
installing: conda-env-2.6.0-0 ...
Python 2.7.13 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Do you wish the installer to prepend the Anaconda2 install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>> yes

効力が生ずるbashrcファイル
[root@master tmp]# source ~/.bashrc

pythonを入力して環境を検証
Python 3.6.5 |Anaconda 4.4.0 (64-bit)| (default, Apr 10 2018, 17:09:15) 
[GCC 4.4.7 20150623 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> 

しかしここでヒップホップは構成に成功していないような問題に遭遇し、解決策は参考にした[2].export PATH=~/anaconda3/bin:$PATH
jupyterをインストールする必要があります.理論的にanacondaをインストールすれば実行できます.condaコマンドが有効かどうかを試してみてください.jupyterコマンドが見つからない場合はpipをインストールします.pip install jupyter
これでインストールは完了するはずです.その後、起動して少し配置する必要があります.その後、gitにキーパッケージを書く暇があります.
設定[3]
まずpackage+構成をインストールします
  pip install ipython pip install jupyter jupyter notebook –generate-config –allow-root
パスワードの生成[root@localhost ~]# ipython Python 3.5.2 (default, Aug 4 2017, 02:13:48)  Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: from notebook.auth import passwd In [2]: passwd() Enter password:  Verify password:  Out[2]: 'sha1:5311cd8b9da9:70dd3321fccb5b5d77e66080a5d3d943ab9752b4'
生成するプロファイルを変更し、以下のアドレスを以下のように変更し、その行前の#を削除してvi/root/を有効にする.jupyter/jupyter_notebook_config.pyまたはvi~/.jupyter/jupyter_notebook_config.py c.NotebookApp.ip='*' c.NotebookApp.password = u'sha1:5311cd8b9da9:70dd3321fccb5b5d77e66080a5d3d943ab9752b4' c.NotebookApp.open_browser = False c.NotebookApp.port =9999 # , 8888
jupyter notebookにアクセスするコマンドラインの下でサービスを開き、システムが指定したポートを表示します.9999かもしれません.jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
その後ip:9999でEOFにアクセスできました
One more thing
テンセント雲の出入り駅の規則はこれを参考にすることができて、firewallの設定はこれを参考にします
主な参考文献
サーバ側でpythonをアップグレードしてJupythorCentos 7をインストールAnaconda centos 7サーバにanacondaとjupyter notebookをインストールpythonの第2の開発ツールJupyter Notebookのインストールとリモートアクセスの設定の他の参考を学びます.
https://blog.csdn.net/lzc4869/article/details/78625233 http://www.edu-ing.cn/go.php?https://cn.aliyun.com/jiaocheng/433136.html?spm=5176.100033.2.7.3a5d8fc9ixUljg http://www.edu-ing.cn/go.php?https://cn.aliyun.com/jiaocheng/433318.html?spm=5176.100033.2.9.3a5d8fc9ixUljgJupyter使用