这是本节的多页打印视图。 点击此处打印.

返回本页常规视图.

网络通讯类软件

windows 11下日常使用的网络通讯类软件的安装和配置。

1 - 微软Edge浏览器

目前我的主力浏览器

windows 11 自带微软Edge浏览器,无需安装,但是需要稍微设置一下。

定制首页

默认情况下打开的页面上显示了太多的乱七八糟的内容,需要定制一下。

打开页面设置:

  • 快速链接:关闭
  • 网站导航:关闭
  • 显示信息提要:关闭
  • 背景: 关闭
  • 显示天气:关闭

但 bing 的搜索还是不够喜欢,默认还是继续用 google 吧。因此修改 edge 启动时默认打开 google 页面。

打开设置 -> 开始、主页和新建标签页 -> Microsoft Edge 启动时,设置为:打开一下页面,然后添加页面 https://www.google.com/

设置默认搜索引擎

默认使用 bing 作为搜索引擎,我喜欢换成 google。

打开设置 -> 隐私、搜索和服务 -> 地址栏和搜索(在最下面倒数第二个),设置为:

  • 地址栏中使用的搜索引擎:google
  • 新标签页上的搜索使用搜索框或地址栏:搜索栏

登录并同步数据

用微软账号登录,方便同步书签和扩展等数据。

发现 edge 登录之后,windows 账号也有信息了,下一次登录windows时会出现该账号的头像。

设置扩展插件

1password

需要登录。

SwitchOmega

思路:增加 auto switch 场景,指向虚拟场景 fanqiang,再根据实际需要增加具体的 proxy,然后以后就只要修改虚拟场景 fanqiang 的指向就好了。

设置 proxy 为 socket5, 代理服务器为 192.168.2.1, 代理端口为 7891。

不经过的地址列表为:

127.0.0.1
::1
localhost
192.168.0.0/16

增加 auto switch,设置规则格式为 AutoProxy ,规则列表网址为:

https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

save to pocket

登录即可。

沉浸式翻译

无需操作。

2 - 百度网盘

主力网盘

安装

https://pan.baidu.com/

设置

打开设置:

  • 不要勾选 “开机时启动百度盘”
  • 取消勾选 “在我的电脑中显示百度盘”
  • 取消勾选 “桌面显示悬浮窗”
  • 取消勾选 截图工具 -> “开启截图快捷键”

自动备份功能暂不使用。

下载文件位置修改为 downloads。

3 - 夸克网盘

备用网盘

介绍

淘宝 88VIP 赠送的夸克网盘权益,有时有些下载网站使用夸克网盘,因此作为一个备用方案偶尔使用。

比较恶心的是淘宝 88VIP 赠送的夸克网盘会员并不是一般意义上的 SVIP 会员,因此功能很有限,但是宣传上含糊其辞,然后夸克网盘那边总是时不时提醒要求开通 SVIP。

安装

https://pan.quark.cn/

注意:安装后在设置中关闭开机自启动。

4 - qBittorrent

bt/pt下载软件。

介绍

https://www.qbittorrent.org/#about-qbittorrent

5 - FileZilla

开源ftp客户端和服务器

介绍

https://filezilla-project.org/

免费的FTP解决方案。FileZilla客户端不仅支持FTP,还支持基于TLS的FTP(FTPS)和SFTP。它是在GNU通用公共许可证条款下免费分发的开源软件。

我们还提供FileZilla Pro,支持WebDAV、Amazon S3、Backblaze B2、Dropbox、微软OneDrive、谷歌驱动器、微软Azure Blob和文件存储以及谷歌云存储等其他协议。

最后,FileZilla Server是一个免费的开源FTP和FTPS服务器。

FileZilla Client

免费,功能也够用,不过 FileZilla Pro 有方便的破解版本可以用。就直接用 FileZilla Pro 了。

FileZilla Pro

正常安装,用 crack 文件覆盖 FileZilla.exe 就可以破解。

配置一下文件大小显示,默认是 byte,数字太大数不过来。

打开 “编辑” -> “设置” -> “界面” -> “文件大小格式”,从默认第一个的 “以字节为单位显示”,修改为第三个 “使用SI式二进制前缀”,取消 “使用千位分隔符” 的勾选。

FileZilla Server

安装

安装时注意:

  • FileZilla Server 要设置为服务器,开机自动启动

  • 需要设置管理端口(默认14148)和管理密码

  • administration interface 要设置为手动打开,不要自动启动。毕竟 ftp 服务器一旦设置好,日常是不需要改动的。

容许外部访问

FileZilla Server 启动后,用 FileZilla Client 在本机可以正常连接和访问。但是从其他机器连接就会失败,这通常是因为 windows 防火墙阻止了外部访问 FileZilla Server。

