问题列表 - 第4931页

如何在 Windows Server 1803(半年度版本)上安装 Internet Explorer?

默认情况下,Windows Server 1803 的工具集非常有限。限制之一是没有预装 Internet Explorer。有没有办法以某种方式在该系统上安装它?我尝试下载离线安装程序,但我只找到了以前版本的 Windows 的安装程序。

windows internet-explorer

5
推荐指数
1
解决办法
921
查看次数

Postfix - Rspamd + amavis

目前我已经安装了带有 Amavis、Spamassassin、Clamav 和所有附加功能的 Postfix 并正在运行。

我想将 RSpamd 添加到配置中,我不想替换 Amavis,只需让它们并排运行,在主题中标记垃圾邮件并添加标头以查看哪个在捕获垃圾邮件方面更好。

问题是 Amavis 添加为带有返回路径的 smtpd_proxy_filter。RSpamd 作为 milter 添加。现在单独运行 RSpamd 就可以了,但是当我添加 Amavis 时,由于邮件被重定向到代理,因此添加了 Received 标头,因此 RSpamd 认为所有邮件都来自本地主机,跳过一些检查并且不添加标头。

我正在考虑一些解决方案,但不知道它们是否以及如何实施:

  1. -o smtpd_milters在代理之前运行 milter,通过添加到 master.cf不起作用
  2. 告诉 amavis 不要添加 Received 标头
  3. 告诉 RSpamd 跳过 localhost 收到的标头并使用后面的标头

其中有一个是可以实现的吗?

配置文件在这里:

我的主人.cf

我的 main.cf 有这些:

smtpd_milters = inet:127.0.0.1:12345
                inet:localhost:11332
non_smtpd_milters = inet:127.0.0.1:12345
milter_default_action = accept
milter_content_timeout = 30s
Run Code Online (Sandbox Code Playgroud)

DKIM 端口 12345,RSpamd 端口 11332

谢谢

email-server postfix amavis rspamd

2
推荐指数
1
解决办法
2670
查看次数

Grepping 'nginx -t' 结果

奇怪的是,这对我不起作用。

nginx -t | grep -c 'successful' | awk '{if ($0==0) print "not found"; else if ($0>0) print "found"}'
Run Code Online (Sandbox Code Playgroud)

即使结果如下,它也会返回一个not found

nginx: [warn] conflicting server name "xxx.co.za" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "xxx.co.za" on 0.0.0.0:443, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
not found
Run Code Online (Sandbox Code Playgroud)

即使是一个简单的 grep 也不会做预期的事情..

(nginx -t | grep -q 'successful') && echo "Yes" || echo "Nope"
Run Code Online (Sandbox Code Playgroud)

知道如何检查nginx -t命令是否成功吗?

nginx bash

2
推荐指数
1
解决办法
772
查看次数

在 LVM 中使用单个磁盘分区时的 IOPS 行为是什么?

我有一个 ubuntu 14.04.1 LTS 服务器,它具有带有逻辑卷的 LVM(由硬件 RAID5 支持)和一个名为“dbstore-lv”和“dbstore-vg”的卷组,它们具有从同一个 sdb 磁盘创建的 sdb1 sdb2 sdb3。该系统为42核和约128G内存。虽然我没有看到htop来自uptime~43+的负载平均输出中的CPU 峰值以及 vmstat 显示恒定的 iowait 为 20-40,其中context switches不断在 80,000-150000 左右,在高峰时段甚至更多,但 CPU 空闲时间也徘徊在附近70-85。下面是输出iostat -xp 1%util恒定为100%

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           8.91    0.00    1.31   10.98    0.00   78.80

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00   264.00    0.00   58.00     0.00  1428.00    49.24     0.02    0.28    0.00    0.28   0.21   1.20
sda1              0.00     0.00 …
Run Code Online (Sandbox Code Playgroud)

linux optimization performance performance-tuning iops

8
推荐指数
1
解决办法
343
查看次数

docker-compose 没有这样的服务:myapp

我已经运行了一个图像:'docker-compose up'

使用 'docker ps' 我得到:

CREATED             STATUS              PORTS                    NAMES
55e1fd18acf1        simpleappnodedocker_web   "node app.js"            6 seconds ago       Up 6 seconds        0.0.0.0:9000->3000/tcp   myapp
9879ff20e241        postgres:9.6              "docker-entrypoint..."   36 hours ago        Up 36 hours         0.0.0.0:5432->5432/tcp   nd-db
Run Code Online (Sandbox Code Playgroud)

我尝试运行 bash 以进入 shell,但出现错误,如何解决这个问题,我想我做错了什么。

$docker-compose run myapp /bin/bash   
ERROR: No such service: myapp
Run Code Online (Sandbox Code Playgroud)

