当前位置:论坛首页 > Linux面板 > 求助

【已回应】BT面板突然打不开了

发表在 Linux面板2018-12-9 15:54 [复制链接] 11 3266

本帖最后由 大炮运维V587 于 2018-12-10 10:40 编辑

昨天还在更新网站数据库,今天宝塔就网页无法访问了,回忆想想唯一的操作就是把数据库权限改成了所有人!求大拿帮忙解决    linux系统  BT6.3
使用道具 举报 只看该作者 回复
发表于 2018-12-9 15:56:05 | 显示全部楼层
端口没错,http://144.34.158.192:8888/,服务也是开的
TIM图片20181209155520.png
使用道具 举报 回复 支持 反对
发表于 2018-12-9 15:59:55 | 显示全部楼层
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" href="/static/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
<title>宝塔Linux面板</title>
<link rel="stylesheet" type="text/css" href="/static/css/site.css?date=20180523">
<link rel="stylesheet" type="text/css" href="/static/css/login.css?date=20180404">

</head>

<body>
        <style type="text/css">
                @media screen and (max-width: 640px) {
                    .scanCode{
                        display: none;
                    }
                    .account{
                        display: block !important;
                    }
                    .bg_img{
                        display: none;
                    }
                }
                .bg_img{
                        width: 60px;
                        height: 60px;
                        background-image: url('/static/img/qrCode.png');
                        background-size: 120px 120px;
                        background-repeat: no-repeat;
                        background-position: 0 0;
                        position: absolute;
                        top: 5px;
                        right: 5px;
                }
                .bg_img:hover{
                        background-position: -60px 0;
                        cursor: pointer;
                        /*transition: all 500ms;*/
                }
                .bg_img.pc{
                        background-position: 0 -60px;
                }
                .bg_img.pc:hover{
                        background-position: -60px -60px;
                }
                .qrCode{
                        text-align: center;
                        padding-top: 20px;
                }
                .scanCode .titles{
                        font-size: 23px;
                        margin-top: 25px;
                        color: #444;
                        text-align: center;
                }
                .list_scan{
                        width: 150px;
                        margin: 0 auto;
                        margin-top: 15px;
                }
                .list_scan>img{
                        width: 40px;
                        height: 40px;
                        float: left;
                        margin-right: 15px;
                }
                .list_scan span{
                        display: inline-block;
                        font-size: 13px;
                        margin-bottom: 5px;
                }
                .list_scan a:hover .weChatSamll{
                        display: block;
                }
                .list_scan .weChatSamll{
                        display: none;
                        width: 150px;
                        height: 150px;
                        position: absolute;
                        border: 1px solid #ececec;
                        border-radius: 5px;
                        bottom: 105px;
                        right: 80px;
                        padding: 20px;
                        background-color: #fff;
                }
                .list_scan .weChatSamll img{
                        width: 100%;
                }
                .list_scan .weChatSamll em{
                        position: absolute;
                        border: 7px solid #ececec;
                        border-color: #ececec transparent transparent transparent;
                        width: 0;
                        height: 0;
                        right: 87px;
                        bottom: -14px;
                        margin-left: -6px;
                }
                .tips{
                        width: 115px;
                        position: absolute;
                        top: 10px;
                        right: 65px;
                        color: rgb(32, 165, 58);
                        background: #dff0d8;
                        padding: 5px 10px;
                        text-align: center;
                        border-radius: 4px;
                }
                .tips em{
                        position: absolute;
                        border: 6px solid #dff0d8;
                        border-color:transparent  transparent transparent #dff0d8;
                        width: 0;
                        height: 0;
                        right: -11px;
                        top: 8px;
                        margin-left: -6px;
                }
                .tips img{
                        height: 16px;
                        width: 16px;
                        vertical-align: middle;
                        margin-top: -1px;
                        margin-right: 4px;
                }
                .main .login .rlogo{
                        margin-top: 15px;
                        margin-bottom: 25px;
                }
        </style>
