IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    SeveralNines,ClusterControl:忘记密码的处理方法

    Adamhuan发表于 2016-07-16 07:20:17
    love 0

    有时候你可能忘记了你自己的ClusterControl的登录口令:
    cc_password_fogot_1

    这时候,你需要重设你的口令。

    按照官方提供的方法:
    To reset your password. Please run the script password-reset.php located in
    /var/www/html/clustercontrol/app/tools/

    $ cd /var/www/html/clustercontrol/app/tools/
    $ php -e password-reset.php

    在我的环境中的细节是这样的:

    [root@mysql4 ~]# cd /var/www/html/clustercontrol/app/tools
    [root@mysql4 tools]# ls -ltr
    total 60
    -rwxrwx--- 1 apache apache  2580 Sep  5  2015 install-adminer.sh
    -rwxrwx--- 1 apache apache  1028 Nov 18  2015 password-reset.php
    -rwxrwx--- 1 apache apache 42391 Jun 26 22:49 setup-cc.sh
    drwxrwx--- 2 apache apache  4096 Jul 15 21:32 apache2
    drwxrwx--- 2 apache apache  4096 Jul 15 21:32 deploy
    [root@mysql4 tools]# 
    [root@mysql4 tools]# php -e password-reset.php 
    password-reset.php email address>
    [root@mysql4 tools]# 
    [root@mysql4 tools]# php -e password-reset.php xxxxxx@xxx.com
    ** Password has been reset for xxxxxx@xxx.com to 'admin' **
    [root@mysql4 tools]#

    这样,账户“xxxxxx@xxx.com”的口令就被重设为:admin。

    ————————————
    Done。



沪ICP备19023445号-2号
友情链接