image frame

博客

知足常乐

53.Windows下安装Apache

1.下载Apache

官网:https://httpd.apache.org/



2.修改Apache配置文件

首先解压出来,修改conf文件夹下的httpd.conf文件

找到Define SRVROOT “/Apache24”将/Apache24更改为解压后的目录

如果端口已经被占用则修改Listen 80为别的未占用端口

3.安装Apache

打开cmd,cd到bin文件夹下。

安装命令:

1
httpd -k install -n Apache & net start Apache

卸载命令:

1
net stop Apache & sc delete Apache

4.访问测试

在浏览器地址栏输入:http://localhost:80
出现下图界面,则为成功:

52.关闭基于虚拟化的安全性(VBS)

据说VBS最高可使系统损失30%性能。关闭VBS可以提高性能,但安全性肯定会有降低,并且虚拟机和部分依靠虚拟机的功能可能无法正常使用。此文章只展示命令。

查询VBS状态

Off为关闭,Auto为开启

1
for /f "tokens=2" %a in ('bcdedit^|findstr hypervisorlaunchtype') do @echo. & echo VBS的状态为:%a

关闭命令

1
bcdedit /set hypervisorlaunchtype off

开启命令

1
bcdedit /set hypervisorlaunchtype auto

49.Win10时钟显示秒

打开Win10时钟的秒显示

1
taskkill /F /IM explorer.exe & reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f & start %windir%\explorer.exe

关闭Win10时钟的秒显示

1
taskkill /F /IM explorer.exe & reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /f & start %windir%\explorer.exe

48.去除桌面图标小箭头和盾牌

去除桌面图标小箭头和盾牌:

1
taskkill /F /IM explorer.exe & reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /t REG_SZ /d %windir%\system32\imageres.dll,197 /f & reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /t REG_SZ /d %windir%\system32\imageres.dll,197 /f & attrib -s -r -h %userprofile%\AppData\Local\iconcache.db & del %userprofile%\AppData\Local\iconcache.db /f /q & start %windir%\explorer.exe

重新显示桌面图标小箭头和盾牌:

1
taskkill /F /IM explorer.exe & reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f & attrib -s -r -h %userprofile%\AppData\Local\iconcache.db & del %userprofile%\AppData\Local\iconcache.db /f /q & start %windir%\explorer.exe
  • Copyrights © 2023-2025 kukusun