docker-compose.yml:

version: '2'
services:
  web:
    container_name: myapp
    build: .
    command: node app.js
    ports:
      - "9000:3000"
Run Code Online (Sandbox Code Playgroud)

docker

17
推荐指数
1
解决办法
6万
查看次数

HP Smart Array P410:将 RAID10 转换为 RAID1 或从 RAID10 中移除磁盘

我有一个带有两个 146GB 磁盘的 RAID10 阵列的服务器。我正在尝试用两个 2TB 磁盘的 RAID1 替换一个 146GB 磁盘的 RAID10 阵列。由于没有空闲端口,我从要更换的阵列中取出了两个磁盘。现在我的突袭状态如下所示:

# /opt/hp/hpssacli/bin/hpssacli ctrl all show config

Smart Array P400 in Slot 1
   array A (SAS, Unused Space: 0  MB)
      logicaldrive 1 (273.4 GB, RAID 1+0, Interim Recovery Mode)

      physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 146 GB, Failed)
      physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 146 GB, Failed)
      physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 146 GB, OK)
      physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 146 GB, …
Run Code Online (Sandbox Code Playgroud)

raid hp-smart-array raid1 raid10

9
推荐指数
1
解决办法
1145
查看次数

如何处理 AWS S3 网站重定向规则中的尾部斜杠?

我正在尝试在我的 s3 托管网站中构建一些登陆页面。

例如:http://www.example.com/products

那应该重定向到http://www.example.com/products.html

为了实现这一目标,我了解了重定向规则并创建了这个工作规则:

网站.json

{
    "Bucket": "www.example.com",
    "WebsiteConfiguration": {
        "ErrorDocument": {
            "Key": "404.html"
        },
        "IndexDocument": {
            "Suffix": "index.html"
        },
        "RoutingRules": [
            {
                "Condition": {
                    "KeyPrefixEquals": "products/"
                },
                "Redirect": {
                    "ReplaceKeyWith": "products.html"
                }
            }
        ]
    }
}
Run Code Online (Sandbox Code Playgroud)

我使用命令行上传了这个 json 文件:aws s3api put-bucket-website --cli-input-json file://website.json

问题:

尾部斜杠。 为此,用户必须导航到http://www.example.com/products/ 我希望用户能够导航到http://www.example.com/products <-- 没有尾部斜杠。

我试图将其从规则中删除。它搞砸了。这似乎是不可能的。是吗?

相关文章:

amazon-s3 amazon-web-services

5
推荐指数
0
解决办法
4968
查看次数

dircolors:没有 SHELL 环境变量,也没有给出 shell 类型选项

在交互式登录时,我得到:

dircolors: no SHELL environment variable, and no shell type option given
Run Code Online (Sandbox Code Playgroud)

但我确实设置了 SHELL 变量:

% set | grep SHELL
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
Run Code Online (Sandbox Code Playgroud)

~/.bash_profile我这样的来源.dircolors

eval "`dircolors ~/.dircolors`"
Run Code Online (Sandbox Code Playgroud)

我已经在其他 Linux 主机上这样做了,这从来都不是问题,但是当我这样做时vzctl enter $CTID(带有 Debian wheezy 的 OpenVZ 容器),这总是出现。

为什么要这样做?我该如何解决?

debian virtual-machines openvz debian-wheezy

5
推荐指数
1
解决办法
1327
查看次数

Inotify 不适用于 EFS(远程文件系统)

我尝试使用 inotify 通知来检查文件系统事件,但它不起作用。没有文件系统通风通知程序工作。

是否有适用于远程文件系统(如 EFS、NFS、GFS 等)的 inotify 实用程序?

inotify amazon-efs

4
推荐指数
1
解决办法
1930
查看次数

如何验证我拥有的私钥与 AWS 密钥对匹配?

我的 AWS 实例说它被配置为使用我账户上唯一的密钥对,它的指纹格式为:

3c:64:a7:85:53:3f:81:1c:24:5a:d2:6a:5b:76:47:da:f3:14:63:88

我的电脑上有一个 key.pem 文件。如何验证此 pem 文件是否与 AWS 提供的上述密钥对指纹匹配?

我尝试了以下操作:ssh-keygen -lf key.pem

以这种格式输出一些东西:2048 SHA256:TpL6i8y1uCd26IUVVc5UHFluP7GLKD/T3O1+K4Pc0qg no comment (RSA)

编码方案不同,我无法判断它们是否等效。

我正在尝试调试为什么我无法使用此密钥 ssh 进入我的实例,这是我尝试的第一步。

ssh-keygen amazon-web-services

5
推荐指数
1
解决办法
4131
查看次数