解决的方式是:

  1. 通过 administration interface 设置 FileZilla Server passive mode 的自定义端口范围,如 50100 到 51100

  1. 容许应用 FileZilla Server 通过防火墙进行通讯

控制面板 -> 系统和安全 -> 容许应用或者功能通过 windows defender 防火墙 -> 容许的应用

选择 “更改设置” -> “容许其他应用”,增加 “FileZilla Server”,指向 “C:\Program Files\FileZilla Server\filezilla-server.exe”

  1. 设置入站规则,开启自定义的端口

控制面板 -> 系统和安全 -> windows defender 防火墙 -> 高级设置

在 “协议和端口” -> “本地端口” 中选择 “特定端口”,输入 “20,21,50100-51100”

这样就可以从其他机器访问到 FileZilla Server。

容许公网访问

必要时,打开路由器的端口映射,可以容许从外网访问内部 ftp 服务器。

需要映射的端口有:

  • 20-21
  • 50100-51100

openwrt 中的配置如下:

注意:这样把内部 ftp 服务器暴露给公网非常不安全,因此只能临时要用的时候开启一下,用完就关闭(把后面的勾选去掉即可)。

6 - hanewin nfs服务器

hanewin nfs 服务器软件

安装

安装路径

建议不要安装在program files目录下,找个普通路径,不需要管理员权限的

如:C:\data\soft\nfsd

注册和设置

打开 nfssrv.exe 进行注册和设置时,要以管理员身份运行。

输入注册号注册:

FBLZ3317FCE4196E
Team BLiZZARD

在export中设置export内容:

e:\ -public -readonly
f:\ -public -readonly
g:\ -public -readonly
h:\ -public -readonly

重启验证

安装之后重启,在管理 -》 服务中看是否有 nfs server。

查看 C:\data\soft\nfsd 下的 nfsd2005.log 看是否启动成功。

也可以在服务列表中停止 nfs server,然后删除 nfsd2005.log 文件,再启动 nfs server 服务,再检查 nfsd2005.log。

正常启动成功会出现下面的内容:

2020-05-24 10:43:19 --- haneWIN NFS Server 1.1.75
2020-05-24 10:43:19 nfsd   file handle cache size 24
2020-05-24 10:43:19 nfsd   client charset UTF-8
2020-05-24 10:43:19 nfsd   NTFS 2000/XP hardlinks supported

------ Exported file systems ------
21367d2e e:\          -ro -public
04ba4fb0 f:\          -ro -public
06a79256 g:\          -ro -public
0debb5d0 h:\          -ro -public
-----------------------------------

2020-05-24 10:43:19 mountd started
2020-05-24 10:43:19 nfsd   started, 4 udp threads

windows防火墙

要关闭windows防火墙,或者设置让 nfs server 通过 windows 防火墙,将 C:\data\soft\nfsd 下面的三个可执行文件都设置为可以穿透防火墙。

  1. nfssrv.exe
  2. nfsd.exe
  3. pmapd.exe

文件中文编码

设置 server -》 “utf-8 charracter sets”,打勾

7 - wget

wget 下载软件

主要是为了在 cmd ,bash/zsh 下使用,保持和 linux 一致的使用习惯。

GNU 版本的 wget 下载地址为:

https://eternallybored.org/misc/wget/

下载最新的 64 位版本,可以选 zip 或者 exe 格式。

将得到的 wget.exe 文件放到任何一个 path 列出的路径下即可,比如最常见的 c:/WINDOWS/system32

打开 cmd 或者 bash/zsh,检验一下:

$ wget --version
GNU Wget 1.21.4 built on mingw32.

+cares +digest +gpgme +https +ipv6 +iri +large-file +metalink -nls
+ntlm +opie +psl +ssl/openssl
......

下载一个文件测试一下:

wget https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

8 - 安装 OpenSSH server

OpenSSH server 可以提供 ssh 服务

参考:

使用 powershell 安装

注意:必须以管理员身份运行 powershell。

检查是否安装

检查有没有安装 OpenSSH :

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

如果没有安装则输出为:

Name  : OpenSSH.Client~~~~0.0.1.0
State : NotPresent

Name  : OpenSSH.Server~~~~0.0.1.0
State : NotPresent

如果已经安装则输出为:

Name  : OpenSSH.Client~~~~0.0.1.0
State : Installed

Name  : OpenSSH.Server~~~~0.0.1.0
State : Installed

安装 OpenSSH Client 和 Server

执行安装命令:

# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

启动 OpenSSH Server

启动 OpenSSH Server 并验证防火墙设置:

# Start the sshd service
Start-Service sshd

# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {
    Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."
    New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
} else {
    Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."
}

设置开机自动启动

# OPTIONAL but recommended:
Set-Service -Name sshd -StartupType 'Automatic'

配置 openssh server

配置默认 shell

请在安装好 git (自带bash) 之后再进行这个配置,假定 bash 的安装路径是:C:\soft\git\usr\bin\bash.exe

