tvnserver.exe -install -controlservice -startservice -port xxxx -secondaryport yyyy命令不对
时间: 2023-07-30 10:08:48 浏览: 168
非常抱歉,我的回答还是有误。正确的命令应该是:
```
tvnserver.exe -install -service -startservice -port xxxx -secondaryport yyyy
```
其中“xxxx”和“yyyy”分别是你想要使用的两个端口号。
请注意,这个命令需要管理员权限才能运行。执行这个命令会创建一个新的 Windows 服务,这个服务会自动启动 TightVNC Server,并且使用指定的端口号。
如果你想要使用更多的端口号,可以将“-secondaryport yyyy”替换为更多的“-secondaryport zzzz”选项,其中“zzzz”是你想要使用的端口号。
在 Windows 服务界面中,你可以找到 TightVNC Server 服务,并将其启动、停止或修改配置。如果你需要修改 TightVNC Server 的配置,可以编辑 TightVNC Server 安装目录下的 tightvncserver.ini 文件,并重启 TightVNC Server 服务。
相关问题
tvnserver.exe -controlservice -port=xxxx 命令不对
非常抱歉,我的回答有误。正确的命令应该是:
```
tvnserver.exe -controlservice -port xxxx
```
其中“xxxx”是你想要设置的端口号。
请注意,这个命令只会在当前会话中启动 TightVNC Server,并且需要管理员权限才能运行。如果你想要在系统启动时自动启动 TightVNC Server,并且使用多个端口,可以使用 Windows 服务来实现。
具体地,你可以按照以下步骤设置 TightVNC Server 的 Windows 服务:
1. 打开命令提示符窗口,以管理员权限运行。
2. 进入 TightVNC Server 的安装目录,例如:
```
cd "C:\Program Files\TightVNC\tvnserver"
```
3. 输入下面的命令,以创建一个新的 Windows 服务:
```
tvnserver.exe -install -controlservice -startservice -port xxxx -secondaryport yyyy
```
其中“xxxx”和“yyyy”分别是你想要使用的两个端口号。
如果你想要使用更多的端口号,请将“-secondaryport yyyy”替换为更多的“-secondaryport zzzz”选项,其中“zzzz”是你想要使用的端口号。
4. 在 Windows 服务界面中,找到 TightVNC Server 服务,并将其启动。
完成以上步骤后,TightVNC Server 就会在你设置的端口上监听连接请求了,并且会在系统启动时自动启动。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![exe](https://img-home.csdnimg.cn/images/20241231044909.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![exe](https://img-home.csdnimg.cn/images/20241231044909.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)