高哲技术博客 高哲技术博客
首页
编程
爬虫
运维
硬件
收藏
归档
关于

嘉美伯爵

前途光明,无需畏惧
首页
编程
爬虫
运维
硬件
收藏
归档
关于
  • 方案

    • 自动化部署方案
    • Java如何进行代码校验
    • 如何使用Github Action完成持续集成
    • 容器部署优化及问题总结
    • 主流的serverless对比
    • 如何使用juicefs和minio存储数据
    • gitlab golang代码校验模版
    • 使用gost进行内网端口转发并配置jupyter notebook
      • jupyter安装步骤
      • gost配置步骤
      • 参考
    • 如何快速下载github资源和代码
    • 如何通过yaml文件生成protobuf
    • git操作使用整理
    • 监控架构建设方案
    • 自由之书在gitops下的实践
    • 隧道代理建设方案
    • golang内部私服建设方案
  • 数据库

  • 虚拟化

  • 自动化部署

  • 中间件

  • 可观测

  • 操作系统

  • 运维
  • 方案
fovegage
2023-08-21
目录

使用gost进行内网端口转发并配置jupyter notebook

# jupyter安装步骤

conda install jupyterlab

# ipython
from notebook.auth import passwd
passwd()

# jupyter lab --generate-config (vi /root/.jupyter/jupyter_notebook_config.py)
# 将ip设置为*,意味允许任何IP访问
c.NotebookApp.ip = '*'
# 这里的密码就是上边生成的字符串
c.NotebookApp.password = 'sha1:f704b702aea2:01e2bd991f9c720812345607810927'
# 服务器上并没有浏览器可以供Jupyter打开 
c.NotebookApp.open_browser = False 
# 监听端口设置为8888或其他自己喜欢的端口 
c.NotebookApp.port = 8888
# 允许远程访问 
c.NotebookApp.allow_remote_access = True

# 运行
jupyter lab --allow-root
nohup jupyter lab --allow-root &
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# gost配置步骤

# 安装go
snap install go --channel=1.20/stable --classic
export GOPROXY=https://goproxy.cn

# 配置  172.18.16.38:8888 是远程jupyter的地址  10.6.16.191:2222 是公网jupyter的地址
./gost -L socks5://:5555?bind=true
./gost -L rtcp://:2222/172.18.16.38:8888 -F socks5://10.6.16.191:5555

./gost -L socks5://:5556?bind=true
./gost -L rtcp://:7777/172.18.16.38:8000 -F socks5://10.6.16.191:5556

# 文档 
https://blog.csdn.net/v6543210/article/details/130705592
1
2
3
4
5
6
7
8
9
10
11
12
13

# 参考

  • gost文档 (opens new window)
  • JupyterLab远程访问配置方法 (opens new window)
  • Centos安装Anaconda和jupyter (opens new window)
上次更新: 2023-08-23 17:09:19
gitlab golang代码校验模版
如何快速下载github资源和代码

← gitlab golang代码校验模版 如何快速下载github资源和代码→

最近更新
01
token embed和postion embed
06-10
02
k8s pod日志排查问题
10-24
03
golang内部私服建设方案
10-21
更多文章>
Theme by Vdoing | Copyright © 2018-2025 嘉美伯爵 | 鲁ICP备20001560号-4
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式