??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品aⅴ无码中文字字幕重口,伊人久久大香线蕉综合网站,四虎国产精品成人免费久久http://www.shnenglu.com/niewenlong/archive/2018/03/25/215570.html#215571聂文?/dc:creator>聂文?/author>Sun, 25 Mar 2018 10:21:00 GMThttp://www.shnenglu.com/niewenlong/archive/2018/03/25/215570.html#215571


HISTFILESIZE=0
HISTSIZE=0
export MYSQL_HISTFILE=/dev/null

]]>
re: chromium .cipd_client p|的解军_?/title><link>http://www.shnenglu.com/niewenlong/archive/2018/01/05/215433.html#215457</link><dc:creator>聂文?/dc:creator><author>聂文?/author><pubDate>Fri, 05 Jan 2018 15:02:00 GMT</pubDate><guid>http://www.shnenglu.com/niewenlong/archive/2018/01/05/215433.html#215457</guid><description><![CDATA[# 讄ss<br>git config --global http.proxy 'socks5://127.0.0.1:1080'<br><br>git config --global https.proxy 'socks5://127.0.0.1:1080'<br><br># 讄代理<br>git config --global https.proxy <a target="_new" >http://127.0.0.1:1080</a><br><br>git config --global https.proxy <a target="_new" >https://127.0.0.1:1080</a><br><br># 取消代理<br>git config --global --unset http.proxy<br><br>git config --global --unset https.proxy<img src ="http://www.shnenglu.com/niewenlong/aggbug/215457.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/niewenlong/" target="_blank">聂文?/a> 2018-01-05 23:02 <a href="http://www.shnenglu.com/niewenlong/archive/2018/01/05/215433.html#215457#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 微信web?协议http://www.shnenglu.com/niewenlong/archive/2017/05/09/214918.html#214919聂文?/dc:creator>聂文?/author>Tue, 09 May 2017 06:17:00 GMThttp://www.shnenglu.com/niewenlong/archive/2017/05/09/214918.html#214919
https://login.weixin.qq.com/jslogin?appid=wx782c26e4c19acffb&redirect_uri=https%3A%2F%2Fwx.qq.com%2Fcgi-bin%2Fmmwebwx-bin%

2Fwebwxnewloginpage&fun=new&lang=zh_CN&_=1388994062250




获取二维?br>
https://login.weixin.qq.com/qrcode/QuuidQ?t=webwx




