拥有已成功运行多年的 Windows Server 2016(托管于 Amazon AWS EC2)。
\n自从某个月以来,我遇到了计划任务(例如配置为每天运行的任务)未执行的情况。任务历史记录中没有错误消息。事件日志中没有条目。没有什么。
\n这些任务根本不运行,并且“下次运行时间”列中是未来的日期,例如明天。明天再次查看时,同样的图片:未运行任何任务,“下一次运行时间”再次指向未来。
\n这是我的系统时间的另一个例子:
\n\n上面的 Windows 更新屏幕截图显示,我在2022 年2 月5 日安装的 SQL Server 更新实际上被错误地显示为在2022 年3 月5 日安装。未来一个月。
\n我刚刚在命令行中调用了它:
\nC:\\>w32tm /query /status\nRun Code Online (Sandbox Code Playgroud)\n打印了这个结果:
\nLeap Indicator: 0(no warning)\nStratum: 4 (secondary reference - syncd by (S)NTP)\nPrecision: -6 (15.625ms per tick)\nRoot Delay: 0.0096024s\nRoot Dispersion: 0.0493815s\nReferenceId: 0x28779426 (source IP: 40.119.148.38)\nLast Successful Sync Time: 08.02.2022 08:41:13\nSource: time.windows.com,0x8\nPoll Interval: 10 (1024s)\nRun Code Online (Sandbox Code Playgroud)\n我看来没有什么可疑之处。
\n我也检查过病毒,没有任何阳性结果。我还运行了“MRT”工具,但没有任何积极效果。
\n上次发生这种情况可能是一个月前,我重新启动了系统,我想这(暂时)解决了问题。只是现在再次出现。 …
我有一个重写规则响应 301 重定向,但我不知道为什么。
我在 WinHost 共享主机上,使用 IIS 7 重写来托管我从我帐户的子文件夹拥有的另一个域。
默认情况下,WinHost 会将您的其他域指向您帐户的根目录。所以我的目标有两个:
以便:
http://myotherdomain.com
Run Code Online (Sandbox Code Playgroud)
从以下位置获取服务:
E:\account_root\myotherdomain
Run Code Online (Sandbox Code Playgroud)
所以使用 IIS 7 重写模块,我生成了这个规则。
<xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Test" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="(^|\.)myotherdomain\.com$" />
</conditions>
<action type="Rewrite" url="myotherdomain/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我希望请求myotherdomain.com偏移到myotherdomain子文件夹中。
这是有效的,但前提是请求中没有路径。如果我请求,http://myotherdomain.com我会收到 200 响应 & 在我的浏览器中,我会看到位于E:\account_root\myotherdomain. 不会发生重定向。
如果您向请求添加路径,例如http://myotherdomain.com/test,现在我会收到一个 301 重定向到重写的 URL:
Response: HTTP/1.1 301 Moved Permanently
Location: http://myotherdomain.com/myotherdomain/test/
Run Code Online (Sandbox Code Playgroud)
然后浏览器获取:
Request: GET …Run Code Online (Sandbox Code Playgroud) 拥有一个共享许多嵌套文件夹的 Windows Server 2008 R2,我希望能够只向某些 AD 用户/AD 用户组显示某些文件夹。
是否可以配置单个文件夹的权限,以便与 Windows XP/Windows 7 连接到 Windows 2008 R2 服务器上的共享的客户端只能看到他们具有“查看”权限的那些文件夹?
其他客户端根本不应在 Windows 资源管理器中看到这些文件夹。
有人告诉我,这似乎是 Novell 网络的标准功能。
好吧,有时看似简单的事情会变成灾难。
一旦我添加到 VirtualHost:
CustomLog "|usr/sbin/rotatelogs -l ${APACHE_LOG_DIR}/01030/%Y%W_01030.access.log 604800" combined
Run Code Online (Sandbox Code Playgroud)
我得到:
[Wed Nov 25 20:08:37.886766 2015] [mpm_prefork:notice] [pid 1381] AH00171: Graceful restart requests, do restart (2)No such file or directory: AH00104: 无法启动管道日志程序 'usr/sbin/ rotatelogs -l /var/log/apache2/40539/%Y%W_40539.access.log 604800'
[2015 年 11 月 25 日星期三 20:08:37.992571] [:emerg] [pid 1381] AH00019:无法打开日志,正在退出
Debian 8,Apache 2.4.10。
一定有什么东西在水里。在 2.4.10 周围看到了这个问题,但显然没有令人满意的答案。帮助将不胜感激。