<div class="main">
        <div class="login">
                <div class="account">
                        <form class="loginform" method="post" action="/login" onsubmit="return false;">
                        <div class="rlogo">宝塔Linux面板</div>
                        <div class="line"><input class="inputtxt" value="" name="username" datatype="*" nullmsg="请填写账号" errormsg="格式不对" placeholder="账号" type="text"><div class="Validform_checktip"></div></div>
                        <div class="line"><input class="inputtxt" name="password" value="" datatype="*" nullmsg="请填写密码" errormsg="请填写密码" placeholder="密码" type="password"><div class="Validform_checktip"></div></div>
                        <div style="color: red;position: relative;top: -14px;" id="errorStr"></div>
                        <div class="line yzm" style="top: -5px;
                            display:none;
                        ">
                                <input type="text" class="inputtxt" name="code" nullmsg="请填写4位验证码" errormsg="验证码不对" datatype="*" placeholder="请填写验证码">
                                <div class="Validform_checktip"></div>
                                <img width="100" height="40" class="passcode" onClick="this.src=this.src.split('?')[0] + '?'+new Date().getTime()" src="/code" style="border: 1px solid #ccc; float: right;" title="点击换一张" >
                        </div>
                        <div class="login_btn"><input id="login-button" value="登录" type="submit"></div>
                        <p class="pwinfo" style="display:none">3次以上登录错误将会出现验证码</p>
                        <a class="resetpw" href="http://www.bt.cn/bbs/thread-1172-1-1.html" target="_blank">忘记密码&gt;&gt;</a>
                        </form>
                </div>
                <div class="scanCode" style="display: none;">
                        <div class="titles"><span>宝塔小程序扫码登录</span></div>
                        <div class="qrCode" id="qrcode"></div>
                        <div class="scanTip">
                                <div class="list_scan">
                                        <img src="/static/img/sCan.png" />
                                        <span>打开
                                                <a href="javascript:;" class="btlink" >宝塔小程序
                                                        <div class="weChatSamll"><img src="https://app.bt.cn/static/app.png"><em></em></div>
                                                </a>
                                        </span>
                                        <span>扫一扫登录</span>
                                </div>
                        </div>
                </div>
                <div class="entrance" style="display: none;">
                        <div class="bg_img"></div>
                        <div class="tips">
                                <span><img src="/static/img/safety_ico.png"><span>扫码登录更安全</span></span>
                                <em></em>
                        </div>
                </div>
        </div>