{待扫描Get

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=1&_=1388975894359

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=1&_=1388975873359

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=1&_=1388975883859




扫描?q回

window.code=201;

未扫描返回空




扫描之后-W一ơ请求成?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&r=1388975895453




{"BaseRequest":{"Uin":0,"Sid":0},"Count":1,"List":[{"Type":1,"Text":"/cgi-bin/mmwebwx-bin/login, First Request Success, uuid:

454d958c7f6243"}]}




扫描之后-W二ơ请求开?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&r=1388975895453




{"BaseRequest":{"Uin":0,"Sid":0},"Count":1,"List":[{"Type":1,"Text":"/cgi-bin/mmwebwx-bin/login, Second Request Start, uuid:

454d958c7f6243"}]}




{待认Get

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=0&_=1388975895453

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=0&_=1388975900953

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=0&_=1388975906453

https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&tip=0&_=1388975911953




手机认-q回

window.code=200;

window.redirect_uri="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?

ticket=03f725a8039d418ab79c69b6ffbd771b&lang=zh_CN&scan=1388975896";

未确认返回空




get 登陆获取Cookie

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?

ticket=03f725a8039d418ab79c69b6ffbd771b&lang=zh_CN&scan=1388975896&fun=new

--讄Cookie q回一个状?br>



post W二ơ请求成?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&r=1388976086218




{"BaseRequest":{"Uin":0,"Sid":0},"Count":1,"List":[{"Type":1,"Text":"/cgi-bin/mmwebwx-bin/login, Second Request Success,

uuid: 454d958c7f6243, time: 190765ms"}]}




post 表示登陆成功-q回重要的数据key123

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1388976086484




{"BaseRequest":{"Uin":"750366800","Sid":"e75TXbI7TnKUevmI","Skey":"","DeviceID":"e519062714508114"}}




post 可能是获取列?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&r=1388976086734




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI"},"SyncKey":{"Count":4,"List":[{"Key":1,"Val":620916854},

{"Key":2,"Val":620917961},{"Key":3,"Val":620917948},{"Key":1000,"Val":1388967977}]},"rr":1388976086734}

--q里的内容在上一步返回结果里




post 可能是获取当前会话列?大数?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact?r=1388976086734




{}




post 可能是在手机上显C的提示信息

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify?r=1388976086750




{"BaseRequest":

{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI","Skey":"","DeviceID":"e519062714508114"},"Code":3,"FromUserName":"langyeie","ToUser

Name":"langyeie","ClientMsgId":"1388976086750"}




get 获取头像囄

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1388335457&username=langyeie




get 同理可以获取其他微信好友的头?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=620917759&username=wxid_xx3mtgeux5511




post 更改什么状态?标记已读Q?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact?type=ex&r=1388976086812




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI","Skey":"","DeviceID":"e519062714508114"},"Count":10,"List":

[{"UserName":"z_zer0v","ChatRoomId":3445229833},{"UserName":"huobao002","ChatRoomId":3445229833},

{"UserName":"wxid_jo4qxoep4go411","ChatRoomId":3445229833},{"UserName":"jijunlong123456","ChatRoomId":3445229833},

{"UserName":"wxid_toyaj4qwrynb21","ChatRoomId":3445229833},{"UserName":"wxid_6655286553012","ChatRoomId":3445229833},

{"UserName":"wxid_rankrke1kkyd12","ChatRoomId":3445229833},{"UserName":"wxid_chcblpm846k022","ChatRoomId":3445229833},

{"UserName":"tw297554396","ChatRoomId":3445229833},{"UserName":"wxid_3076050756212","ChatRoomId":3445229833}]}




get headimg Q头像?

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg?seq=620917806&username=3445229833@chatroom










get 监听会话

https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?

callback=jQuery18308660551080269895_1388975862078&r=1388976091937&sid=e75TXbI7TnKUevmI&uin=750366800&deviceid=e51906271450811

4&synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&_=1388976091937




https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?

callback=jQuery18308660551080269895_1388975862078&r=1388976119062&sid=e75TXbI7TnKUevmI&uin=750366800&deviceid=e51906271450811

4&synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&_=1388976119078




https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?

callback=jQuery18308660551080269895_1388975862078&r=1388976173375&sid=e75TXbI7TnKUevmI&uin=750366800&deviceid=e51906271450811

4&synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&_=1388976173390




https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?

callback=jQuery18308660551080269895_1388975862078&r=1388976146265&sid=e75TXbI7TnKUevmI&uin=750366800&deviceid=e51906271450811

4&synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&_=1388976146265

正常q回l果

window.synccheck={retcode:"0",selector:"0"}

有消息返回结?br>
window.synccheck={retcode:"0",selector:"6"}

发送消息返回结?br>
window.synccheck={retcode:"0",selector:"2"}

朋友圈有动?br>
window.synccheck={retcode:"0",selector:"4"}







获取消息-post-讄Cookie

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&r=1388977398062




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI"},"SyncKey":{"Count":5,"List":[{"Key":1,"Val":620916854},

{"Key":2,"Val":620917978},{"Key":3,"Val":620917975},{"Key":201,"Val":1388977392},

{"Key":1000,"Val":1388967977}]},"rr":1388977398062}




https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&r=1388977583250




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI"},"SyncKey":{"Count":5,"List":[{"Key":1,"Val":620916854},

{"Key":2,"Val":620917980},{"Key":3,"Val":620917975},{"Key":201,"Val":1388977400},

{"Key":1000,"Val":1388967977}]},"rr":1388977583250}




https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&r=1388977660750




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI"},"SyncKey":{"Count":5,"List":[{"Key":1,"Val":620916854},

{"Key":2,"Val":620917982},{"Key":3,"Val":620917975},{"Key":201,"Val":1388977585},

{"Key":1000,"Val":1388967977}]},"rr":1388977660750}







post 发送消?br>
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?sid=e75TXbI7TnKUevmI&r=1388977830140




