Update README_zh.md

This commit is contained in:
Win7GM 2020-08-31 00:30:00 +08:00 committed by GitHub
commit c496f9c42e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,39 +273,36 @@ autoadb scrcpy -s '{}'
#### SSH 连接 #### SSH 连接
To connect to a remote device, it is possible to connect a local `adb` client to 本地的 adb 可以远程连接到另一个 adb 服务器假设两者的adb版本相同来远程连接到设备
a remote `adb` server (provided they use the same version of the _adb_
protocol):
```bash ```bash
adb kill-server # kill the local adb server on 5037 adb kill-server # 关闭本地5037端口上的adb服务器
ssh -CN -L5037:localhost:5037 -R27183:localhost:27183 your_remote_computer ssh -CN -L5037:localhost:5037 -R27183:localhost:27183 _你的另一台电脑_
# keep this open # 保持该窗口开启
``` ```
From another terminal: 从另一个终端:
```bash ```bash
scrcpy scrcpy
``` ```
To avoid enabling remote port forwarding, you could force a forward connection 为了避免启动远程端口转发,你可以强制启动一个转发连接(注意`-L``-R`的区别:
instead (notice the `-L` instead of `-R`):
```bash ```bash
adb kill-server # kill the local adb server on 5037 adb kill-server # kill the local adb server on 5037
ssh -CN -L5037:localhost:5037 -L27183:localhost:27183 your_remote_computer ssh -CN -L5037:localhost:5037 -L27183:localhost:27183 _你的另一台电脑_
# keep this open # 保持该窗口开启
``` ```
From another terminal: 从另一个终端:
```bash ```bash
scrcpy --force-adb-forward scrcpy --force-adb-forward
``` ```
Like for wireless connections, it may be useful to reduce quality: 和无线网络连接类似,下列设置可能对改善性能有帮助:
``` ```
scrcpy -b2M -m800 --max-fps 15 scrcpy -b2M -m800 --max-fps 15