小编Has*_*lvi的帖子

跳过 S3 生命周期策略中的某些文件夹

我想对整个存储桶应用删除规则,以删除超过 2 周的所有对象。但我的存储桶中有某些需要跳过的文件夹。那么是否可以通过 S3 生命周期管理跳过某些文件夹并删除超过 2 周的其余内容?

这是我当前的存储桶结构

- example-bucket.com
    - folder 1
        - images
            - 1. jpg
        - videos
            - 1.mp4
            - 2.flv
    - folder 2
        - images
            - 1.jpg
    - folder 3
        - videos
            - 1.mp4
    - folder 4 (Should not be deleted)
        - content
        - folders
    - folder 5  
        - images
            - 1. jpg
        - videos
            - 1.mp4
            - 2.flv
    - folder 6 (Should not be deleted)
        - content
        - folders
Run Code Online (Sandbox Code Playgroud)

我想跳过文件夹 4 和 6,并删除所有其他文件夹中 14 天前的内容。 …

lifecycle amazon-s3 amazon-web-services

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

无法克隆 Gerrit 存储库

我正在尝试连接到我的 VPS 上托管的 gerrit。我正在使用 Windows 版 Git Bash。我在 GitBash 中使用 ssh-keygen 生成了 SSH 密钥,并在 gerrit 服务器上添加了密钥。当我运行时,ssh -p 29418 <username>@<gerrit-server>我会看到下面的欢迎消息

  ****    Welcome to Gerrit Code Review    ****

  Hi Full Name, you have successfully connected over SSH.

  Unfortunately, interactive shells are disabled.
  To clone a hosted Git repository, use:

  git clone ssh://username@<gerrit-server>:29418/REPOSITORY_NAME.git
Run Code Online (Sandbox Code Playgroud)

但是当我通过运行以下命令克隆存储库时

git clone ssh://<username>@<gerrit-server>:29418/project-name.git
Run Code Online (Sandbox Code Playgroud)

我在 Git Bash 终端中看到以下错误

Cloning into 'project-name'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you …
Run Code Online (Sandbox Code Playgroud)

git gerrit git-bash

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

没有安装组文件-CentOS 7-组安装

我正在docker容器内使用CentOS映像,yum install <package-name>但每一次都有效,但是当我尝试运行时

yum groupinstall "Development tools"
Run Code Online (Sandbox Code Playgroud)

它只是引发错误说:

没有安装的组文件。也许运行:yum组标记为convert(请参见man yum)

这是我的Dockerfile

# Starting from base CentOS image
FROM centos:7

RUN yum install -y epel-release
RUN yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
RUN yum groupinstall -y "Development tools"
Run Code Online (Sandbox Code Playgroud)

有人可以提出解决方案吗?我在正常的CentOS中从未遇到过这样的问题,但是第一次在docker中看到了

centos yum docker dockerfile

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