当前位置: 首页 > u2发布的所有日志
  • eventfd() failed when start nginx

    yum install nginxservice nginx start error.log:2011/01/07 05:39:49 [emerg] 7180#0: eventfd() failed (38: Function not implemented)2011/01/07 05:39:49 [alert] 7179#0: worker process 7180 exited with fatal code 2 and can not be respawn2011/01/07 05:43:01 [emerg] 7296#0: eventfd() failed (38: Funct ...

    阅读全文
    作者:u2 | 分类:nginx, OpenSource | 标签:
    eventfd() failed when start nginx已关闭评论
  • postgresql learning notes

    1.Host Access file:/var/lib/pgsql/data/pg_hba.confhost    all         all         172.16.1.0/24        md5 2.logon postgresqlsu – postgres$psqlor $psql -U postg ...

    阅读全文
    作者:u2 | 分类:database | 标签:
    postgresql learning notes已关闭评论
  • DJANGO FORMS:This field is required

    when meet This field is required at django forms, we can add “required=False” at Fields. from django import forms class ContactForm(forms.Form):    subject = forms.CharField(max_length=100)    message = forms.CharField()    sender = forms. ...

    阅读全文
    作者:u2 | 分类:python | 标签:
    DJANGO FORMS:This field is required已关闭评论
  • nginx dynamic url rewrite — II

    nginx rewirte II, nginx if has no AND OR and nest,so we only can use regx to do it: ———————————- BEGIN—————————————– location /music/search.html ...

    阅读全文
    作者:u2 | 分类:nginx, OpenSource | 标签:
    nginx dynamic url rewrite — II已关闭评论
  • ibevent-1.1a.so.1 depend memcached CentOS5.5

    update to centos5.5, memcached has issue: resent failed: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install memcached’ returned 1: memcached-1.2.6-1.el5.rf.x86_64 from EPEL-base has depsolving problems   –> Missing Dependency: libevent-1.1a.so.1()(64bit) is needed by ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    ibevent-1.1a.so.1 depend memcached CentOS5.5已关闭评论
  • change linux swap size

    cat /proc/swaps
    free -m
    dd if=/dev/zero of=swapfile bs=1M count=8192
    swapoff -a
    mkswap swapfile
    swapon swapfile
    cat /etc/fstab
    /usr/swapfile swap    swap    defaults        0       0
    阅读全文
    作者:u2 | 分类:linux
    change linux swap size已关闭评论
  • use openvpn client in ubuntu

    #install openvpn and resovconf$sudo apt-get install openvpn $sudo apt-get install resovconf $sudo cat client.conf.mytestclient;dev tapdev tun;dev-node MyTapproto tcp;proto udpremote your-vpn-domain 1001remote your-vpn-domain 1002remote-randomresolv-retry infinitenobind;user nobody;group nogroupp ...

    阅读全文
    作者:u2 | 分类:OpenSource
    use openvpn client in ubuntu已关闭评论
  • a script of awk array – just mark

    Just mark it. 🙂 #!/bin/shawk -F”_t_7_Y_” ‘{if($1==1) {printf $2; for(i=3;i<=NF;i++) if(i==NF) print $i;else printf $i}}’ temp1  > 1.txtawk -F”_t_7_Y_” ‘{if($1==2) if($2 in S22){S22[$2]=$2;S23[$2]=$3″ “S23[$2];N2[$2]++}else {S22[$2 ...

    阅读全文
    作者:u2 | 分类:shell | 标签:
    a script of awk array – just mark已关闭评论