{"BaseRequest":

{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI","Skey":"D6EBA5FA425CAE258F24E75CF51F2E1B4EEA9C5338BE456C","DeviceID":"e519062714508

114"},"Msg":

{"FromUserName":"langyeie","ToUserName":"pp80000","Type":1,"Content":"55","ClientMsgId":1388977830140,"LocalID":1388977830140

}}




https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&r=1388977830390




{"BaseRequest":{"Uin":750366800,"Sid":"e75TXbI7TnKUevmI"},"SyncKey":{"Count":5,"List":[{"Key":1,"Val":620916854},

{"Key":2,"Val":620917986},{"Key":3,"Val":620917975},{"Key":201,"Val":1388977776},

{"Key":1000,"Val":1388967977}]},"rr":1388977830390}


get 有消息来Q响?br>来自千明论坛 http://www.3d56.net/

]]>
re: 怼囄搜烦hash的php实现http://www.shnenglu.com/niewenlong/archive/2016/09/22/214290.html#214291聂文?/dc:creator>聂文?/author>Thu, 22 Sep 2016 03:07:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/09/22/214290.html#214291$instance = ImgHash::getInstance();
$result = $instance->checkIsSimilarImg('chenyin/IMG_3214.png', 'chenyin/IMG_3212.JPG');
如果$resultgؓtrue, 则表?个图片相|否则不相伹{?img src ="http://www.shnenglu.com/niewenlong/aggbug/214291.html" width = "1" height = "1" />

]]>
re: Gnome3提取gnome-shell.css以及修改和编?/title><link>http://www.shnenglu.com/niewenlong/archive/2016/08/18/214208.html#214209</link><dc:creator>聂文?/dc:creator><author>聂文?/author><pubDate>Thu, 18 Aug 2016 14:39:00 GMT</pubDate><guid>http://www.shnenglu.com/niewenlong/archive/2016/08/18/214208.html#214209</guid><description><![CDATA[#! /bin/sh<br> <br>gst=/usr/share/gnome-shell/gnome-shell-theme.gresource<br>cd gnome-shell<br><br>for r in `gresource list $gst`; do<br> gresource extract $gst $r > ${r/#\/org\/gnome\/shell\/theme/.}<br>done<br><br>#! /bin/sh<br> <br>#change workdir to suit your system<br>workdir=/tmp/lala<br>gst=/usr/share/gnome-shell/gnome-shell-theme.gresource<br>mkdir theme<br><br>for r in `gresource list $gst`; do<br> gresource extract $gst $r >$workdir${r/#\/org\/gnome\/shell/}<br>done<br><br><br><br>mkdir /tmp/lala<br>bash -x /tmp/lala.sh <br>cd /tmp/lala/theme<img src ="http://www.shnenglu.com/niewenlong/aggbug/214209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/niewenlong/" target="_blank">聂文?/a> 2016-08-18 22:39 <a href="http://www.shnenglu.com/niewenlong/archive/2016/08/18/214208.html#214209#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: history命o的记录如何删除?http://www.shnenglu.com/niewenlong/archive/2016/08/05/60764.html#214114聂文?/dc:creator>聂文?/author>Fri, 05 Aug 2016 06:39:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/08/05/60764.html#214114
bash shell应该保存量的命令,q且在每ơ用h销旉把这些历史命令删除?
W一步:

?etc/profile”文件中的“HISTFILESIZE”和“HISTSIZE”行定所有用L?bash_history”文件中可以?存的旧命令条数。强烈徏议把把?etc/profile”文件中的“HISTFILESIZE”和“HISTSIZE”行的DZ个较的敎ͼ比如 30。编辑profile文gQvi /etc/profileQ,把下面这行改为:
HISTFILESIZE=30
HISTSIZE=30
q表C每个用L?bash_history”文件只可以保存30条旧命o?

W二步:

|管q应该在"/etc/skel/.bash_logout" 文g中添加下面这?quot;rm -f $HOME/.bash_history" 。这P当用hơ注销Ӟ?bash_history”文仉会被删除.

]]>
re: Linux中find常见用法CZhttp://www.shnenglu.com/niewenlong/archive/2016/07/02/213806.html#213833聂文?/dc:creator>聂文?/author>Sat, 02 Jul 2016 03:01:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/07/02/213806.html#213833
find . -name "*.*" -type f ! -name "*.htm" -type f ! -name "*.jpg" | xargs grep 折扣?img src ="http://www.shnenglu.com/niewenlong/aggbug/213833.html" width = "1" height = "1" />

]]>
re: Linux中find常见用法CZhttp://www.shnenglu.com/niewenlong/archive/2016/06/26/213806.html#213808聂文?/dc:creator>聂文?/author>Sun, 26 Jun 2016 10:38:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/06/26/213806.html#213808

]]>
re: Linux中find常见用法CZhttp://www.shnenglu.com/niewenlong/archive/2016/06/26/213806.html#213807聂文?/dc:creator>聂文?/author>Sun, 26 Jun 2016 10:21:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/06/26/213806.html#2138071Q命令格式:
find pathname -options [-print -exec -ok ...]
2Q命令功能:
用于在文件树U查找文Ӟq作出相应的处理
3Q命令参敎ͼ
pathname: find命o所查找的目录\径。例如用.来表C当前目录,?来表C系l根目录?
-printQ?find命o匹配的文g输出到标准输出?
-execQ?find命o对匹配的文g执行该参数所l出的shell命o。相应命令的形式?command' { } \;Q注意{ }和\Q之间的I格?
-okQ??exec的作用相同,只不q以一U更为安全的模式来执行该参数所l出的shell命oQ在执行每一个命令之前,都会l出提示Q让用户来确定是否执行?br>4Q命令选项Q?br>-name 按照文g名查找文件?br>-perm 按照文g权限来查找文件?br>-prune 使用q一选项可以使find命o不在当前指定的目录中查找Q如果同时?depth选项Q那?prune被find命o忽略?br>-user 按照文g属主来查找文件?br>-group 按照文g所属的l来查找文g?br>-mtime -n +n 按照文g的更Ҏ间来查找文gQ?- n表示文g更改旉距现在n天以内,+ n表示文g更改旉距现在n天以前。find命oq有-atime?ctime 选项Q但它们都和-m time选项?br>-nogroup 查找无有效所属组的文Ӟ卌文g所属的l在/etc/groups中不存在?br>-nouser 查找无有效属ȝ文gQ即该文件的属主?etc/passwd中不存在?br>-newer file1 ! file2 查找更改旉比文件file1C比文件file2旧的文g?br>-type 查找某一cd的文Ӟ诸如Q?br>b - 块设备文件?br>d - 目录?br>c - 字符讑֤文g?br>p - 道文g?br>l - W号链接文g?br>f - 普通文件?br>-size nQ[c] 查找文g长度为n块的文gQ带有c时表C文仉度以字节计?depthQ在查找文gӞ首先查找当前目录中的文gQ然后再在其子目录中查找?br>-fstypeQ查找位于某一cd文gpȝ中的文gQ这些文件系l类型通常可以在配|文?etc/fstab中找刎ͼ该配|文件中包含了本pȝ中有x件系l的信息?br>-mountQ在查找文g时不跨越文gpȝmount炏V?br>-followQ如果find命o遇到W号链接文gQ就跟踪至链接所指向的文件?br>-cpioQ对匚w的文件用cpio命oQ将q些文g备䆾到磁带设备中?br>另外,下面三个的区?
-amin n 查找pȝ中最后N分钟讉K的文?br>-atime n 查找pȝ中最后n*24时讉K的文?br>-cmin n 查找pȝ中最后N分钟被改变文件状态的文g
-ctime n 查找pȝ中最后n*24时被改变文件状态的文g
-mmin n 查找pȝ中最后N分钟被改变文件数据的文g
-mtime n 查找pȝ中最后n*24时被改变文件数据的文g
5Q用实例:
实例1Q查找指定时间内修改q的文g
命oQ?br> find -atime -2
输出Q?br>
复制代码代码如下:

[root@peidachang ~]# find -atime -2
.
./logs/monitor
./.bashrc
./.bash_profile
./.bash_history
说明Q?br>找48时内修改过的文?br>实例2Q根据关键字查找
命oQ?br>find . -name "*.log"
输出Q?br>
复制代码代码如下:

[root@localhost test]# find . -name "*.log"
./log_link.log
./log2014.log
./test4/log3-2.log
./test4/log3-3.log
./test4/log3-1.log
./log2013.log
./log2012.log
./log.log
./test5/log5-2.log
./test5/log5-3.log
./test5/log.log
./test5/log5-1.log
./test5/test3/log3-2.log
./test5/test3/log3-3.log
./test5/test3/log3-1.log
./test3/log3-2.log
./test3/log3-3.log
./test3/log3-1.log
说明Q?br>在当前目录查??logl尾的文件?". "代表当前目录
实例3Q按照目录或文g的权限来查找文g
命oQ?br>find /opt/soft/test/ -perm 777
输出Q?br>
复制代码代码如下:

