mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 09:42:18 +08:00
Update jupyter.sh
This commit is contained in:
parent
2cfc80cd59
commit
cf2c2cb9df
|
@ -53,7 +53,7 @@ install_jupyter() {
|
||||||
# Create a new conda environment and install jupyter
|
# Create a new conda environment and install jupyter
|
||||||
conda create -n jupyter-env python=3
|
conda create -n jupyter-env python=3
|
||||||
sleep 5
|
sleep 5
|
||||||
source activate jupyter-env > /dev/null 2>&1
|
source activate jupyter-env
|
||||||
sleep 1
|
sleep 1
|
||||||
conda install jupyter jupyterlab
|
conda install jupyter jupyterlab
|
||||||
|
|
||||||
|
@ -76,7 +76,9 @@ install_jupyter() {
|
||||||
sudo firewall-cmd --add-port=13692/tcp --permanent
|
sudo firewall-cmd --add-port=13692/tcp --permanent
|
||||||
sudo firewall-cmd --reload
|
sudo firewall-cmd --reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source activate jupyter-env
|
||||||
|
sleep 1
|
||||||
# Start Jupyter Server with port 13692 and host 0.0.0.0
|
# Start Jupyter Server with port 13692 and host 0.0.0.0
|
||||||
green "后台执行的pid的进程ID和输出日志文件名字如下"
|
green "后台执行的pid的进程ID和输出日志文件名字如下"
|
||||||
nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & green $!
|
nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & green $!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user