03 2021 档案

摘要:#!/bin/bash echo " 1) 安装/管理/卸载" echo " 2) 创建用户" echo " 3) 查看用户" echo " 4) 删除所有用户" echo " 5) 退出" read -p "请选择:" choose case $choose in 1|"") echo " 1) 阅读全文
posted @ 2021-03-05 10:02 Ray_chen 阅读(7) 评论(0) 推荐(0)
摘要:配置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 阅读(280) 评论(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 阅读(423) 评论(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 阅读(1217) 评论(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 阅读(1492) 评论(0) 推荐(0)