服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
嗨,我搜查了几个较旧的post,但没有find确切的解 所以张贴新的问题。 我需要一个单一的Windows命令使用AND条件search两个单词。 将findstr函数作品的组合? 即时searchWORD1,然后是WORD2(不是反向,单词2后跟单词1或单个单词)。 下面是一个示例文件内容: TABLEA insert INSERT TABLEA update tableA upsert tableb insert into tableA update staging.tableA insert into staging.tableA — insert into staging.tableA test insert staging.tableA tableA insert tableA select insert 所需的search输出:find匹配时打印文件名 。 fr例如,word1 =插入和word2 = tableA。 以下是样本search结果 INSERT TABLEA insert into tableA insert into staging.tableA — insert into staging.tableA test insert […]
我有一个haproxy节点和3个应用程序服务器(tomcat)。 用户必须打开http://10.0.0.1 (通过IP地址),然后redirect到http://10.0.0.2/app或http://10.0.0.3/app或http://10.0.0.4/app 。 目前haproxyconfiguration: global log 127.0.0.1 local0 log 127.0.0.1 local1 notice chroot /var/lib/haproxy user haproxy group haproxy daemon maxconn 50000 defaults log global mode http option httplog option dontlognull # option httpchk OPTIONS * HTTP/1.1\r\nHost:\ www retries 3 redispatch contimeout 1s clitimeout 2s srvtimeout 3s errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 […]
对于我们的其中一个应用程序,我们需要在Windows机器上configuration虚拟内存来pipe理系统。 这可以在系统属性 – >性能(设置…) – >性能选项高级选项卡 – >虚拟内存更改… – >检查硬盘是否切换到“系统pipe理大小”手动完成。 这很好,但是我必须为大量的机器执行此操作,并希望在检查其他configuration时收集此信息的批处理命令或PowerShell脚本。 我发现与本页面最接近的是 wmic computersystem get AutomaticManagedPagefile 但是,这只会检查顶部的checkbox是否configuration,而不是特定的硬盘驱动器。 有没有人有任何build议如何以更自动化的方式做到这一点?
我需要configurationnginx服务器,他显示403页,如果URL包含两个点(..)在URL的任何地方。 例如,如果URL是“site.sit / index.php?log = .. / conf.php – web服务器应该检测到上面的目录并带上403-messege。我试图在conf – 文件nginx在那里: location \.\. { deny all; } 但是这不行。 告诉我,我该如何执行这个计划?
内部和外部的路由器是否需要使用不同的(子)networking? 举个例子:我们在这个领域有以下设置: networking:10.10.1.0/28 R1:路由器与R1.outside访问互联网 R1.inside:10.10.1.1: R2:路由器在互联网上创buildVPN隧道到系统 R2.outside:10.10.1.2以10.10.1.1作为默认gw R2.inside:10.10.1.3 C:以太网控制器 10.10.1.4以10.10.1.4(R2.inside)作为默认gw 所有这些接口都插入到一个交换机中(除了R1外,通常是GPRS连接) ^ | | +———+——-+ | Outside | | | | R1 | | | | Inside | +——-+———+ | | | | +——————————————-+ | | | | Switch + + + + | | | | | | +——————————————-+ | | | | | […]
我正在考虑升级PowerEdge R720中的硬盘驱动器,需要一些指导。 当前configuration: OS: CentOS 6.5 Drives: 2 x 300gb drives (RAID 1) 4 x 600gb drives (RAID 5) 我有6个新的需要交换的1.2TB SAS驱动器。 我可以添加一个1.2TB驱动器的600GB的驱动器曾经居住? 由于#1需要一段时间,是否可以在保留RAIDconfiguration的情况下同时交换所有驱动器? 所有的数据已经在其他地方备份了,只是想知道如果将它们全部交换出去,将会破坏现有的RAIDconfiguration,或者如果保存在Perc H710卡上。
我使用Syslinux在FreeBSD 10.3 PXE Boot服务器上进行了设置。 通过TFTP启动工作正常,但通过HTTP返回到PXE菜单。 从浏览器获取所有文件正常工作。 # cat /usr/tftpdata/pxelinux.cfg/default label mfsbsd menu label ^MfsBSD 10.3 (TFTP) kernel memdisk raw initrd images/mfsbsd/mfsbsd-se-10.3-RELEASE-amd64.iso append iso raw label mfsbsd_http menu label ^MfsBSD 10.3 (HTTP) kernel memdisk raw initrd http://172.16.3.5/pxe/images/mfsbsd/mfsbsd-se-10.3-RELEASE-amd64.iso append iso raw tftp文件夹: # ls -l /usr/tftpdata total 560 -r–r–r– 1 root wheel 24560 Jul 20 00:38 chain.c32 […]
症状是每周大约一次DFSR(分布式文件系统复制)停止复制并且Windows备份(wbengine.exe)停止响应。 当我分析他们的等待链时,他们正在等待dfsrs.exe线程:4664和线程:4680. dfsrs.exe正在等待线程:4664。 我杀dfsrs.exe和wbengine开始响应。 日志说,由于创build卷影副本超时,备份失败。 重新启动dfsrs.exe,我们又回来了。 两台新的Server 2012 R2计算机(完全更新)发生此问题,DFS共享彼此。 禁用Windows备份在机器上似乎阻止它导致问题(即使我们有其他软件,创build多个日常卷影副本)。 两台服务器上都有非微软的软件。 我把进程的转储文件作为卡住的状态,但是我想VSSVC.dmp将是最重要的一个。 我不知道如何使用WinDbg,但这里是我得到的结果: 0:000> !analyze -hang ******************************************************************************* * * * Exception Analysis * * * ******************************************************************************* Use !analyze -v to get detailed debugging information. Probably caused by : dfsrs.exe ( dfsrs!RunTaskCallback+17 ) Followup: MachineOwner ————————————- 0:000> !dml_proc DbgId PID Image file name 0 8c8 C:\Windows\System32\dfsrs.exe […]
我有一个文件夹(包含许多子文件夹)完整的pcap文件,我想获得所有包含符合一定条件的数据包的pcap文件,例如“有源IP 1.1.1.1”。 你知道有什么工具可以做这种search吗? 我需要这两个Windows和Ubuntu
当子域已被CNAMEd时,是否有可能为子子域创buildAlogging? 像这样的东西: domain.com A 198.51.100.1 my.domain.com CNAME othersite.com www.my.domain.com A 198.51.100.1 my.domain.com上的CNAME会导致www.my.domain.com的查找失败,或导致其他不良影响?