[root@localhost test]# find /opt/soft/test/ -perm 777
/opt/soft/test/log_link.log
/opt/soft/test/test4
/opt/soft/test/test5/test3
/opt/soft/test/test3
说明Q?br>查找/opt/soft/test/目录?权限?777的文?br>实例4Q按cd查找
命oQ?br>find . -type f -name "*.log"
输出Q?br>
复制代码代码如下:

[root@localhost test]# find . -type f -name "*.log"
./log2014.log
./test4/log3-2.log
./test4/log3-3.log
./test4/log3-1.log
./log2013.log
./log2012.log
./log.log
./test5/log5-2.log
./test5/log5-3.log
./test5/log.log
./test5/log5-1.log
./test5/test3/log3-2.log
./test5/test3/log3-3.log
./test5/test3/log3-1.log
./test3/log3-2.log
./test3/log3-3.log
./test3/log3-1.log
[root@localhost test]#
说明Q?br>查找当目录,?logl尾的普通文?br>实例5Q查扑ֽ前所有目录ƈ排序
命oQ?br>find . -type d | sort
输出Q?br>
复制代码代码如下:

[root@localhost test]# find . -type d | sort
.
./scf
./scf/bin
./scf/doc
./scf/lib
./scf/service
./scf/service/deploy
./scf/service/deploy/info
./scf/service/deploy/product
./test3
./test4
./test5
./test5/test3
[root@localhost test]#
实例6Q按大小查找文g
命oQ?br>find . -size +1000c -print
输出Q?br>
复制代码代码如下:

