问题列表 - 第5137页

awscli v2 需要 sudo 才能运行,否则会出现权限被拒绝错误 ubuntu 20.04.01

我已经按照此处的官方 AWS 说明安装了 awscli V2 :

$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install
Run Code Online (Sandbox Code Playgroud)

安装似乎工作正常,除了我无法在没有 sudo 的情况下使用 aws 命令。

$ sudo aws --version
$ aws-cli/2.0.50 Python/3.7.3 Linux/5.4.0-47-generic exe/x86_64.ubuntu.20
Run Code Online (Sandbox Code Playgroud)

没有须藤...

$ aws --version

Command 'aws' not found, but can be installed with:

sudo snap install aws-cli  # version 1.15.58, or
sudo apt  install awscli   # version 1.18.69-1ubuntu0.20.04.1

See 'snap info aws-cli' for additional versions.
Run Code Online (Sandbox Code Playgroud)

更多细节:

$ which aws # displays nothing
$ sudo which aws
/usr/local/bin/aws …
Run Code Online (Sandbox Code Playgroud)

linux permissions sudo aws-cli

3
推荐指数
1
解决办法
6441
查看次数

nginx 代理给出 404 未找到

proxy_pass在本地计算机上的 Docker(Windows 下)中测试了 nginx 配置。

我的 nginx 配置文件:

server {
    listen  80;
    
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://example.com;
    }
}
Run Code Online (Sandbox Code Playgroud)

Dockerfile:

FROM nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 443
Run Code Online (Sandbox Code Playgroud)

然后构建图像并运行它:

docker run -d -p 8081:80 nginxproxy
Run Code Online (Sandbox Code Playgroud)

而且http://localhost:8081我从来没有到达http://example.com 代理不起作用。我总是收到404 未找到错误

为什么?

更新

docker exec nginxproxy nginx -T
Run Code Online (Sandbox Code Playgroud)

给出:

$ docker exec nginxproxy nginx -T
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful …
Run Code Online (Sandbox Code Playgroud)

nginx proxypass

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

在 Ubuntu 上安装 Jenkins 告诉我“包‘jenkins’没有安装候选”

我需要在 Ubuntu 20.4.1 上安装 Jenkins。

我已经完成了以下工作:

  • apt-get -y install openjdk-8-jdk (这是 Java 14.0.1)
  • wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | apt-key add - (回复“OK”)
  • sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' (文件存在并在其中包含这一行)
  • sudo apt update, 回复:
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Ign:5 https://pkg.jenkins.io/debian-stable binary/ InRelease
Get:6 https://pkg.jenkins.io/debian-stable binary/ Release [2,044 B]
Get:7 https://pkg.jenkins.io/debian-stable binary/ Release.gpg [833 B]
Ign:7 https://pkg.jenkins.io/debian-stable binary/ Release.gpg
Reading package lists... Done
W: GPG …
Run Code Online (Sandbox Code Playgroud)

jenkins ubuntu-20.04

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

带有用于 Veeam 备份的 S3 存储的 AWS EC2 Windows 服务器

我想创建一个远程存储库来备份我的本地基础设施。我正在使用 Veeam v10。

我想我需要一台安装了 Veeam 组件的远程机器,然后我想知道我是否可以使用 Veeam 和 S3 作为存储构建一个 EC2 Windows 机器。

目标是仅将增量备份从我的站点传输到 EC2(我无法使用我的带宽传输完整备份!)并让机器在反向增量备份中计算和合并备份。这是一个好的配置吗?是否可以将 EC2 与 S3 存储一起用于 veeam 存储库?

backup cloud amazon-s3 amazon-ec2 veeam

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

如何转发来自我的 Web 服务器的请求?

这是一个关于反向代理、它们如何工作以及如何配置的规范问题

如何处理来自不同端口上的服务或来自具有相同网络服务器的不同服务器的请求并通过 URL 区分它?

nginx reverse-proxy apache2

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

如何将 PubSub 订阅重新附加到主题

在 Google Cloud PubSub 中,您通常将订阅附加到主题。我看到了一个从主题“分离”订阅的新选项。

我的应用程序出现问题,所以我将订阅与主题分离而不是删除它,我认为这是“让我的应用程序休息一下”的简单方法。问题是,我似乎无法再将订阅重新附加到该主题。

