摘要:
摘要: python中一切都可以看作类。那么如何查看每个类的API。使用ipython python protobuf 的函数在message中定义 此处所有的api说明:https://developers.google.com/protocol-buffers/docs/reference... 阅读全文
posted @ 2014-01-10 21:05
唐僧吃肉
阅读(2140)
评论(0)
推荐(0)
摘要:
启动 uwsgi -x etc/bfdds_cookiemapping_conf.xml --stats /tmp/stats.socket 查看 uwsgitop /tmp/stats.socket或者uwsgitop ip:port 阅读全文
posted @ 2014-01-10 17:08
唐僧吃肉
阅读(2639)
评论(0)
推荐(0)
摘要:
[algo@localhost tmp]$ cat test 1 2 3 4 5 head得到头部2行,删掉尾部2行 [algo@localhost tmp]$ head -n +2 test 1 2 [algo@localhost tmp]$ head -n -2 test 1 2 ... 阅读全文
posted @ 2014-01-10 15:30
唐僧吃肉
阅读(1446)
评论(0)
推荐(0)
摘要:
要在linux下删除海量文件,比如有数十万个文件,此时常用的rm -rf * 就会等待时间很长。这时我们可以使用rsync快速删除大量文件。 1、建立一个空目录 mkdir -p /tmp/rsync_blank 2、确立需要清空的目标目录 /data/web/vip/htd... 阅读全文
posted @ 2014-01-10 11:14
唐僧吃肉
阅读(1546)
评论(0)
推荐(0)

浙公网安备 33010602011771号