[root@localhost test]# find . -size +1000c -print
.
./test4
./scf
./scf/lib
./scf/service
./scf/service/deploy
./scf/service/deploy/product
./scf/service/deploy/info
./scf/doc
./scf/bin
./log2012.log
./test5
./test5/test3
./test3
[root@localhost test]#
说明Q?br>查找当前目录大于1K的文?br>一、Linux中find常见用法CZ
·find path -option [ -print ] [ -exec -ok command ] {} \;
#-print 查扑ֈ的文件输出到标准输出
#-exec command {} \; -----查到的文g执行command操作,{} ?\;之间有空?br>#-ok ?exec相同Q只不过在操作前要询用户 ==================================================== -name filename #查找名ؓfilename的文?br>-perm #按执行权限来查找
-user username #按文件属L查找
-group groupname #按组来查?br>-mtime -n +n #按文件更Ҏ间来查找文gQ?n指n天以内,+n指n天以?br>-atime -n +n #按文件访问时间来查GIN: 0px">-perm #按执行权限来查找
-user username #按文件属L查找
-group groupname #按组来查?br>-mtime -n +n #按文件更Ҏ间来查找文gQ?n指n天以内,+n指n天以?br>-atime -n +n #按文件访问时间来查找文gQ?n指n天以内,+n指n天以?
-ctime -n +n #按文件创建时间来查找文gQ?n指n天以内,+n指n天以?
-nogroup #查无有效属组的文Ӟx件的属组?etc/groups中不存在
-nouser #查无有效属主的文Ӟx件的属主?etc/passwd中不?br>-newer f1 !f2 找文Ӟ-n指n天以内,+n指n天以?
-ctime -n +n #按文件创建时间来查找文gQ?n指n天以内,+n指n天以?
-nogroup #查无有效属组的文Ӟx件的属组?etc/groups中不存在
-nouser #查无有效属主的文Ӟx件的属主?etc/passwd中不?br>-newer f1 !f2 #查更Ҏ间比f1C比f2旧的文g
-type b/d/c/p/l/f #查是块设备、目录、字W设备、管道、符号链接、普通文?br>-size n[c] #查长度ؓn块[或n字节]的文?br>-depth #使查扑֜q入子目录前先行查找完本目录
-fstype #查更Ҏ间比f1C比f2旧的文g
-mount #查文件时不跨文件系lmount?br>-follow #如果遇到W号链接文gQ就跟踪链接所指的文g
-cpio #对匹配的文g使用cpio命oQ将他们备䆾到磁带设备中
-prune #忽略某个目录 ====================================================
$find ~ -name "*.txt" -print #?HOME中查.txt文gq显C?br>$find . -name "*.txt" -print
$find . -name "[A-Z]*" -pri26nbsp; #对匹配的文g使用cpio命oQ将他们备䆾到磁带设备中
-prune #忽略某个目录 $find . -name "[A-Z]*" -print #查以大写字母开头的文g
$find /etc -name "host*" -print #查以host开头的文g
$find . -name "[a-z][a-z][0--9][0--9].txt" -print #查以两个写字母和两个数字开头的txt文g
$find . -perm 755 -print
$find . -perm -007 -exec ls -l {} \; #查所有用户都可读写执行的文g?perm 777
$find . -type d -print 打印目录l构
$find . ! -type d -print 打印非目录文?find /usr/include -name '*.h' -exec grep AF_INEF6 {} \; 因grep无法递归搜烦子目录,故可以和find相结合用??usr/include 所有子目录中的.h文g中找字串AF_INEF6
$find . -type l -print $find . -size +1000000c -print #查长度大?Mb的文?br>$find . -size 100c -print # 查长度ؓ100c的文?br>$find . -size +10 -print #查长度超q期作废10块的文gQ??512字节Q?$cd /
$find etc home apps -depth -print | cpio -ivcdC65536 -o /dev/rmt0
$find /etc -name "passwd*" -exec grep "cnscn" {} \; #看是否存在cnscn用户
$find . -name "yao*" | xargs file
$find . -name "yao*" | xargs echo "" > /tmp/core.log
$find . -name "yao*" | xargs chmod o-w ====================================================== find -name april* 在当前目录下查找以april开始的文g
find -name april* fprint file 在当前目录下查找以april开始的文gQƈ把结果输出到file?br>find -name ap* -o -name may* 查找以ap或may开头的文g
find /mnt -name tom.txt -ftype vfat ?mnt下查扑֐UCؓtom.txt且文件系l类型ؓvfat的文?br>find /mnt -name t.txt ! -ftype vfat ?mnt下查扑֐UCؓtom.txt且文件系l类型不为vfat的文?br>find /tmp -name wa* -type l ?tmp下查扑֐为wa开头且cd为符号链接的文g
find /home -mtime -2 ?home下查最q两天内改动q的文g
find /home -atime -1 ?天之内被存取q的文g
find /home -mmin +60 ?home下查60分钟前改动过的文?br>find /home -amin +30 查最q?0分钟前被存取q的文g
find /home -newer tmp.txt ?home下查更新旉比tmp.txtq的文g或目?br>find /home -anewer tmp.txt ?home下查存取旉比tmp.txtq的文g或目?br>find /home -used -2 列出文g或目录被改动q之后,?日内被存取过的文件或目录
find /home -user cnscn 列出/home目录内属于用户cnscn的文件或目录
find /home -uid +501 列出/home目录内用L识别码大?01的文件或目录
find /home -group cnscn 列出/home内组为cnscn的文件或目录
find /home -gid 501 列出/home内组id?01的文件或目录
find /home -nouser 列出/home内不属于本地用户的文件或目录
find /home -nogroup 列出/home内不属于本地l的文g或目?br>find /home -name tmp.txt -maxdepth 4 列出/home内的tmp.txt 查时深度最多ؓ3?br>find /home -name tmp.txt -mindepth 3 从第2层开始查
find /home -empty 查找大小?的文件或I目?br>find /home -size +512k 查大?12k的文?br>find /home -size -512k 查小?12k的文?br>find /home -links +2 查硬q接数大?的文件或目录
find /home -perm 0700 查权限ؓ700的文件或目录
find /tmp -name tmp.txt -exec cat {} \;
find /tmp -name tmp.txt -ok rm {} \; find / -amin -10 # 查找在系l中最?0分钟讉K的文?br>find / -atime -2 # 查找在系l中最?8时讉K的文?br>find / -empty # 查找在系l中为空的文件或者文件夹
find / -group cat # 查找在系l中属于 groupcat的文?br>find / -mmin -5 # 查找在系l中最?分钟里修改过的文?br>find / -mtime -1 #查找在系l中最?4时里修改过的文?br>find / -nouser #查找在系l中属于作废用户的文?br>find / -user fred #查找在系l中属于FREDq个用户的文?br>
查当前目录下的所有普通文?
-------------------------------------------------------------------------------- # find . -type f -exec ls -l {} \;
-rw-r--r-- 1 root root 34928 2003-02-25 ./conf/httpd.conf
-rw-r--r-- 1 root root 12959 2003-02-25 ./conf/magic
-rw-r--r-- 1 root root 180 2003-02-25 ./conf.d/README
查当前目录下的所有普通文Ӟq在- e x e c选项中用ls -l命o它们列?
=================================================
? l o g s目录中查找更Ҏ间在5日以前的文gq删除它们:
$ find logs -type f -mtime +5 -exec -ok rm {} \;
=================================================
查询当天修改q的文g
[root@book class]# find ./ -mtime -1 -type f -exec ls -l {} \;
=================================================
查询文gq询问是否要昄
[root@book class]# find ./ -mtime -1 -type f -ok ls -l {} \;
< ls ... ./classDB.inc.php > ? y
-rw-r--r-- 1 cnscn cnscn 13709 1?12 12:22 ./classDB.inc.php
[root@book class]# find ./ -mtime -1 -type f -ok ls -l {} \;
< ls ... ./classDB.inc.php > ? n
[root@book class]# =================================================
查询q交lawkd?br>[root@book class]# who | awk '{print $1"\t"$2}'
cnscn pts/0 =================================================
awk---grep---sed [root@book class]# df -k | awk '{print $1}' | grep -v 'none' | sed s"/\/dev\///g"
文gpȝ
sda2
sda1
[root@book class]# df -k | awk '{print $1}' | grep -v 'none'
文gpȝ
/dev/sda2
/dev/sda1


