Windows服务注册方式详见:
Windows注册服务的几种方式
本文Nginx注册Windows服务使用WinSW注册方式。
具体步骤如下:
1、根据系统类型下载对应的winsw.exe文件
WinSW下载地址:
https://github.com/winsw/winsw/releases
Windows服务注册方式详见:
Windows注册服务的几种方式
本文Nginx注册Windows服务使用WinSW注册方式。
具体步骤如下:
1、根据系统类型下载对应的winsw.exe文件
WinSW下载地址:
https://github.com/winsw/winsw/releases
@echo off
rem 清除Chrome缓存及历史记录
taskkill /f /im chrome.exe
del /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache\*.*" /f /s
del /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\History*.*" /f /s
rem 清除Firefox缓存及历史记录
taskkill /f /im firefox.exe
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\cache2\entries\*.*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\cookies.sqlite*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\downloads.sqlite*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\formhistory.sqlite*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\places.sqlite*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\sessionstore.js*" /f /s
del /q "%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*\webappsstore.sqlite*" /f /s
rem 清除微软Edge缓存及历史记录
taskkill /f /im msedge.exe
del /q "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Cache\*.*" /f /s
del /q "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\History*.*" /f /s
echo 缓存清理完成。
pause
命令:bin/zkCli.sh -server localhost:2181
如下所示,即表示连接成功!
[root@node04 bin]# zkCli.sh
Connecting to localhost:2181
...
[zk: localhost:2181(CONNECTED) 0]
[root@node04 bin]# zkCli.sh -server localhost:2181
Connecting to localhost:2181
...
[zk: localhost:2181(CONNECTED) 0]
问题场景:安装MySQL或mysql-connector时提示:
This application requires Visual Studio 2019 Redistributable. Please install the Redistributable then run this installer again.
问题原因:缺少C++环境
解决办法:安装Microsoft Visual C++ 2015-2022 Redistributable(x64)
官方下载地址:
https://learn.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170
根据提示版本及操作系统类型下载:
vc_redist.x64.exe
vc_redist.x86.exe
双击安装即可。