首页 > 系统相关 >Linux运维笔记[3]-部署数据分析框架

Linux运维笔记[3]-部署数据分析框架

时间:2022-09-19 22:56:11浏览次数:102  
标签:数据分析 docker jupyter 运维 -- Linux home Docker Jupyter

部署jupyter

Docker 部署Jupyter book
Jupyter Docker Stacks are a set of ready-to-run Docker images containing Jupyter applications and interactive computing tools. You can use a stack image to do any of the following (and more):

Start a personal Jupyter Server with JupyterLab frontend (default)
Run JupyterLab for a team using JupyterHub
Start a personal Jupyter Notebook server in a local Docker container
Write your own project Dockerfile
从零开始学习线性代数:使用Jupyter Notebook
镜像说明
镜像关系:
(图片)
大数据分析:

mkdir /home/jupyter
chmod 777 /home/jupyter
docker run --name first_jupyter -it -p 40000:8888 -v /home/jupyter:/home/jovyan/work jupyter/datascience-notebook:latest

神经网络:

docker run --name second_jupyter -it --rm -p 40001:8888 -v "${PWD}":/home/jovyan/work jupyter/tensorflow-notebook:latest

提示:

   To access the server, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/jpserver-8-open.html
    Or copy and paste one of these URLs:

[https://cloud.tencent.com/developer/ask/sof/1468015]
其他电脑可以过http://服务器ip:10000/lab?token=3d01d631dcb9b*****a018be1a38817de88a84cf31888d65
来访问jupyter,会让输入token
设置密码,以后不用输入token了

#查询token
docker exec -it first_jupyter jupyter notebook list
#设置密码
docker exec -it first_jupyter jupyter notebook password
#重启实例
docker restart first_jupyter

Due to the usage of the flag --rm Docker automatically cleans up the container and removes the file system when the container exits, but any changes made to the ~/work directory and its files in the container will remain intact on the host. The -it flag allocates pseudo-TTY.

小提示

欧拉记得允许防火墙
firewall-cmd --list-all
firewall-cmd --permanent --add-port=40000/tcp
firewall-cmd --reload
firewall-cmd --list-all

标签:数据分析,docker,jupyter,运维,--,Linux,home,Docker,Jupyter
From: https://www.cnblogs.com/qsbye/p/16709428.html

相关文章

  • linux系列---【如何查看是否是io的问题?】
    1.输入下面命令iostat-dx1#数字1  %util:cpu操作的时候,io占的百分比,大于5都得考虑是不是有问题。await:io阻塞等待的时间。wkB/s:每秒写的字节数,单位kB。rkB......
  • linux常用命令
    1、文件拷贝mv{OldFileName}{NewFileName}mv{OldDirName}{NewDirName}cp{OldFileName}{NewFileName}#-r递归操作cp-r{OldDirName}{NewDirName} 2、权......
  • 在Linux环境下使用vscode配置C++调试环境
    在Linux环境下使用vscode配置C++调试环境序起因在课程CMU15445LAB0的编写以及debug过程中充斥着assert以及printf这种不优雅的debug方式,因此决定直接进行工业革命!使用......
  • linux命令详解:chmod
    说明全称:changemode作用:修改文件、目录的操作权限权限说明linux的文件调用权限分为三个组:所有者:全称Owner,简写u用户组:全称Group,简写g其它用户:全称OtherUsers,简......
  • LINUX基础命令学习上
    一、目录操作1、pwd(printworkdirectory)2、cd3、ls4、通配符5、权限6、alias7、du(diskusage)二、创建1、mkdir(mkdirmakedirectories)2、touch3、硬链接与......
  • linux 查看nginx 安装路径
    linux查看nginx安装路径A、查看安装的位置whereisnginxB.通过相应的进程ID(比如:4562)查询当前运行的nginx路径ll/proc/4562/exe1.在默认安装位置下查看,大多数一......
  • Linux -- ShellScript
    0x0站在巨人的肩膀上一个简易的教程为什么要在可执行文件前面加./shell脚本开头的#!是什么使用mv替换rm防止误删常用shell脚本0x1小的知识点转义字符:e......
  • linux命令
    目录:1、家目录2、ls3、通配符4、文件的字符意义5、别名alias6、du7、mkdir8、touch9、创建链接文件-lnLINUX命令家目录:家目录存放当前用户特殊配置的文件夹,当......
  • Linux基础知识
     虚拟网卡VM1-3网卡对应三种模式:1、仅主机虚拟机和物理机在一个封闭的内网网段中,不可以上网(常用vm1)物理机和虚拟机互通只需要同一网段2、桥接:虚拟机直接用的主机网卡......
  • 项目代码在pycharm中可以正常运行,但是linux运行报错No module named 'XX'
    问题产生的原因:pycharm自动将代码的主函数路径加入到运行中去,但是linux不会。解决问题的本质:为项目中文件找到更目录并添加到sys路径中。项目实例   原始的项目......