shlu's note

服务端配置模板

[common]
bind_addr = 0.0.0.0
bind_port = xxxx
dashboard_port = xxxx
dashboard_user = xxxx
dashboard_pwd = xxxxxx
token = xxxxxx
max_pool_count = 50

客户端配置模板

[common]
server_addr = xx.xx.xx.xx
server_port = xxx
token = xxxxxx
[chp]
type = tcp
local_ip = 127.0.0.1
local_port = xxxx
remote_port = xxxx

Window 远程桌面配置模板

[common]
server_addr = xx.xx.xx.xx
server_port = xxxx
token = xxxxx
[chp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = xxxx

安装服务端

后台启动服务参考systemctl命令

安装客户端

本地开启http服务

import uvicorn
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def root():
    return {"message": "Hello World"}

if __name__ == '__main__':
    uvicorn.run(app, host='127.0.0.1', port=4567)

远程访问

声明:转载请注明出处,原文地址:shlu's note