centos7下使用yum安装mysql

1. 下载mysql的repo源 $?wget?http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 2. 安装mysql-community-release-el7-5.noarch.rpm包 $?sudo?rpm?-ivh?mysql-community-release-el7-5.noarch.rpm 安装这个包后,会获得两个mysql的yum repo源:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.rep …

linux shell脚本、定时、重启、二级执行、发信

#安装发信 yum -y install sendmail #启动发信服务 service sendmail start #发信 mail -s “[$(date +’%F %H:%M:%S’)] 标题” xxx@xxx.com < /opt/mail.txt #启动crontab 定时执行 service crond start #执行进入crontab vi crontab -e #增加 此为每5分钟执行一次脚本 SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin */5 * * * * …