当前位置:   article > 正文

frp内网穿透,配置文件_frpc -c frpc.ini

frpc -c frpc.ini

frp后台运行

frpcs.ini

[common]
bind_port = 8989
vhost_http_port = 8890
# 下面的是配置可视化界面的,可以通过你的ip:7500访问
dashboard_port = 7500
dashboard_user = nick
dashboard_pwd = pwd

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

阿里云服务器,安全组规则中 中打开 6000 6001 8890 端口

frpc.ini

[common]
server_addr = 47.113.192.43
server_port = 8989

[ssh1]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

[range:VNC11]
type = tcp
local_ip = 127.0.0.1
local_port = 6001
remote_port = 6001

[jupyter]
type = http
local_ip = 127.0.0.1
local_port = 8888
server_port = 8890
remote_port = 8890
custom_domains = 47.113.192.43

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
Server:
nohup ./frps -c frps.ini >/dev/null 2>&1 &
  • 1
Client:
nohup ./frpc -c frpc.ini >/dev/null 2>&1 &
  • 1
Jupyter Notebook
nohup jupyter notebook >/dev/null 2>&1 &
  • 1
jupyter notebook --generate-config

ipython

 In [1]: from notebook.auth import passwd
 In [2]: passwd()
 Enter password:
 Verify password:
 Out[2]: 'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'

 vim ~/.jupyter/jupyter_notebook_config.py

 c.NotebookApp.ip='*'
 c.NotebookApp.password = u'sha:ce...刚才复制的那个密文'
 c.NotebookApp.open_browser = False
 c.NotebookApp.port =8888 
 c.NotebookApp.allow_remote_access = True

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号