Articles of configuration

有没有办法来检查我的虚拟内存分页是否是“系统pipe理”

对于我们的其中一个应用程序,我们需要在Windows机器上configuration虚拟内存来pipe理系统。 这可以在系统属性 – >性能(设置…) – >性能选项高级选项卡 – >虚拟内存更改… – >检查硬盘是否切换到“系统pipe理大小”手动完成。 这很好,但是我必须为大量的机器执行此操作,并希望在检查其他configuration时收集此信息的批处理命令或PowerShell脚本。 我发现与本页面最接近的是 wmic computersystem get AutomaticManagedPagefile 但是,这只会检查顶部的checkbox是否configuration,而不是特定的硬盘驱动器。 有没有人有任何build议如何以更自动化的方式做到这一点?

CoreOS舰队VS. Ansible

也许这是一个愚蠢的问题,但我一直在Ansible,我刚刚遇到了CoreOS舰队。 我可能是错的,但Fleet似乎在多个服务器上提供/运行命令的另一种工具几乎完全相同,并且是CoreOS本地的。 CoreOS有它的云configuration用户数据文件和Ansible有剧本。 Ansible显然不同,它是通过SSH执行的工具,但似乎有很多重叠。 我对他们两人都是新手,并且觉得舰队提供的Ansible比我想象的要大。 他们有不同的目的,如果有的话,最大的区别是什么?

Windows只使用多个公布的IPv6前缀中的一个

我的本地networking的路由器通告两个IPv6前缀(一个本地,fdXX ::前缀,一个从我的ISP委托)。 我已经证实,他们都通过Wireshark检查路由器广告进行广告宣传,因此: 但是,networking上的Windows主机似乎只能使用其中一个前缀(并且一致地使用fdXX :: one): Ethernet adapter Ethernet: Connection-specific DNS Suffix . : arkane-systems.lan IPv6 Address. . . . . . . . . . . : fdc9:b01a:9d26:0:fd4c:9cca:2051:c663 Link-local IPv6 Address . . . . . : fe80::21cd:60d4:2e62:cc29%14 IPv4 Address. . . . . . . . . . . : 172.16.1.2 Subnet Mask […]

Logstash过滤条件没有得到应用

