#!/bin/bash
#用途：随机密码生成脚本
#注意：请妥善保管好密码文件
#作者：叶海淋
#联系方式：13149093270
new=`openssl rand -base64 15`
repl=`openssl rand -base64 15`
aq=`openssl rand -base64 15`
rsyncd_password=`openssl rand -base64 15`
redis=`openssl rand -base64 15`
echo "-------数据库账号登录密码--------
数据库root登录密码:$new
数据库repl登录密码:$repl
数据库aqzq登录密码:$aq
--------rsyncd密码--------
rsyncd_password登录密码:$rsyncd_password
---------redis密码--------
redis登录密码:$redis
---------安管密码---------
账号：admin
密码：chinagdn123!@#">/root/cipher.txt
echo -e "\033[41;37m 密码文件在/root/cipher.txt,请记得删除！！！\033[0m\n"

    repl: penssl rand -base64 15
    aq: openssl rand -base64 15
    rsyncd_password: openssl rand -base64 15
    redis: openssl rand -base64 15