用 powershell 执行命令:

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\User\sky\work\soft\git\bin\bash.exe" -PropertyType String -Force

如果想把默认shell修改为 zsh,最好是先安装上面的方法将默认 shell 设置为 git 带的 bash,然后再让bash启动zsh,这样就能够利用到 git 带的 bash 里面的一些基本的 linux 命令。如果直接将默认shell改为 zsh,则 ssh 登录之后会报错如下:

/c/Users/sky/.oh-my-zsh/oh-my-zsh.sh:65: command not found: mkdir
/c/Users/sky/.oh-my-zsh/oh-my-zsh.sh:124: command not found: rm

警告:

这个修改完成后,在终端 ssh 上去可以正常工作。但是用 vs code remote ssh 连接上去,就会报错:

[19:30:31.224] stderr> /usr/bin/bash: line 3: $'\202': command not found
[19:30:31.230] stderr> /usr/bin/bash: line 4: name: command not found
[19:30:31.236] stderr> /usr/bin/bash: line 6: $'\202': command not found
[19:30:31.242] stderr> /usr/bin/bash: line 8: $'\202': command not found
[19:30:31.248] stderr> /usr/bin/bash: line 10: $'\202': command not found
[19:30:31.253] stderr> /usr/bin/bash: line 12: $'\202': command not found
......
[19:31:05.042] stderr> /usr/bin/bash: line 5432: $'\202': command not found
[19:31:05.048] stderr> /usr/bin/bash: line 5434: $'\202': command not found
[19:31:05.054] stderr> /usr/bin/bash: line 5436: $'\202': command not found
[19:31:05.057] Terminating local server
[19:31:05.060] Exec server for ssh-remote+192.168.0.103 failed: Error: Connecting with SSH timed out

暂时先回滚这个配置:

Remove-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Force

9 - nginx

nginx http server

在必要时开启 http server 。

下载

https://nginx.org/en/download.html

下载最新的 Stable version,如 nginx-1.26.3:

https://nginx.org/download/nginx-1.26.3.zip

安装

解压缩到 c:\data\soft\nginx 目录下。

配置

修改配置文件 conf\nginx.conf, 端口从默认的 80 修改为 8088,root 目录从默认的 nginx 安装目录下的 html 目录修改为自己的目录,开启目录浏览功能:

server {
  listen 80,
  location / {
    root C:\Users\sky\data\shared;
    autoindex on;
    autoindex_exact_size off;
    autoindex_localtime on;
  }
}

启动

打开 cmd ,cd 到 nginx 安装目录,执行命令:

start nginx

容许 nginx 通过防火墙。

修改配置之后,执行

nginx -s reload

重新装载配置文件。

访问

通过浏览器访问:

https://localhost:8088

http://192.168.3.227:8088/

新建一个 data 目录,新建一个 a.txt 文件,在浏览器中访问:

http://192.168.3.227:8088/data/

检查目录浏览开启成功。

开机启动

下载 windows server wrap:

https://github.com/winsw/winsw/releases

下载 x64 版本 WinSW-x64.exe,重命名为 nginx-service.exe,放到 nginx 安装目录下。

新建一个 nginx-service.xml 文件,内容如下:

<service>
<id>nginx</id>
<name>Nginx (powered by WinSW)</name>
<description>nginx http server</description>
<executable>C:\data\soft\nginx\nginx.exe</executable>
<stopexecutable>C:\data\soft\nginx\nginx.exe</stopexecutable>
<stoparguments>-s stop</stoparguments>
<startmode>Automatic</startmode>
</service>

然后打开 cmd ,cd 到 nginx 安装目录,执行命令:

C:\data\soft\nginx>nginx-service.exe install

输出为:

2025-03-26 17:45:30,768 INFO  - Installing service 'Nginx (powered by WinSW) (nginx)'...
2025-03-26 17:45:30,838 INFO  - Service 'Nginx (powered by WinSW) (nginx)' was installed successfully.

打开 计算机管理 -》 服务,可以看到 nginx 的服务,启动类型为自动。

重启,然后打开浏览器检验 nginx 是否自动启动成功。

10 - iperf 使用

iperf 是一个网络性能测试工具,可以用来测试网络的带宽、延迟、丢包率等指标。

安装 iperf 2

iperf 2 下载地址:

https://sourceforge.net/projects/iperf2/

下载得到 iperf-2.2.1-win64.exe,将这个文件复制到 c:/windows/system32 目录下,然后重命名 iperf.exe。

安装 iperf 3

iperf 3 网站:

https://iperf.fr/iperf-download.php

下载地址中选:

https://github.com/ar51an/iperf3-win-builds/releases

下载得到 iperf-3.18-win64.zip,解压缩后,将 iperf3.exe 和 cygwin1.dll 文件复制到 c:/windows/system32 目录下即可。