年度归档: 2023 年

15 篇文章

thumbnail
Docker 默认拒绝放行iptables
vim /etc/default/docker #修改文件,此处设置等同于在创建容器时手动指定iptables=false参数 DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 --iptables=false" vim /etc/docker/daemon.json { "iptabl…
thumbnail
Docker 启用IPV6
/etc/docker/daemon.json { "ipv6": true, "fixed-cidr-v6": "fd00::/80", "experimental": true, "ip6tables": true }
thumbnail
Docker Compose 一键安装
Docker Compose 是 Docker 公司提供的一个工具,用于定义和管理多个 Docker 容器的配置。它允许您通过一个简单的 YAML 文件来定义应用程序的服务、网络、数据卷等配置,然后可以使用一个命令来启动、停止、重启、销毁整个应用程序的容器组。 ...
thumbnail
Node_exporter v1.6.1 一键命令
Node Exporter 是一个用于 Prometheus 监控系统的开源软件,它可以在被监控的主机上运行,收集系统的各种指标数据,并将这些数据暴露给 Prometheus 进行收集和存储。Node Exporter 是 Prometheus 生态系统中重要的一个组件,它能够提供丰富的主机级别的监控数据,如 CPU 使用率、内存使用率、磁盘空间、…
thumbnail
Linux下Curl发送请求常用参数
curl Post数据 curl -4 --connect-timeout 10 --retry 2 --retry-delay 3 -X POST https://you.domain.com/test.php \ -H "Content-Type: application/json" \ -H "User-Agen…
thumbnail
Linux 清理硬盘空间
journalctl --vacuum-time=1w journalctl --vacuum-size=500M 清理Docker缓存 - 使用命令docker system prune可以一次性清理系统中的所有无用镜像、容器、卷和网络。 - 使用命令docker system prune -a可以清理系统中的所有无用镜像、容器、卷、网络以及未被…
thumbnail
IPV4网络掩码对照表
IPV4网络掩码对照表 序号 子网掩码 CIDR 总IP数 可用IP数 C网子网数 1 255.255.255.255 /32 1 1 1/256 2 255.255.255.254 /31 2 0 1/128 3 255.255.255.252 /30 4 2 1/64 4 255.255.255.248 /29 8 6 1/32 5 255.2…
thumbnail
Docker 开启内网IPV6、公网IPV6
sysctl设置IPV6的选项 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.default.forwarding = 1 net.ipv6.conf.eth0.accept_ra = 2 一键写入sysctl并且生效 cat >> /etc/sysctl.conf << EO…
thumbnail
Docker-compose 搭建邮件服务器 Poste.io
mx1.example.com example.com SMTP - 端口 25、465 (TLS)、587 POP3 - 端口 110、995 (TLS) IMAP - 端口 143、993 (TLS) example.com部分替换为自己的域名,提及端口请全部放行 因为使用的不是80和443端口,因为本机已经有了nginx服务了,所以程序内部自…