我的Windows服务器上运行Logstash(JSON格式)的nxlog。 我想克隆安全事件到SIEM,所以我添加了逻辑来捕获特定的Windows事件ID: 即使“Windows事件日志”标签被应用(通过“add_tag”),“Windows安全事件”也不会被添加,即使当我查看日志并find类似于4624的EventID时也是如此。 以下是完整的纯文本logstash.conf: input {tcp{port=>1514}} filter { if "im_msvistalog" in [message] { json {source => "message"} mutate {add_tag => "Windows Event Log"} if [EventID]=="4688" or [EventID]=="592" or [EventID]=="4624" or [EventID]=="528" or [EventID]=="540" or [EventID]=="5140" or [EventID]=="560" or [EventID]==5156 or [EventID]=="7045" or [EventID]=="601" or [EventID]=="4663" or [EventID]=="567" { mutate {add_tag => "Windows Security Event"} } […]

使用-F时,ssh无法从configuration中parsing第二个主机

为了访问特定的机器,我需要通过代理,然后通过一个jumphost,在我在所需的位置之前。 为此,我使用这样的configuration文件: ### jumphost Host jmp HostName xxx.xxx.xxx.xxx:port User user ProxyCommand corkscrew proxy.name.com port %h %p ### box Host box HostName xxx.xxx.xxx.xxx User user ProxyCommand ssh mgmtbox netcat -w 120 %h %p 只要configuration文件在其设置的位置,这工作得很好。 但是,如果我想用-F标志(“ ssh -F configfile box ”)指定这个configuration文件,我得到以下错误: ssh: Could not resolve hostname jmp: Name or service not known 该问题仅在第二台主机上启动。 如果我使用“ ssh -F configfile […]

Apache 2.2redirect所有,但一个目录

我在我的httpd.conf文件中有这个: <VirtualHost IP.AD.DR.ESS:80> ServerName example.com Redirect Permanent / https://example.net/ </VirtualHost> 这成功地将以前在http://example.com上的所有内容redirect到https://example.net新对应位置。 但是,我发现一个目录example.com/specialdir/必须保留在旧服务器上,因为它需要访问的数据不在新服务器上。 (需要几个月才能完成涉及其他几十个站点的迁移。) 有没有一个合理的方法来解决这个问题在httpd.conf或者我将不得不使用一堆.htaccess文件? 我怀疑我能用<Location>容器做些什么,但是我不知道要find这些信息的正确问题。

LVM:逻辑卷映射的大小比文件系统使用的磁盘空间大得多

在Proxmox中,我们使用LVM为我们的虚拟机(LVM精简configuration)创build光盘(逻辑卷)。 最近我们发现,即使所有的虚拟机光盘几乎都是空的,我们的卷组也快满了。 问题在于,一些LVM分区显示了大得多的映射大小,即df所报告的存储在VM磁盘上的实际大小的数据。 例如,我们有100 GB逻辑卷的虚拟机。 虚拟机内的光盘使用情况仅显示3.2 GB的空间: #> df Filesystem Size Used Avail Use% Mounted on /dev/mapper/pve-vm–3011–disk–1 99G 3.2G 91G 4% / … 但主机上的逻辑卷显示它使用39.8 GB: #> lvdisplay — Logical volume — LV Path /dev/pve/vm-3011-disk-1 LV Name vm-3011-disk-1 VG Name pve LV UUID oleKd5-O2o4-c4CE-5vzn-bXRC-TXwF-lzApmW LV Write Access read/write LV Creation host, time carol, 2016-08-16 09:03:54 +0200 […]

Apache在dynamic主机上重写为nginx

我做了一些阅读,我找不到我的问题的答案,因为它有一个关键组成部分是不同于大多数情况下。 它和其他故事一样:我需要将.htaccess迁移到nginxconfiguration中,如果不是这样,nginx服务器设置为使用dynamic主机: server { listen 80; server_name ~^(www\.)?(?<sname>.+?).server.company.com$; root /var/www/$sname/current/public; index index.html index.htm index.php; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~* \.(gif|png|bmp|ico|flv|swf|exe|html|htm|txt|css|js) { add_header Cache-Control public; add_header Cache-Control must-revalidate; expires 7d; } location ~ \.php$ { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; include fastcgi_params; fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; } location ~ /\.ht […]

为什么nginx服务http2,还是它?

一直试图让我的nginx服务器上的http2,我对一些事情感到困惑。 我环顾了这里和networking周围,但是我没有find我正在寻找的东西,或者是在它还没有被“释放”时使用过时的信息来回答。 我有工作nginx服务器,使用虚拟主机。 它有http_v2模块 me@server:/etc/nginx$ sudo nginx -V | grep http2 nginx version: nginx/1.10.3 built with OpenSSL 1.1.0f 25 May 2017 TLS SNI support enabled configure arguments: –with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-2tpxfc/nginx-1.10.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' –with-ld-opt='-Wl,-z,relro -Wl,-z,now' –prefix=/usr/share/nginx –conf-path=/etc/nginx/nginx.conf –http-log-path=/var/log/nginx/access.log –error-log-path=/var/log/nginx/error.log –lock-path=/var/lock/nginx.lock –pid-path=/run/nginx.pid –modules-path=/usr/lib/nginx/modules –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –with-debug –with-pcre-jit –with-ipv6 –with-http_ssl_module –with-http_stub_status_module –with-http_realip_module […]

MongoDB 2.6在configuration中更改nsSize?

我正在运行Mongo 2.6.12,并build立了相当多的集合。 我非常接近命名空间上限,所以我想将“nsSize”参数从默认16M更改为1GB。 我在configuration(/etc/mongod.conf)中尝试了一些东西,但似乎没有改变默认值。 这是我目前的configuration: logpath=/log/mongod.log fork=true dbpath=/data nssize=1000 我也尝试过'nsSize ='以及'存储:nsSize ='但无济于事,因为服务不会以任何语法开始。 当我拉起我的graphics用户界面(MongoChef)时,我看到以下不变的值。 任何build议,将不胜感激,因为我担心我会很快达到上限。