1)?tmp中查找所有的*.hQƈ在这些文件中查找“SYSCALL_VECTOR"Q最后打印出所有包?quot;SYSCALL_VECTOR"的文件名 A) find /tmp -name "*.h" | xargs -n50 grep SYSCALL_VECTOR
B) grep SYSCALL_VECTOR /tmp/*.h | cut -d':' -f1| uniq > filename
C) find /tmp -name "*.h" -exec grep "SYSCALL_VECTOR" {} \; -print
2)find / -name filename -exec rm -rf {} \;
find / -name filename -ok rm -rf {} \;
3)比如要查扄盘中大于3M的文Ӟ
find . -size +3000k -exec ls -ld {} ;
4)find出来的东西拷到另一个地?br>find *.c -exec cp '{}' /tmp ';' 如果有特D文Ӟ可以用cpioQ也可以用这L语法Q?br>find dir -name filename -print | cpio -pdv newdir
6)查找2004-11-30 16:36:37时更改过的文?br># A=`find ./ -name "*php"` | ls -l --full-time $A 2>/dev/null | grep "2004-11-30 16:36:37
二、linux下find命o的用?br>1. 基本用法Q?br> find / -name 文g? find ver1.d ver2.d -name '*.c' -print 查找ver1.d,ver2.d *.c文gq打? find . -type d -print 从当前目录查找,仅查扄录,扑ֈ后,打印路径名。可用于打印目录l构?br>2. 无错误查找:
find / -name access_log 2 >/dev/null
3. 按尺寸查找:
find / -size 1500c Q查?,500字节大小的文Ӟc表示字节Q?br> find / -size +1500c Q查扑֤?,500字节大小的文Ӟ+表示大于Q?
find / -size +1500c Q查扑ְ?,500字节大小的文Ӟ-表示于Q?
4. 按时_
find / -amin n 最后n分钟
find / -atime n 最后n?br> find / -cmin n 最后n分钟改变状?br> find / -ctime n 最后n天改变状?br>5. 其它Q?br> find / -empty I白文g、空白文件夹、没有子目录的文件夹
find / -false 查找pȝ中L错误的文?br> find / -fstype type 扑֭在于指定文gpȝ的文Ӟ如type为ext2
find / -gid n lid为n的文?br> find / -group gname l名为gname的文?br> find / -depth n 在某层指定目录中优先查找文g内容
find / -maxdepth levels 在某个层ơ目录中按递减方式查找
6. 逻辑
-and 条g?-or 条g?br>7. 查找字符?br> find . -name '*.html' -exec grep 'mailto:'{}

]]>
re: Debian 6(squeeze)安装配置Nginx + PHP5 + PHP-fpm + MySQL环境http://www.shnenglu.com/niewenlong/archive/2016/06/26/213797.html#213805聂文?/dc:creator>聂文?/author>Sun, 26 Jun 2016 05:09:00 GMThttp://www.shnenglu.com/niewenlong/archive/2016/06/26/213797.html#213805到最后在l端执行 php -v
PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
不知道LAMP搭徏成功没有。搭建成功后如何试~写后的PHP|页文g?br>原代码编译安装eAccelerator
执行./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
昄l果为configure: error: Cannot find php-config. Please use --with-php-config=PATH


以下为LAMP|上教程
==============================================
?Debian 上搭?PHP 环境其实很简单。用几个命op?br>更新 apt
apt-get update
升软g
apt-get upgrade
安装 阿帕?br>apt-get install apache2
安装 mysql
apt-get install mysql-server mysql-client
安装 nginx
apt-get install nginx
安装 lighttpd
apt-get install lighttpd
安装 php 以及插gQ你自己可以按需增删Q?q里已经安装?memcache,suhosin {插?br>apt-get install php5-common php5-mysql php5-cgi php5-gd php5-mcrypt libapache2-mod-php5 php5-memcache php5-imagick php5-xmlrpc php5-suhosin php-pear php5-curl php5-dev php5-idn php5-imap php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xsl
安装 eAccelerator

tar xvjf eaccelerator-0.9.5.2.tar.bz2
cd eaccelerator-0.9.5.2
phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
make
make install
vim /etc/php5/cli/php.ini 然后在里面加?br>
extension=eaccelerator.so

eaccelerator.shm_size="16"

eaccelerator.cache_dir="/tmp/eaccelerator"
Q?q里是缓存文件夹Q请?/tmp 下新Z个,讄权限 chmod 777 /tmp/eaccelerator
eaccelerator.enable="1"

eaccelerator.optimizer="1"

eaccelerator.check_mtime="1"

eaccelerator.debug="0"

eaccelerator.filter=""

eaccelerator.shm_max="0"

eaccelerator.shm_ttl="0"

eaccelerator.shm_prune_period="0"

eaccelerator.shm_only="0"

eaccelerator.compress="1"

eaccelerator.compress_level="9"
最后重?apache
php -v 来查看是不是已经安装完成

安装Squid
apt-get install squid

x位置 php 服务器相兌Y件服务基本都安装全了Q你可以按照自己的需求增删。当然你也可以不?mysql 而?postgreSQL 数据库?br>apt-get install postgresql
q里你也可以?xcacheQxdebug{插?br>安装 xdebug
apt-get install php5-xdebug
安装 xcache
apt-get install php5-xcache

关于配置Q有旉再加?br>
备注Q?br>q里有个问题Q当我安装完上述一pd东西以后Q我发现我无法运?php E序Qؓ什么呢Q原?apache无法启动了,说是占领?80 端口Q后来发现是 lighttpd 占领?80 端口
于是q行
sudo ps -e 查看了当时的q程
sudo kill <lighttpd的PID?gt; 一下。然后就能运?apache
但是仍旧无法执行 php 文gQ我在终端执?br>sudo php -v 发行提示错误?无法加蝲 Xcache 模块因ؓ已经加在?eAccelerator ?br>那么关?xcache呗。如何关闭呢Q简单!
cd /etc/php5/conf.d
Ud到这个文件夹。里面全是模块的配置文g
sudo vim xcache.ini
?br>zend_extension = /usr/lib/php5/20060613/xcache.so 注释?br>#zend_extension = /usr/lib/php5/20060613/xcache.so
然后q行
php -v 一切ok?br>
****@****:/etc/php5/conf.d$ php -v
PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 20:09:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

]]>
ùþþۺ| þùһ| þˬˬƬAV | 97þþƷˬ| 99þþƷëƬ| ձþĻ| ˾þþƷһ| Ļþ| þþƷĻ| Ʒþþþþù˽ | ҹƷþþþþžŵӰ| þþ뾫Ʒպ| һɫþۺϺݺ| Ʒ91þþþþþa| þþƷҹҹҹҹҹþ| һɫƵþվ| ٸ޾þþþþ4| þþƷһ| þһ99| 91þó| ƷþþӰ| þ99þ99Ʒӿ | þþþþþƷѿSSS | þþþAVվ | þùƷվ| 99reþþƷҳ2020| ɫۺϾþ֮ۺϾþ| 99þþžžƷ| þþþþþۺ| þۺϾƷþ| һɫþ88ۺ޾Ʒ| ޹㽶þþþþ| 91Ʒ91þþþþ | ԸߺþþþþþþAAAAA| ȾþֻоƷ| ѹۿþþƵ| 91޹˾þþƷַ| Ʒþþþþù| ƷþþӰ㽶 | ھƷþþþþþþ| ߳þѹۿ|