根据此文档,我可以推断无法获得重新附加到主题的订阅:https : //cloud.google.com/pubsub/docs/admin#detaching_subscriptions

我的问题是:

  1. 有没有办法在订阅分离后重新激活订阅(我假设没有)。
  2. 什么是“暂停”订阅以便为我的系统提供一些喘息空间直到我恢复它的推荐方法?

谢谢你的帮助 :)

google-cloud-platform

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

roundcube:尝试发送邮件时“身份验证失败:STARTTLS 失败”

我正在尝试在运行亚马逊的 debian 盒子上获取 roundcube/dovecot/postfix。我可以登录并接收电子邮件,但无法发送。我在 roundcube 中遇到错误,smtp authentication error (220) Authentication failed.

\n

Roundcube错误日志:

\n
[24-Sep-2020 08:47:24 +0000]: <a83d4mll> PHP Error: STARTTLS failed (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n[24-Sep-2020 08:47:24 +0000]: <a83d4mll> PHP Error: Invalid response code received from server (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n[24-Sep-2020 08:47:24 +0000]: <a83d4mll> SMTP Error: Authentication failure: STARTTLS failed (Code: ) in /opt/bitnami/apps/roundcube/htdocs/program/lib/Roundcube/rcube.php on line 1702 (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n
Run Code Online (Sandbox Code Playgroud)\n

roundcube SMTP 日志:

\n
[24-Sep-2020 08:52:08 +0000]: <a83d4mll> Connecting to tls://webmail.theomnihealthgroup.com:587...\n[24-Sep-2020 08:52:08 +0000]: <a83d4mll> Recv: 220 mail.theomnihealthgroup.com ESMTP Postfix (Debian/GNU)\n[24-Sep-2020 08:52:08 +0000]: <a83d4mll> …
Run Code Online (Sandbox Code Playgroud)

postfix dovecot roundcube

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

为什么libvirt 不与fedora 32 上的iptables 合作

我正在尝试在 Fedora 32 上使用几乎默认安装的 libvirt/kvm。

安装 libvirt 后,我​​正在尝试启动default网络:virsh net-start default.

但是由于某种原因,有许多链丢失了,所以它失败了。例如,libvirt 尝试加载的新规则开始于:

-A IN_libvirt_allow -p udp --dport 67 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
Run Code Online (Sandbox Code Playgroud)

但是没有IN_libvirt_allow(或IN_libvirt_post, FORWARD_OUT_ZONES, ...)。

我确实有一些与 libvirt 相关的链,例如LIBVIRT_INP/ LIBVIRT_OUT,但我不确定哪些属于 libvirt,哪些属于 firewalld 以及它们应该如何协同工作。

我缺少什么设置?

networking linux fedora libvirt

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

USB 确保数据安全

我习惯于认为 USB 传输对数据是安全的,也就是说 USB 不会增加数据存储的不可靠性。

但是,我读到 USB 并不总是关于其可靠性的数据传输的好选择。例如,在 RAID 中使用 U 盘似乎不是一个好主意。

我想知道数据丢失的风险是特定于 RAID 的工作方式,还是每个 USB 传输固有的风险。

raid usb corruption transfer

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

Ubuntu 服务器仅使用部分可用磁盘空间

所以我的服务器中有一个 240 GB 的 SSD,但我注意到当我登录时它总是显示我
\nUsage of /: 56.6% of 108.79GB

\n

lsblk所以当我使用以下打印输出时,我开始更深入地研究:

\n
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\nloop0                       7:0    0  52.4M  1 loop /snap/certbot/579\nloop1                       7:1    0  96.6M  1 loop /snap/core/9804\nloop2                       7:2    0  97.1M  1 loop /snap/core/9993\nloop3                       7:3    0  29.9M  1 loop /snap/snapd/8790\nloop4                       7:4    0  30.3M  1 loop /snap/snapd/9279\nloop5                       7:5    0    61M  1 loop /snap/core20/634\nloop6                       7:6    0  55.3M  1 loop /snap/core18/1885\nsda                         8:0    0 223.6G  0 disk\n\xe2\x94\x9c\xe2\x94\x80sda1                      8:1    0   512M  0 part /boot/efi\n\xe2\x94\x9c\xe2\x94\x80sda2                      8:2    0     1G  0 …
Run Code Online (Sandbox Code Playgroud)

ubuntu partition

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