mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-30 04:31:29 +08:00
Compare commits
4
Commits
0a0c1040dc
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ade7fa770b | ||
|
|
bd267a9c2f | ||
|
|
6fa3de4b8c | ||
|
|
908a8d9bb1 |
No files matched your search
@@ -0,0 +1,36 @@
|
|||||||
|
# 公网ip服务器部署frps服务端
|
||||||
|
0. 安装docker
|
||||||
|
1. 安装1panel
|
||||||
|
```shell
|
||||||
|
bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)"
|
||||||
|
```
|
||||||
|
2. 在面板中安装frps
|
||||||
|
|
||||||
|
# 内网设备安装frpc客户端
|
||||||
|
1. 安装
|
||||||
|
```shell
|
||||||
|
curl -LO https://gitee.com/kuwinet/frp-onekey/raw/master/frpc.sh && chmod +x frpc.sh && ./frpc.sh
|
||||||
|
```
|
||||||
|
2. 配置
|
||||||
|
```shell
|
||||||
|
vim /usr/local/frpc/frpc.toml
|
||||||
|
```
|
||||||
|
文件内容
|
||||||
|
```
|
||||||
|
serverAddr = "服务器地址"
|
||||||
|
serverPort = 端口
|
||||||
|
auth.method = "token"
|
||||||
|
auth.token = "服务端密钥"
|
||||||
|
|
||||||
|
[[proxies]]
|
||||||
|
name = "ssh"
|
||||||
|
type = "tcp"
|
||||||
|
localIP = "127.0.0.1"
|
||||||
|
localPort = 22
|
||||||
|
remotePort = 6000 # 公网服务器上用于接收 SSH 连接的端口
|
||||||
|
```
|
||||||
|
3. 查看状态、重启
|
||||||
|
```shell
|
||||||
|
sudo systemctl status frpc
|
||||||
|
sudo systemctl restart frpc
|
||||||
|
```
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
1. 安装 x11vnc 与 noVNC
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install x11vnc novnc python3-websockify -y
|
||||||
|
```
|
||||||
|
|
||||||
|
2. 配置并启动 x11vnc
|
||||||
|
设置一个 VNC 访问密码
|
||||||
|
```
|
||||||
|
x11vnc -storepasswd
|
||||||
|
```
|
||||||
|
启动 x11vnc 服务,共享当前的主显示器:0并允许客户端断开后服务继续运行
|
||||||
|
```
|
||||||
|
x11vnc -usepw -forever -display :0
|
||||||
|
```
|
||||||
|
|
||||||
|
3. 启动 noVNC 网页代理
|
||||||
|
```
|
||||||
|
websockify --web /usr/share/novnc 6080 localhost:5900
|
||||||
|
```
|
||||||
Reference in new issue
Block a user