shell脚本监控https证书到期时间,并支持钉钉和企业微信通知
#!/bin/bash ################ Version Info ################## # DAte: 2023/2/27 # Author: rocdk890 # Version: 2.0 ...
#!/bin/bash ################ Version Info ################## # DAte: 2023/2/27 # Author: rocdk890 # Version: 2.0 ...
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
function notify(){
curl "https://oapi.dingtalk.com/robot/send?access_tok...
#!/bin/bash
#一键升级centos7内核
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to initialization OS."
exit 1
...
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run t...
#!/bin/bash ################ Version Info ################## # Author: ...
#!/bin/env bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
clear
# 检查是否 root 用户
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this sc...
标签: centos 安装 shell install 一键 docker centos7 docker-compose
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, ...
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run th...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(i...
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to ru...
#!/bin/env bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this sc...
#!/bin/bash today=$(date +%Y%m%d_%H%M%S) file=$today.sql.gz user=rocdk890 passwd=rocdk890 ldir=/data/sqlbak/ rdir=/ ip=47.92.x.x l...
#!/bin/bash
#
function RENMAE_NIC()
{
local _NICNAME=$(ip addr | grep "^2"|awk -F ": " '{print $2}')
if [[ ${_NICNAME} != "eth0" ]];then
echo -e "\e[40;31m The nic name is [\e[40;31m${_NICNAME}\e[4...
#!/bin/bash
# Author rocdk890
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You ...