一、脚本说明 1、linux系统版本 EL6, EL7, EL8, and EL9-based platforms (for example, the corresponding versions of Oracle Linux, Red Hat Enterprise Linux, and CentOS),本脚本使用的是CentOS7。 2、MySQL版本 此脚本安装的是MyS
shell脚本设置日志格式 1.封装函数 #!/bin/bash function log() { echo $@ } //测试: log this is a test... log today is `date +%Y-%m-%d` 2.设置时间日志 #!/bin/bash function log() { echo $(date +%Y-%m-%d %H:%M:%S) $@ } log t