摘要: 配置yum源 cat << 'EOF' > /etc/yum.repos.d/mongodb-org.repo [mongodb-org-4.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$release 阅读全文
posted @ 2021-03-01 19:03 Ray_chen 阅读(263) 评论(0) 推荐(0) 编辑
摘要: ipset yum -y install ipset 创建一个set hash:net 指定可以向集合添加ip段或ip地址, ipset create blacklist hash:net hashsize 4096 maxelem 100000 timeout 300 hash:ip 指定可以向集 阅读全文
posted @ 2021-03-01 19:00 Ray_chen 阅读(409) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # # # System Supported: CentOS 6+ / Debian 7+ 阅读全文
posted @ 2021-03-01 18:50 Ray_chen 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # # Author: yeho <lj2007331 AT gmail.com> # Blog: https://blog.linuxeye.com # # Installs a PPTP VPN-only system for CentOS # Check if user 阅读全文
posted @ 2021-03-01 18:13 Ray_chen 阅读(1397) 评论(0) 推荐(0) 编辑