Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 255

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 325

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 326

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 327

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 330

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 333

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 336

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345
理想社会 – 第 8 页 – 记载我的成功之路

博客

  • 今夜、你又在谁身上卖力。明晚、她又在谁身下喘气

    我承认肉体都是脆弱的

    当夏天的我看着一双双雪 白白的大腿

    爷么意志再坚强

    娘么忽悠也迷茫

    现在果然是女孩子肉隐肉 现的季节。

    今天在网上碰到个妞,问她:“你多大?”

    她相当自豪的回答:“34D!”

    我C!彻底无语鸟。 (更多…)

  • lamp安全加固

    apache方面:
    1.修改banner
    编译源代码,修改默认的banner
    ServerTokens ProductOnly
    ServerSignature Off
    在apache的源码包中找到ap_release.h将
    #define AP_SERVER_BASEPRODUCT “Apache”
    修改为
    #define AP_SERVER_BASEPRODUCT “Microsoft-IIS/6.0”
    os/unix下的os.h文件
    #define PLATFORM “Unix”
    修改为
    #define PLATFORM “Win32“ (更多…)

  • mysql慢查询日志分析

    mysql有一个功能就是可以log下来运行的比较慢的sql语句,默认是没有这个log的,为了开启这个功能,要修改my.cnf或者在mysql启动的时候加入一些参数。
    如果在my.cnf里面修改,需增加如下几行
    long_query_time = 10
    log-slow-queries =

    long_query_time 是指执行超过多久的sql会被log下来,这里是10秒。
    log-slow-queries 设置把日志写在那里,为空的时候,系统会给慢查询日志赋予主机名,并被附加slow.log
    (更多…)

  • 查看Apache并发请求数及其TCP连接状态

    [文章作者:张宴 本文版本:v1.1 最后修改:2007.07.27 转载请注明出处:http://blog.s135.com]

    这两天搭建了一组Apache服务器,每台服务器4G内存,采用的是prefork模式,一开始设置的连接数太少了,需要较长的时间去响应用户的请求,后来修改了一下Apache 2.0.59的配置文件httpd.conf:

    # prefork MPM
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves

    StartServers 10
    MinSpareServers 10
    MaxSpareServers 15
    ServerLimit 2000
    MaxClients 2000
    MaxRequestsPerChild 10000

    (更多…)

  • nginx实现404状态返回200隐藏URL

    server
    {
    listen       80;
    server_name  aaa.bbb.com;
    charset gb2312;
    index index.php index.html;
    root   /data/www/wwwroot/aaa.bbb.com;
    error_page 404 =200 /.404.jpg;
    //注:上传一个404.jpg文件到aaa.bbb.com的根目录, 并改名为.404.jpg

  • Linux命令小技巧

    1.按内存从大到小排列进程:
    ps -eo “%C : %p : %z : %a”|sort -k5 -nr

    2.查看当前有哪些进程;查看进程打开 的文件:
    ps -A ;lsof -p PID

    3.获取当前IP地址(从中学习grep,awk,cut的作用)
    ifconfig eth0 |grep “inet addr:” |awk ‘{print $2}’|cut -c 6-

    4.统计每个单词出现的频率,并排序 (更多…)

  • Linux系统信息查看命令大全

    系统

    # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量

    资源

    # free -m # 查看内存使用量和交换区使用量 # df -h # 查看各分区使用情况 # du -sh <目录名> # 查看指定目录的大小 # grep MemTotal /proc/meminfo # 查看内存总量 # grep MemFree /proc/meminfo # 查看空闲内存量 # uptime # 查看系统运行时间、用户数、负载 # cat /proc/loadavg # 查看系统负载 (更多…)

  • VSFTP+MySQL虚拟用户配置

    VSFTP+MySQL虚拟用户配置

    1、 安装vsftp软件

    下载vsftp(最新版本)软件: wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.1.0.tar.gz

    如果要开始ssl功能的话,安装vsftp之前要先安装openssl-0.9.8g.tar.gz包

    [root@server2 ftp]# tar xzvf openssl-0.9.8g.tar.gz

    [root@server2 ftp]# cd openssl-0.9.8g

    [root@server2 openssl-0.9.8g]# ./config

    [root@server2 openssl-0.9.8g]# make && make install (更多…)

  • awk计算某天是星期几

    unix 下的 cal 没有办法具体计算 哪天是星期几,写了个 awk 计算:

    echo "20110703" | awk '{ i=0; cald[0] = 0;
    mon = substr( $1, 5,2 )
    year = substr( $1, 1,4 )
    d = substr( $1, 7 )
    print $1
    while("cal"" "mon" "year | getline)
    {
    i++;
    if( i>2 )
    {
    for( j =1; j <=  NF;  j++ )
    {
    if( i == 3 )
    week = ( 7 - NF + j -1)
    else
    week = j == 1? 7: j-1
    cald[$j>=10?$j:"0"$j] = week
    }
    }
    }
    print cald[d]
    }'
    
  • MySql性能的检查和调优方法

    我一直是使用mysql这个数据库软件,它工作比较稳定,效率也很高。在遇到严重性能问题时,一般都有这么几种可能:

    1、索引没有建好;
    2、sql写法过于复杂;
    3、配置错误;
    4、机器实在负荷不了;

    1、索引没有建好

    如果看到mysql消耗的cpu很大,可以用mysql的client工具来检查。 (更多…)