平时遇到的各种小问题及解决方式

Windows

RDP

查看 RDP 端口

Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"

更换 RDP 端口为 XXXX

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value XXXX
New-NetFirewallRule -DisplayName 'RDPPORTLatest' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort XXXX

WSL

Linux

Shell

Here Document (<<) 想要过滤去掉行首的 Tab:<<-

Config

配置文件最好以换行符结尾,方便后续 echo "key=value">>config.conf 追加配置操作。

GitHub

LICENSE

Network

Hardware

RJ45 水晶头

螺丝标准

最后更新于