以管理员权限运行 CMD,依次输入以下命令。
- 卸载已安装密钥
slmgr.vbs /upk
以管理员权限运行 CMD,依次输入以下命令。
slmgr.vbs /upk
Sometimes docker can not pull images, we need to configure the proxy.
Create /etc/systemd/system/docker.service.d/http-proxy.conf.
[Service]
Environment="HTTP_PROXY=http://127.0.0.1:7890"
Environment="HTTPS_PROXY=http://127.0.0.1:7890"
Environment="NO_PROXY=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
Sometimes k8s containerd can not pull images, we need to configure the proxy.
sudo systemctl set-environment HTTP_PROXY=127.0.0.1:7890
sudo systemctl set-environment HTTPS_PROXY=127.0.0.1:7890
sudo systemctl set-environment NO_PROXY=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local,.ewhisper.cn,<nodeCIDR>,<APIServerInternalURL>,<serviceNetworkCIDRs>,<etcdDiscoveryDomain>,<clusterNetworkCIDRs>,<platformSpecific>,<REST_OF_CUSTOM_EXCEPTIONS>
sudo systemctl restart containerd
sudo systemctl unset-environment HTTP_PROXY
sudo systemctl unset-environment HTTPS_PROXY
sudo systemctl unset-environment NO_PROXY
sudo systemctl restart containerd
Generally speaking, turning off the monitor only requires pressing the monitor's power button. However, if the monitor does not have a power button or there are other reasons, you need to use a command to turn off the monitor.
On linux, you can turn off the monitor with the following command:
终端输入:vmware-netcfg ,来调用 vmware-netcfg 来初始化 vmware 网络模块,但是报错:
Network configuration is missing. Ensure that /etc/vmware/networking exists.
在终端输入:
sudo touch /etc/vmware/x ; sudo vmware-networks --migrate-network-settings /etc/vmware/x ; sudo rm /etc/vmware/x
安装 duti:
brew install duti
When using Apifox for API testing, if the query parameter contains "+", it will be incorrectly parsed as a space after being sent to the server.
This is because Apifox will URL encode the parameter when sending, and "+" will be automatically encoded as %20. Therefore, replace "+" with "%2B".
打开终端,输入一下命令:
sudo mdutil -avE
Parallels Desktop 有可能会在安装 windows 系统之后,弹窗提示 This copy of Parallels Desktop may not be genuine。
在点击 Get Genuine Copy 之后,会直接关闭虚拟机。
找到 C:\Program Files\Parallels\Parallels Tools\Plugins\DesktopUtilities.dll,备份之后,创建一个空的文件并命名为 DesktopUtilities.dll,然后重启虚拟机即可。
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/SYSIN