zoukankan      html  css  js  c++  java
  • 各种小问题整理

    1:恢复数据问题; 
          (1):装虚拟机问题:(请参考下面链接地址) 
                        http://www.diway.com/bbs/viewthread.php?tid=86 
           (2):权限不足原因: 
                       每月月初创建3张关于计费的表格tbl_bill_2012_04,tbl_users_2012_04, tbl_usersInfo_2012_04, 
                       用户上下线是就会插入tbl_bill_2012_04一条数据, 
                       归档程序pkg(程序名字不太清楚是哪个)会读取tbl_bill_2012_04的数据,插入到tbl_bill里去; 
                       @1:用户缓存机制,tbl_userCache 用户拨号认证时对用户进行缓存(保存最近常使用的用户数据)。 
     2:清理日志文件步骤 
             (1):山东肥城日志数据量特大,首先把权限给diway用户(3个授权) 
                           应急方案:可以在参数配置里打开系统免认证配置文件,这样用户不用认证就可以登陆; 
              (2):对于日志数据量过大,不能用delete命令(否则数据库会出现假死现象) 
                             delete,drop, trancate三者的区别自己网上查资料,可参考 
                               http://hi.baidu.com/kingfly666666/blog/item/07891ed1209bbb2f9a50275e.html 
                          @1: select iType, count(*) from tbl_log group by iType; 查出日志表里不同类型日志的个数,假如32类型多 
                          @2: create table tbl_log1 as select * from tbl_log where iType != 32; 把日志表中不是32类型的数据插入到临时表tbl_log1中 
                          @3: truncate table tbl_log; 删除掉日志表里的所有数据 
                          @4: insert into tbl_log select * from tbl_log1; 把临时表里的数据插入到日志表中 
                          @5: drop table tbl_log1; 删除表格tbl_log1; 
    3: (1) linux内存交换原理讲解 vmstat命令 
             (2)iostat 命令讲解,查看上下文io交换是否严重 
    4: top 指令讲解 
           可以参考http://tolywang.itpub.net/post/48/130884 
    5:netstat命令讲解,对网络程序员很重要 
          可以参考 http://sword221.blog.51cto.com/20912/19316 
    6:讲解命令lsof,查看某进程的文件描述符 
              可以参考http://linux.ccidnet.com/art/305/20070829/1194715_1.html 

  • 相关阅读:
    Balanced Binary Tree
    Swap Nodes in Pairs
    Reverse Nodes in k-Group
    Reverse Linked List II
    Remove Nth Node From End of List
    Remove Duplicates from Sorted List II
    Remove Duplicates from Sorted List
    Partition List
    Merge Two Sorted Lists
    【Yii2.0】1.2 Apache检查配置文件语法
  • 原文地址:https://www.cnblogs.com/daojian/p/2568477.html
Copyright © 2011-2022 走看看