使用道具 举报 回复 支持 反对
发表于 2018-12-9 16:00:32 | 显示全部楼层
</div>
<script type="text/javascript" src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/language/zh-cn.js"></script>
<script src="/static/language/Simplified_Chinese/lan.js?date=20170920"></script>
<script type="text/javascript" src="/static/layer/layer.js"></script>
<script type="text/javascript" src="/static/js/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="/static/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
        function Wreset(){
                var w = $(window).width();
                var yzmw = $(".login .line").width() - 140;
                if($(".yzm").is(":visible") && w > 640){
                        $(".login").css({"height":"365px","margin-top":"-230px"});
                }
                else{
                        $(".login").removeAttr("style")
                }
                $(".login .yzm .inputtxt").width(yzmw);
        }
        $(function(){
                Wreset();
                var setTime = '';
                $.get('/public?name=app&fun=login_qrcode', function(res){
                        if (res.status){
                                $('#qrcode').qrcode({
                                    render: "canvas", //也可以替换为table
                                    width: 150,
                                    height: 150,
                                    text: res.msg
                                });
                                $('.entrance').show();
                        }
                }).error(function(res,textStatus,errorThrown) {
                        if (res.status == 404){
                                $('.entrance').hide();
                        }
                });
                function controlTime(){
                        $.get('/public?name=app&fun=is_scan_ok',function(res) {
                                if(res.status){
                                        layer.msg('扫码成功,请稍后...',{icon:1});
                                        clearInterval(setTime);
                                        loginAdmin(res.msg);
                                }
                        });
                }
                function loginAdmin(key){
                        $.get('/public?name=app&fun=set_login',{secret_key:key},function(res) {
                                layer.msg(res.msg,{icon:res.status?1:2})
                                if (res.status){
                                        layer.msg('正在安全登录中,请稍后...',{time:0,shade: [0.4,'#fff'],icon:16});
                                        setTimeout(function(){
                                                location.href = '/';
                                        },1000);
                                }
                        });
                }
                $('.bg_img').click(function(event) {
                        if ($(this).hasClass('pc')){
                                $(this).removeClass('pc');
                                $('.scanCode').hide().prev().show();
                                clearInterval(setTime);
                                $('.tips>span>span').html('扫码登录更安全');
                        }else{
                                $(this).addClass('pc');
                                $('.account').hide().next().show();
                                $('.tips>span>span').html('点击账号登录')
                                setTime = window.setInterval(controlTime,2000);
                        }
                });
        })
        window.onresize=function(){
                Wreset();
        }
        </script>
        <script type="text/javascript">
        $(function(){
                $(".loginform").Validform({
                        tiptype:function(msg,o,cssctl){
                                if(!o.obj.is("form")){
                                        var objtip=o.obj.siblings(".Validform_checktip");
                                        cssctl(objtip,o.type);
                                        objtip.text(msg);
                                }
                        }
                });
        });
        
        $('#login-button').click(function(){
                var username = encodeURIComponent($("input[name='username']").val());
                var password = encodeURIComponent($("input[name='password']").val());
                var code = $("input[name='code']").val();
                if(username == '' || password == ''){
                        layer.msg("表单错误,请重新输入!",{icon:2});
                        return;
                }
                                
                var data = 'username='+username+'&password='+password+'&code='+code;
                var loadT = layer.msg("正在登录...",{icon:16,time:0,shade: [0.3, '#000']});
                $.post('/login',data,function(rdata){
                        layer.close(loadT);
                        if(!rdata.status){
                                if(username == 'admin' && rdata.msg.indexOf('用户名') != -1) rdata.msg += ', <br>获取默认用户和密码命令: bt default';
                                $("#errorStr").html(rdata.msg);
                                $("input[name='password']").val('');
                                num = rdata.msg.substring(rdata.msg.indexOf('[')+1,rdata.msg.indexOf(']'))
                                if(num < 5){
                                        $(".yzm").show();
                                        $(".login").css("height","332px");
                                        $("input[name='code']").val('');
                                        $(".passcode").click();
                                }
                                $(".yzm").show();
                                Wreset();
                                layer.msg(rdata.msg,{icon:2,time:5000});
                                return;
                        }
                        
                        layer.msg(rdata.msg,{icon:16,time:0,shade: [0.3, '#000']});
                        window.location.href = '/';     
                });
        });

</script>
</body>
</html>

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14545    0 14545    0     0    98k      0 --:--:-- --:--:-- --:--:--   99k


能ping通
使用道具 举报 回复 支持 反对
发表于 2018-12-9 18:23:53 | 显示全部楼层
没大神在吗?
使用道具 举报 回复 支持 反对
发表于 2018-12-9 20:30:09 | 显示全部楼层
都放假休息了吗
使用道具 举报 回复 支持 反对
发表于 2018-12-10 08:40:10 | 显示全部楼层
求大佬回复
使用道具 举报 回复 支持 反对
发表于 2018-12-10 10:40:03 | 显示全部楼层
您修改数据库跟宝塔面板没有关系,您在服务器上执行下  bt  default 看下,会有显示宝塔的的信息的。
使用道具 举报 回复 支持 反对
发表于 2018-12-10 10:40:40 | 显示全部楼层

论坛上有我们的作息时间
使用道具 举报 回复 支持 反对
发表于 2018-12-10 16:57:37 | 显示全部楼层
怎么将这些端口转到安全组呢?谢谢回复
TIM图片20181210165724.png
使用道具 举报 回复 支持 反对
发表于 2018-12-10 17:10:45 | 显示全部楼层
搬瓦工 shell
使用道具 举报 回复 支持 反对
发表于 2018-12-10 17:26:34 | 显示全部楼层
本帖最后由 小强恢恢 于 2018-12-10 17:28 编辑

这样就算添加到安全组了吧?
TIM图片20181210172630.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表