这种时间变动比较大,用cron不适合,且cron精度也不够
run_at.sh
#!/bin/bash
# 检查是否输入了时间戳参数
if [ "$#" -ne 1 ]; then
echo "Usage: $0 yyyymmddhhmmss"
exit 1
fi
timestamp=$1
# 解析目标时间并获取其Unix时间戳(秒)和纳秒部分
target_seconds=$(date -d "${timestamp:0:8} ${timestamp[......]
这种时间变动比较大,用cron不适合,且cron精度也不够
run_at.sh
#!/bin/bash
# 检查是否输入了时间戳参数
if [ "$#" -ne 1 ]; then
echo "Usage: $0 yyyymmddhhmmss"
exit 1
fi
timestamp=$1
# 解析目标时间并获取其Unix时间戳(秒)和纳秒部分
target_seconds=$(date -d "${timestamp:0:8} ${timestamp[......]
错误类似如下:
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.xxxxx/chrome-sandbox is owned by root and has mode 4755.
解决方案:
sudo sysctl -w[......]
1 卸载已有包
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
2 添加源
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sud[......]
默认配置写出来有一些问题,以下是推荐配置:
[oss]
type = s3
provider = Alibaba
access_key_id = xxx
secret_access_key = xxx
endpoint = oss-cn-beijing-internal.aliyuncs.com
acl = private
storage_class = STANDARD
一个是增加internal,建议ecs内部开启,另外是storage_class默认是STANDAR[......]
https://www.coderjia.cn/archives/dba3f94c-a021-468a-8ac6-e840f85867ea[......]