• crontab 定时命令
    1. #1. 确认crontab是否安装:
    2. #  执行 crontab 命令如果报 command not found,就表明没有安装
    3. crontab
    4. #2. 安装 crontab
    5. #  执行
    6. yum install -y vixie-cron
    7. #3. 确认是否安装成功:
    8. #  执行
    9. crontab -l
    • mailx 邮件
    1. yum -y install mailx
    2. #编辑配置信息
    3. vi /etc/mail.rc
    4. #添加如下信息
    5. set from=bidw@izkml.com smtp=smtp.exmail.qq.com #这里使用qq企业邮箱
    6. set smtp-auth-user=bidw@izkml.com smtp-auth-password=Sunwanwan123
    7. set smtp-auth=login
    8. #测试邮件发送
    9. echo "如果看到这封邮件就说明备份已完成" |mail -s "【数据库备份-平台名称】" bidw@izkml.com
    10. #在设置外部邮箱时候需要注意,使用企业邮箱的密码就是你的登录密码,使用个人的qq邮箱时候需要设置授权码,而不是登录密码.
    11. set from=ipenx@qq.com
    12. set smtp=smtp.qq.com
    13. set smtp-auth-user=ipenx@qq.com
    14. set smtp-auth-password=jdxeqwaxbxiosoqp ##<--这里填的是邮箱授权码
    15. set smtp-auth=login
    • sshpass
    1. curl -O -L http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz && tar xvzf sshpass-1.05.tar.gz && cd sshpass-1.05 && ./configure && make && sudo make install
    • rz sz
    yum -y install lrzsz