﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Dark Angle-最新评论</title><link>http://www.cppblog.com/niewenlong/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sun, 11 Jul 2021 07:06:45 GMT</pubDate><lastBuildDate>Sun, 11 Jul 2021 07:06:45 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 禁止 .mysql_history</title><link>http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html#215571</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 25 Mar 2018 10:21:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html#215571</guid><description><![CDATA[root@Debian:~# vi /etc/profile<br><br><br><br>HISTFILESIZE=0<br>HISTSIZE=0<br>export MYSQL_HISTFILE=/dev/null<img src ="http://www.cppblog.com/niewenlong/aggbug/215571.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2018-03-25 18:21 <a href="http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html#215571#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: chromium .cipd_client 失败的解决办法</title><link>http://www.cppblog.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.cppblog.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" href="http://127.0.0.1:1080">http://127.0.0.1:1080</a><br><br>git config --global https.proxy <a target="_new" href="https://127.0.0.1:1080">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.cppblog.com/niewenlong/aggbug/215457.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2018-01-05 23:02 <a href="http://www.cppblog.com/niewenlong/archive/2018/01/05/215433.html#215457#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 微信web版 协议</title><link>http://www.cppblog.com/niewenlong/archive/2017/05/09/214918.html#214919</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Tue, 09 May 2017 06:17:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2017/05/09/214918.html#214919</guid><description><![CDATA[获取uuid<br><br><a target="_new" href="https://login.weixin.qq.com/jslogin?appid=wx782c26e4c19acffb&amp;redirect_uri=https%3A%2F%2Fwx.qq.com%2Fcgi-bin%2Fmmwebwx-bin%">https://login.weixin.qq.com/jslogin?appid=wx782c26e4c19acffb&amp;redirect_uri=https%3A%2F%2Fwx.qq.com%2Fcgi-bin%2Fmmwebwx-bin%</a><br><br>2Fwebwxnewloginpage&amp;fun=new&amp;lang=zh_CN&amp;_=1388994062250<br><br><br><br><br>获取二维码<br><br><a target="_new" href="https://login.weixin.qq.com/qrcode/">https://login.weixin.qq.com/qrcode/</a>＋uuid＋?t=webwx<br><br><br><br><br>等待扫描Get<br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975894359">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975894359</a><br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975873359">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975873359</a><br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975883859">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=1&amp;_=1388975883859</a><br><br><br><br><br>扫描了-返回<br><br>window.code=201;<br><br>未扫描返回空<br><br><br><br><br>扫描之后-第一次请求成功<br><br><a target="_new" href="<a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453</a>"><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453</a></a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:0,&quot;Sid&quot;:0},&quot;Count&quot;:1,&quot;List&quot;:[{&quot;Type&quot;:1,&quot;Text&quot;:&quot;/cgi-bin/mmwebwx-bin/login, First Request Success, uuid: <br><br>454d958c7f6243&quot;}]}<br><br><br><br><br>扫描之后-第二次请求开始<br><br><a target="_new" href="<a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453</a>"><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388975895453</a></a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:0,&quot;Sid&quot;:0},&quot;Count&quot;:1,&quot;List&quot;:[{&quot;Type&quot;:1,&quot;Text&quot;:&quot;/cgi-bin/mmwebwx-bin/login, Second Request Start, uuid: <br><br>454d958c7f6243&quot;}]}<br><br><br><br><br>等待确认Get<br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975895453">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975895453</a><br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975900953">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975900953</a><br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975906453">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975906453</a><br><br><a target="_new" href="https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975911953">https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=454d958c7f6243&amp;tip=0&amp;_=1388975911953</a><br><br><br><br><br>手机确认-返回<br><br>window.code=200;<br><br>window.redirect_uri=&quot;<a target="_new" href="<a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?</a>"><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?</a></a><br><br>ticket=03f725a8039d418ab79c69b6ffbd771b&amp;lang=zh_CN&amp;scan=1388975896&quot;;<br><br>未确认返回空<br><br><br><br><br>get 登陆获取Cookie<br><br><a target="_new" href="<a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?</a>"><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?</a></a><br><br>ticket=03f725a8039d418ab79c69b6ffbd771b&amp;lang=zh_CN&amp;scan=1388975896&amp;fun=new<br><br>--设置Cookie 返回一个状态<br><br><br><br><br>post 第二次请求成功<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388976086218">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport?type=1&amp;r=1388976086218</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:0,&quot;Sid&quot;:0},&quot;Count&quot;:1,&quot;List&quot;:[{&quot;Type&quot;:1,&quot;Text&quot;:&quot;/cgi-bin/mmwebwx-bin/login, Second Request Success, <br><br>uuid: 454d958c7f6243, time: 190765ms&quot;}]}<br><br><br><br><br>post 表示登陆成功-返回重要的数据key123<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1388976086484">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1388976086484</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:&quot;750366800&quot;,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;,&quot;Skey&quot;:&quot;&quot;,&quot;DeviceID&quot;:&quot;e519062714508114&quot;}}<br><br><br><br><br>post 可能是获取列表<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388976086734">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388976086734</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;},&quot;SyncKey&quot;:{&quot;Count&quot;:4,&quot;List&quot;:[{&quot;Key&quot;:1,&quot;Val&quot;:620916854},<br><br>{&quot;Key&quot;:2,&quot;Val&quot;:620917961},{&quot;Key&quot;:3,&quot;Val&quot;:620917948},{&quot;Key&quot;:1000,&quot;Val&quot;:1388967977}]},&quot;rr&quot;:1388976086734}<br><br>--这里的内容在上一步返回结果里<br><br><br><br><br>post 可能是获取当前会话列表-大数据<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact?r=1388976086734">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact?r=1388976086734</a><br><br><br><br><br>{}<br><br><br><br><br>post 可能是在手机上显示的提示信息<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify?r=1388976086750">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify?r=1388976086750</a><br><br><br><br><br>{&quot;BaseRequest&quot;:<br><br>{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;,&quot;Skey&quot;:&quot;&quot;,&quot;DeviceID&quot;:&quot;e519062714508114&quot;},&quot;Code&quot;:3,&quot;FromUserName&quot;:&quot;langyeie&quot;,&quot;ToUser<br><br>Name&quot;:&quot;langyeie&quot;,&quot;ClientMsgId&quot;:&quot;1388976086750&quot;}<br><br><br><br><br>get 获取头像图片<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1388335457&amp;username=langyeie">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1388335457&amp;username=langyeie</a><br><br><br><br><br>get 同理可以获取其他微信好友的头像<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=620917759&amp;username=wxid_xx3mtgeux5511">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?seq=620917759&amp;username=wxid_xx3mtgeux5511</a><br><br><br><br><br>post 更改什么状态？标记已读？<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact?type=ex&amp;r=1388976086812">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact?type=ex&amp;r=1388976086812</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;,&quot;Skey&quot;:&quot;&quot;,&quot;DeviceID&quot;:&quot;e519062714508114&quot;},&quot;Count&quot;:10,&quot;List&quot;:<br><br>[{&quot;UserName&quot;:&quot;z_zer0v&quot;,&quot;ChatRoomId&quot;:3445229833},{&quot;UserName&quot;:&quot;huobao002&quot;,&quot;ChatRoomId&quot;:3445229833},<br><br>{&quot;UserName&quot;:&quot;wxid_jo4qxoep4go411&quot;,&quot;ChatRoomId&quot;:3445229833},{&quot;UserName&quot;:&quot;jijunlong123456&quot;,&quot;ChatRoomId&quot;:3445229833},<br><br>{&quot;UserName&quot;:&quot;wxid_toyaj4qwrynb21&quot;,&quot;ChatRoomId&quot;:3445229833},{&quot;UserName&quot;:&quot;wxid_6655286553012&quot;,&quot;ChatRoomId&quot;:3445229833},<br><br>{&quot;UserName&quot;:&quot;wxid_rankrke1kkyd12&quot;,&quot;ChatRoomId&quot;:3445229833},{&quot;UserName&quot;:&quot;wxid_chcblpm846k022&quot;,&quot;ChatRoomId&quot;:3445229833},<br><br>{&quot;UserName&quot;:&quot;tw297554396&quot;,&quot;ChatRoomId&quot;:3445229833},{&quot;UserName&quot;:&quot;wxid_3076050756212&quot;,&quot;ChatRoomId&quot;:3445229833}]}<br><br><br><br><br>get headimg ？头像？<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg?seq=620917806&amp;username=3445229833@chatroom">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg?seq=620917806&amp;username=3445229833@chatroom</a><br><br><br><br><br><br><br><br><br><br><br>get 监听会话<br><br><a target="_new" href="<a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a>"><a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a></a><br><br>callback=jQuery18308660551080269895_1388975862078&amp;r=1388976091937&amp;sid=e75TXbI7TnKUevmI&amp;uin=750366800&amp;deviceid=e51906271450811<br><br>4&amp;synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&amp;_=1388976091937<br><br><br><br><br><a target="_new" href="<a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a>"><a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a></a><br><br>callback=jQuery18308660551080269895_1388975862078&amp;r=1388976119062&amp;sid=e75TXbI7TnKUevmI&amp;uin=750366800&amp;deviceid=e51906271450811<br><br>4&amp;synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&amp;_=1388976119078<br><br><br><br><br><a target="_new" href="<a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a>"><a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a></a><br><br>callback=jQuery18308660551080269895_1388975862078&amp;r=1388976173375&amp;sid=e75TXbI7TnKUevmI&amp;uin=750366800&amp;deviceid=e51906271450811<br><br>4&amp;synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&amp;_=1388976173390<br><br><br><br><br><a target="_new" href="<a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a>"><a target="_new" href="<a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a>"><a target="_new" href="<a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a>"><a target="_new" href="https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?">https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?</a></a></a></a><br><br>callback=jQuery18308660551080269895_1388975862078&amp;r=1388976146265&amp;sid=e75TXbI7TnKUevmI&amp;uin=750366800&amp;deviceid=e51906271450811<br><br>4&amp;synckey=1_620916854%7C2_620917963%7C3_620917948%7C201_1388976090%7C1000_1388967977&amp;_=1388976146265<br><br>正常返回结果<br><br>window.synccheck={retcode:&quot;0&quot;,selector:&quot;0&quot;}<br><br>有消息返回结果<br><br>window.synccheck={retcode:&quot;0&quot;,selector:&quot;6&quot;}<br><br>发送消息返回结果<br><br>window.synccheck={retcode:&quot;0&quot;,selector:&quot;2&quot;}<br><br>朋友圈有动态<br><br>window.synccheck={retcode:&quot;0&quot;,selector:&quot;4&quot;}<br><br><br><br><br><br><br><br>获取消息-post-设置Cookie<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977398062">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977398062</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;},&quot;SyncKey&quot;:{&quot;Count&quot;:5,&quot;List&quot;:[{&quot;Key&quot;:1,&quot;Val&quot;:620916854},<br><br>{&quot;Key&quot;:2,&quot;Val&quot;:620917978},{&quot;Key&quot;:3,&quot;Val&quot;:620917975},{&quot;Key&quot;:201,&quot;Val&quot;:1388977392},<br><br>{&quot;Key&quot;:1000,&quot;Val&quot;:1388967977}]},&quot;rr&quot;:1388977398062}<br><br><br><br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977583250">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977583250</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;},&quot;SyncKey&quot;:{&quot;Count&quot;:5,&quot;List&quot;:[{&quot;Key&quot;:1,&quot;Val&quot;:620916854},<br><br>{&quot;Key&quot;:2,&quot;Val&quot;:620917980},{&quot;Key&quot;:3,&quot;Val&quot;:620917975},{&quot;Key&quot;:201,&quot;Val&quot;:1388977400},<br><br>{&quot;Key&quot;:1000,&quot;Val&quot;:1388967977}]},&quot;rr&quot;:1388977583250}<br><br><br><br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977660750">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977660750</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;},&quot;SyncKey&quot;:{&quot;Count&quot;:5,&quot;List&quot;:[{&quot;Key&quot;:1,&quot;Val&quot;:620916854},<br><br>{&quot;Key&quot;:2,&quot;Val&quot;:620917982},{&quot;Key&quot;:3,&quot;Val&quot;:620917975},{&quot;Key&quot;:201,&quot;Val&quot;:1388977585},<br><br>{&quot;Key&quot;:1000,&quot;Val&quot;:1388967977}]},&quot;rr&quot;:1388977660750}<br><br><br><br><br><br><br><br>post 发送消息<br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?sid=e75TXbI7TnKUevmI&amp;r=1388977830140">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?sid=e75TXbI7TnKUevmI&amp;r=1388977830140</a><br><br><br><br><br>{&quot;BaseRequest&quot;:<br><br>{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;,&quot;Skey&quot;:&quot;D6EBA5FA425CAE258F24E75CF51F2E1B4EEA9C5338BE456C&quot;,&quot;DeviceID&quot;:&quot;e519062714508<br><br>114&quot;},&quot;Msg&quot;:<br><br>{&quot;FromUserName&quot;:&quot;langyeie&quot;,&quot;ToUserName&quot;:&quot;pp80000&quot;,&quot;Type&quot;:1,&quot;Content&quot;:&quot;55&quot;,&quot;ClientMsgId&quot;:1388977830140,&quot;LocalID&quot;:1388977830140<br><br>}}<br><br><br><br><br><a target="_new" href="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977830390">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=e75TXbI7TnKUevmI&amp;r=1388977830390</a><br><br><br><br><br>{&quot;BaseRequest&quot;:{&quot;Uin&quot;:750366800,&quot;Sid&quot;:&quot;e75TXbI7TnKUevmI&quot;},&quot;SyncKey&quot;:{&quot;Count&quot;:5,&quot;List&quot;:[{&quot;Key&quot;:1,&quot;Val&quot;:620916854},<br><br>{&quot;Key&quot;:2,&quot;Val&quot;:620917986},{&quot;Key&quot;:3,&quot;Val&quot;:620917975},{&quot;Key&quot;:201,&quot;Val&quot;:1388977776},<br><br>{&quot;Key&quot;:1000,&quot;Val&quot;:1388967977}]},&quot;rr&quot;:1388977830390}<br><br><br>get 有消息来，响铃<br>来自千明论坛 <a target="_new" href="http://www.3d56.net/">http://www.3d56.net/</a><img src ="http://www.cppblog.com/niewenlong/aggbug/214919.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2017-05-09 14:17 <a href="http://www.cppblog.com/niewenlong/archive/2017/05/09/214918.html#214919#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 相似图片搜索hash的php实现</title><link>http://www.cppblog.com/niewenlong/archive/2016/09/22/214290.html#214291</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Thu, 22 Sep 2016 03:07:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/09/22/214290.html#214291</guid><description><![CDATA[require_once &quot;Imghash.class.php&quot;;<br>$instance = ImgHash::getInstance();<br>$result = $instance-&gt;checkIsSimilarImg('chenyin/IMG_3214.png', 'chenyin/IMG_3212.JPG');<br>如果$result值为true, 则表明2个图片相似，否则不相似。<img src ="http://www.cppblog.com/niewenlong/aggbug/214291.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-09-22 11:07 <a href="http://www.cppblog.com/niewenlong/archive/2016/09/22/214290.html#214291#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Gnome3提取gnome-shell.css以及修改和编译</title><link>http://www.cppblog.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.cppblog.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 &gt; ${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 &gt;$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.cppblog.com/niewenlong/aggbug/214209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-08-18 22:39 <a href="http://www.cppblog.com/niewenlong/archive/2016/08/18/214208.html#214209#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: history命令的记录如何删除？</title><link>http://www.cppblog.com/niewenlong/archive/2016/08/05/60764.html#214114</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Fri, 05 Aug 2016 06:39:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/08/05/60764.html#214114</guid><description><![CDATA[Bash shell在“~/.bash_history”（“~/”表示用户目录）文件中保存了500条使用过的命令，这样可以使你输入使用过的长命令变得容易。每个在系统中拥有账号的用户在他的目录下都有一个“.bash_history”文件。<br><br>bash shell应该保存少量的命令，并且在每次用户注销时都把这些历史命令删除。 <br>第一步： <br><br>“/etc/profile”文件中的“HISTFILESIZE”和“HISTSIZE”行确定所有用户的“.bash_history”文件中可以保 存的旧命令条数。强烈建议把把“/etc/profile”文件中的“HISTFILESIZE”和“HISTSIZE”行的值设为一个较小的数，比如 30。编辑profile文件（vi /etc/profile），把下面这行改为： <br>HISTFILESIZE=30 <br>HISTSIZE=30 <br>这表示每个用户的“.bash_history”文件只可以保存30条旧命令。 <br><br>第二步： <br><br>网管还应该在&quot;/etc/skel/.bash_logout&quot; 文件中添加下面这行&quot;rm -f $HOME/.bash_history&quot; 。这样，当用户每次注销时，“.bash_history”文件都会被删除.<img src ="http://www.cppblog.com/niewenlong/aggbug/214114.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-08-05 14:39 <a href="http://www.cppblog.com/niewenlong/archive/2016/08/05/60764.html#214114#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Linux中find常见用法示例</title><link>http://www.cppblog.com/niewenlong/archive/2016/07/02/213806.html#213833</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sat, 02 Jul 2016 03:01:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/07/02/213806.html#213833</guid><description><![CDATA[find . -regex '.*\.php\|.*\.html' | xargs grep  折扣价<br><br>find .  -name &quot;*.*&quot; -type f ! -name &quot;*.htm&quot; -type f ! -name &quot;*.jpg&quot; | xargs grep  折扣价<img src ="http://www.cppblog.com/niewenlong/aggbug/213833.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-07-02 11:01 <a href="http://www.cppblog.com/niewenlong/archive/2016/07/02/213806.html#213833#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Linux中find常见用法示例</title><link>http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213808</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 26 Jun 2016 10:38:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213808</guid><description><![CDATA[find . -name &quot;*.*&quot; -type f ! -name &quot;*.jpg&quot;| xargs grep &quot;function xxxxxx&quot;<img src ="http://www.cppblog.com/niewenlong/aggbug/213808.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-06-26 18:38 <a href="http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213808#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Linux中find常见用法示例</title><link>http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213807</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 26 Jun 2016 10:21:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213807</guid><description><![CDATA[Linux下find命令在目录结构中搜索文件，并执行指定的操作。Linux下find命令提供了相当多的查找条件，功能很强大。由于find具有强大的功能，所以它的选项也很多，其中大部分选项都值得我们花时间来了解一下。即使系统中含有网络文件系统( NFS)，find命令在该文件系统中同样有效，只你具有相应的权限。 在运行一个非常消耗资源的find命令时，很多人都倾向于把它放在后台执行，因为遍历一个大的文件系统可能会花费很长的时间(这里是指30G字节以上的文件系统)。<br>1．命令格式：<br>find pathname -options [-print -exec -ok ...]<br>2．命令功能：<br>用于在文件树种查找文件，并作出相应的处理<br>3．命令参数：<br>pathname: find命令所查找的目录路径。例如用.来表示当前目录，用/来表示系统根目录。 <br>-print： find命令将匹配的文件输出到标准输出。 <br>-exec： find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为'command' {  } \;，注意{   }和\；之间的空格。 <br>-ok： 和-exec的作用相同，只不过以一种更为安全的模式来执行该参数所给出的shell命令，在执行每一个命令之前，都会给出提示，让用户来确定是否执行。<br>4．命令选项：<br>-name   按照文件名查找文件。<br>-perm   按照文件权限来查找文件。<br>-prune  使用这一选项可以使find命令不在当前指定的目录中查找，如果同时使用-depth选项，那么-prune将被find命令忽略。<br>-user   按照文件属主来查找文件。<br>-group  按照文件所属的组来查找文件。<br>-mtime -n +n  按照文件的更改时间来查找文件， - n表示文件更改时间距现在n天以内，+ n表示文件更改时间距现在n天以前。find命令还有-atime和-ctime 选项，但它们都和-m time选项。<br>-nogroup  查找无有效所属组的文件，即该文件所属的组在/etc/groups中不存在。<br>-nouser   查找无有效属主的文件，即该文件的属主在/etc/passwd中不存在。<br>-newer file1 ! file2  查找更改时间比文件file1新但比文件file2旧的文件。<br>-type  查找某一类型的文件，诸如：<br>b - 块设备文件。<br>d - 目录。<br>c - 字符设备文件。<br>p - 管道文件。<br>l - 符号链接文件。<br>f - 普通文件。<br>-size n：[c] 查找文件长度为n块的文件，带有c时表示文件长度以字节计。-depth：在查找文件时，首先查找当前目录中的文件，然后再在其子目录中查找。<br>-fstype：查找位于某一类型文件系统中的文件，这些文件系统类型通常可以在配置文件/etc/fstab中找到，该配置文件中包含了本系统中有关文件系统的信息。<br>-mount：在查找文件时不跨越文件系统mount点。<br>-follow：如果find命令遇到符号链接文件，就跟踪至链接所指向的文件。<br>-cpio：对匹配的文件使用cpio命令，将这些文件备份到磁带设备中。<br>另外,下面三个的区别:<br>-amin n   查找系统中最后N分钟访问的文件<br>-atime n  查找系统中最后n*24小时访问的文件<br>-cmin n   查找系统中最后N分钟被改变文件状态的文件<br>-ctime n  查找系统中最后n*24小时被改变文件状态的文件<br>-mmin n   查找系统中最后N分钟被改变文件数据的文件<br>-mtime n  查找系统中最后n*24小时被改变文件数据的文件<br>5．使用实例：<br>实例1：查找指定时间内修改过的文件<br>命令：<br>           find -atime -2<br>输出：<br><br>复制代码代码如下:<br><br>[root@peidachang ~]# find -atime -2<br>.<br>./logs/monitor<br>./.bashrc<br>./.bash_profile<br>./.bash_history<br>说明：<br>超找48小时内修改过的文件<br>实例2：根据关键字查找<br>命令：<br>find . -name &quot;*.log&quot;<br>输出：<br><br>复制代码代码如下:<br><br>[root@localhost test]# find . -name &quot;*.log&quot; <br>./log_link.log<br>./log2014.log<br>./test4/log3-2.log<br>./test4/log3-3.log<br>./test4/log3-1.log<br>./log2013.log<br>./log2012.log<br>./log.log<br>./test5/log5-2.log<br>./test5/log5-3.log<br>./test5/log.log<br>./test5/log5-1.log<br>./test5/test3/log3-2.log<br>./test5/test3/log3-3.log<br>./test5/test3/log3-1.log<br>./test3/log3-2.log<br>./test3/log3-3.log<br>./test3/log3-1.log<br>说明：<br>在当前目录查找 以.log结尾的文件。 &quot;. &quot;代表当前目录<br>实例3：按照目录或文件的权限来查找文件<br>命令：<br>find /opt/soft/test/ -perm 777<br>输出：<br><br>复制代码代码如下:<br><br>[root@localhost test]# find /opt/soft/test/ -perm 777<br>/opt/soft/test/log_link.log<br>/opt/soft/test/test4<br>/opt/soft/test/test5/test3<br>/opt/soft/test/test3<br>说明：<br>查找/opt/soft/test/目录下 权限为 777的文件<br>实例4：按类型查找<br>命令：<br>find . -type f -name &quot;*.log&quot;<br>输出：<br><br>复制代码代码如下:<br><br>[root@localhost test]# find . -type f -name &quot;*.log&quot;<br>./log2014.log<br>./test4/log3-2.log<br>./test4/log3-3.log<br>./test4/log3-1.log<br>./log2013.log<br>./log2012.log<br>./log.log<br>./test5/log5-2.log<br>./test5/log5-3.log<br>./test5/log.log<br>./test5/log5-1.log<br>./test5/test3/log3-2.log<br>./test5/test3/log3-3.log<br>./test5/test3/log3-1.log<br>./test3/log3-2.log<br>./test3/log3-3.log<br>./test3/log3-1.log<br>[root@localhost test]#<br>说明：<br>查找当目录，以.log结尾的普通文件<br>实例5：查找当前所有目录并排序<br>命令：<br>find . -type d | sort<br>输出：<br><br>复制代码代码如下:<br><br>[root@localhost test]# find . -type d | sort<br>.<br>./scf<br>./scf/bin<br>./scf/doc<br>./scf/lib<br>./scf/service<br>./scf/service/deploy<br>./scf/service/deploy/info<br>./scf/service/deploy/product<br>./test3<br>./test4<br>./test5<br>./test5/test3<br>[root@localhost test]#<br>实例6：按大小查找文件<br>命令：<br>find . -size +1000c -print<br>输出：<br><br>复制代码代码如下:<br><br>[root@localhost test]# find . -size +1000c -print<br>.<br>./test4<br>./scf<br>./scf/lib<br>./scf/service<br>./scf/service/deploy<br>./scf/service/deploy/product<br>./scf/service/deploy/info<br>./scf/doc<br>./scf/bin<br>./log2012.log<br>./test5<br>./test5/test3<br>./test3<br>[root@localhost test]#<br>说明：<br>查找当前目录大于1K的文件<br>一、Linux中find常见用法示例<br>&#183;find    path    -option    [    -print ]    [ -exec    -ok    command ]    {} \;<br>#-print 将查找到的文件输出到标准输出<br>#-exec    command    {} \;       -----将查到的文件执行command操作,{} 和 \;之间有空格<br>#-ok 和-exec相同，只不过在操作前要询用户 ==================================================== -name    filename               #查找名为filename的文件<br>-perm                         #按执行权限来查找<br>-user     username              #按文件属主来查找<br>-group groupname              #按组来查找<br>-mtime    -n +n                 #按文件更改时间来查找文件，-n指n天以内，+n指n天以前<br>-atime     -n +n                #按文件访问时间来查GIN: 0px&quot;&gt;-perm                          #按执行权限来查找<br>-user     username              #按文件属主来查找<br>-group groupname              #按组来查找<br>-mtime    -n +n                 #按文件更改时间来查找文件，-n指n天以内，+n指n天以前<br>-atime     -n +n                #按文件访问时间来查找文件，-n指n天以内，+n指n天以前 <br>-ctime     -n +n                #按文件创建时间来查找文件，-n指n天以内，+n指n天以前 <br>-nogroup                      #查无有效属组的文件，即文件的属组在/etc/groups中不存在<br>-nouser                       #查无有效属主的文件，即文件的属主在/etc/passwd中不存<br>-newer    f1 !f2                找文件，-n指n天以内，+n指n天以前 <br>-ctime     -n +n                #按文件创建时间来查找文件，-n指n天以内，+n指n天以前 <br>-nogroup                      #查无有效属组的文件，即文件的属组在/etc/groups中不存在<br>-nouser                       #查无有效属主的文件，即文件的属主在/etc/passwd中不存<br>-newer    f1 !f2                #查更改时间比f1新但比f2旧的文件<br>-type      b/d/c/p/l/f          #查是块设备、目录、字符设备、管道、符号链接、普通文件<br>-size       n[c]                #查长度为n块[或n字节]的文件<br>-depth                        #使查找在进入子目录前先行查找完本目录<br>-fstype                       #查更改时间比f1新但比f2旧的文件<br>-mount                        #查文件时不跨越文件系统mount点<br>-follow                       #如果遇到符号链接文件，就跟踪链接所指的文件<br>-cpio                         #对匹配的文件使用cpio命令，将他们备份到磁带设备中<br>-prune                        #忽略某个目录 ====================================================<br>$find    ~    -name    &quot;*.txt&quot;    -print      #在$HOME中查.txt文件并显示<br>$find    .     -name    &quot;*.txt&quot;    -print<br>$find    .     -name    &quot;[A-Z]*&quot;    -pri26nbsp;     #对匹配的文件使用cpio命令，将他们备份到磁带设备中<br>-prune                                #忽略某个目录 $find    .     -name    &quot;[A-Z]*&quot;    -print    #查以大写字母开头的文件<br>$find    /etc    -name    &quot;host*&quot;    -print #查以host开头的文件<br>$find    .    -name    &quot;[a-z][a-z][0--9][0--9].txt&quot;     -print    #查以两个小写字母和两个数字开头的txt文件<br>$find .    -perm    755    -print<br>$find    .    -perm -007    -exec ls -l {} \;    #查所有用户都可读写执行的文件同-perm 777<br>$find    . -type d    -print   打印目录结构<br>$find    .   !    -type    d    -print  打印非目录文件 find /usr/include -name '*.h' -exec grep AF_INEF6 {} \; 因grep无法递归搜索子目录，故可以和find相结合使用。 在/usr/include 所有子目录中的.h文件中找字串AF_INEF6<br>$find    .    -type l    -print $find    .    -size    +1000000c    -print         #查长度大于1Mb的文件<br>$find    .    -size    100c          -print        # 查长度为100c的文件<br>$find    .    -size    +10    -print               #查长度超过期作废10块的文件（1块=512字节） $cd /<br>$find    etc    home    apps     -depth    -print    | cpio    -ivcdC65536    -o    /dev/rmt0<br>$find    /etc -name &quot;passwd*&quot;    -exec grep    &quot;cnscn&quot;    {}    \;    #看是否存在cnscn用户<br>$find . -name &quot;yao*&quot;    | xargs file<br>$find    . -name &quot;yao*&quot;    |    xargs    echo     &quot;&quot; &gt; /tmp/core.log<br>$find    . -name &quot;yao*&quot;    | xargs    chmod    o-w ====================================================== find    -name april*                        在当前目录下查找以april开始的文件<br>find    -name    april*    fprint file          在当前目录下查找以april开始的文件，并把结果输出到file中<br>find    -name ap* -o -name may*    查找以ap或may开头的文件<br>find    /mnt    -name tom.txt    -ftype vfat    在/mnt下查找名称为tom.txt且文件系统类型为vfat的文件<br>find    /mnt    -name t.txt ! -ftype vfat     在/mnt下查找名称为tom.txt且文件系统类型不为vfat的文件<br>find    /tmp    -name wa* -type l             在/tmp下查找名为wa开头且类型为符号链接的文件<br>find    /home    -mtime    -2                   在/home下查最近两天内改动过的文件<br>find /home     -atime -1                    查1天之内被存取过的文件<br>find /home -mmin     +60                    在/home下查60分钟前改动过的文件<br>find /home    -amin    +30                    查最近30分钟前被存取过的文件<br>find /home    -newer    tmp.txt               在/home下查更新时间比tmp.txt近的文件或目录<br>find /home    -anewer    tmp.txt              在/home下查存取时间比tmp.txt近的文件或目录<br>find    /home    -used    -2                    列出文件或目录被改动过之后，在2日内被存取过的文件或目录<br>find    /home    -user cnscn                  列出/home目录内属于用户cnscn的文件或目录<br>find    /home    -uid    +501                   列出/home目录内用户的识别码大于501的文件或目录<br>find    /home    -group    cnscn                列出/home内组为cnscn的文件或目录<br>find    /home    -gid 501                     列出/home内组id为501的文件或目录<br>find    /home    -nouser                      列出/home内不属于本地用户的文件或目录<br>find    /home    -nogroup                     列出/home内不属于本地组的文件或目录<br>find    /home     -name tmp.txt     -maxdepth    4    列出/home内的tmp.txt 查时深度最多为3层<br>find    /home    -name tmp.txt    -mindepth    3    从第2层开始查<br>find    /home    -empty                       查找大小为0的文件或空目录<br>find    /home    -size    +512k                 查大于512k的文件<br>find    /home    -size    -512k                 查小于512k的文件<br>find    /home    -links    +2                   查硬连接数大于2的文件或目录<br>find    /home    -perm    0700                  查权限为700的文件或目录<br>find    /tmp    -name tmp.txt    -exec cat {} \;<br>find    /tmp    -name    tmp.txt    -ok    rm {} \; find     /    -amin     -10         # 查找在系统中最后10分钟访问的文件<br>find     /    -atime    -2           # 查找在系统中最后48小时访问的文件<br>find     /    -empty                # 查找在系统中为空的文件或者文件夹<br>find     /    -group    cat          # 查找在系统中属于 groupcat的文件<br>find     /    -mmin    -5           # 查找在系统中最后5分钟里修改过的文件<br>find     /    -mtime    -1          #查找在系统中最后24小时里修改过的文件<br>find     /    -nouser               #查找在系统中属于作废用户的文件<br>find     /    -user     fred         #查找在系统中属于FRED这个用户的文件<br><br>查当前目录下的所有普通文件 <br>-------------------------------------------------------------------------------- # find . -type f -exec ls -l {} \; <br>-rw-r--r--      1 root       root          34928 2003-02-25    ./conf/httpd.conf <br>-rw-r--r--      1 root       root          12959 2003-02-25    ./conf/magic <br>-rw-r--r--      1 root       root            180 2003-02-25    ./conf.d/README <br>查当前目录下的所有普通文件，并在- e x e c选项中使用ls -l命令将它们列出 <br>=================================================<br>在/ l o g s目录中查找更改时间在5日以前的文件并删除它们：<br>$ find logs -type f -mtime +5 -exec    -ok    rm {} \; <br>=================================================<br>查询当天修改过的文件<br>[root@book class]# find    ./    -mtime    -1    -type f    -exec    ls -l    {} \; <br>=================================================<br>查询文件并询问是否要显示<br>[root@book class]# find    ./    -mtime    -1    -type f    -ok    ls -l    {} \;  <br>&lt; ls ... ./classDB.inc.php &gt; ? y<br>-rw-r--r--      1 cnscn      cnscn         13709    1月 12 12:22 ./classDB.inc.php<br>[root@book class]# find    ./    -mtime    -1    -type f    -ok    ls -l    {} \;  <br>&lt; ls ... ./classDB.inc.php &gt; ? n<br>[root@book class]# =================================================<br>查询并交给awk去处理<br>[root@book class]# who    |    awk    '{print $1&quot;\t&quot;$2}'<br>cnscn     pts/0 =================================================<br>awk---grep---sed [root@book class]# df    -k |    awk '{print $1}' |    grep    -v    'none' |    sed    s&quot;/\/dev\///g&quot;<br>文件系统<br>sda2<br>sda1<br>[root@book class]# df    -k |    awk '{print $1}' |    grep    -v    'none'<br>文件系统<br>/dev/sda2<br>/dev/sda1<br><br><br>1)在/tmp中查找所有的*.h，并在这些文件中查找“SYSCALL_VECTOR&quot;，最后打印出所有包含&quot;SYSCALL_VECTOR&quot;的文件名 A) find    /tmp    -name    &quot;*.h&quot;    | xargs    -n50    grep SYSCALL_VECTOR<br>B) grep    SYSCALL_VECTOR    /tmp/*.h | cut     -d':'    -f1| uniq &gt; filename<br>C) find    /tmp    -name &quot;*.h&quot;    -exec grep &quot;SYSCALL_VECTOR&quot;    {}    \; -print <br>2)find / -name filename -exec rm -rf {} \;<br>     find / -name filename -ok rm -rf {} \; <br>3)比如要查找磁盘中大于3M的文件：<br>find . -size +3000k -exec ls -ld {} ; <br>4)将find出来的东西拷到另一个地方<br>find *.c -exec cp '{}' /tmp ';' 如果有特殊文件，可以用cpio，也可以用这样的语法：<br>find dir -name filename -print | cpio -pdv newdir <br>6)查找2004-11-30 16:36:37时更改过的文件<br># A=`find ./ -name &quot;*php&quot;` |    ls -l --full-time $A 2&gt;/dev/null | grep &quot;2004-11-30 16:36:37<br>二、linux下find命令的用法<br>1. 基本用法：<br>      find / -name 文件名      find ver1.d ver2.d -name '*.c' -print    查找ver1.d,ver2.d *.c文件并打印      find . -type d -print 从当前目录查找，仅查找目录，找到后，打印路径名。可用于打印目录结构。<br>2. 无错误查找：<br>      find / -name access_log 2 &gt;/dev/null<br>3. 按尺寸查找：<br>      find / -size 1500c （查找1,500字节大小的文件，c表示字节）<br>      find / -size +1500c （查找大于1,500字节大小的文件，+表示大于）    <br>      find / -size +1500c （查找小于1,500字节大小的文件，-表示小于）    <br>4. 按时间：<br>      find / -amin n 最后n分钟 <br>      find / -atime n 最后n天<br>      find / -cmin n 最后n分钟改变状态<br>      find / -ctime n 最后n天改变状态<br>5. 其它：<br>      find / -empty 空白文件、空白文件夹、没有子目录的文件夹<br>      find / -false 查找系统中总是错误的文件<br>      find / -fstype type 找存在于指定文件系统的文件，如type为ext2<br>      find / -gid n 组id为n的文件<br>      find / -group gname 组名为gname的文件<br>      find / -depth n 在某层指定目录中优先查找文件内容<br>      find / -maxdepth levels 在某个层次目录中按递减方式查找<br>6. 逻辑<br>      -and 条件与 -or 条件或<br>7. 查找字符串<br>      find . -name '*.html' -exec grep 'mailto:'{}<img src ="http://www.cppblog.com/niewenlong/aggbug/213807.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-06-26 18:21 <a href="http://www.cppblog.com/niewenlong/archive/2016/06/26/213806.html#213807#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Debian 6(squeeze)安装配置Nginx + PHP5 + PHP-fpm + MySQL环境</title><link>http://www.cppblog.com/niewenlong/archive/2016/06/26/213797.html#213805</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 26 Jun 2016 05:09:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2016/06/26/213797.html#213805</guid><description><![CDATA[根据网上教程折腾<br>到最后在终端执行 php -v<br>PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10) <br>Copyright (c) 1997-2012 The PHP Group<br>Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies<br>with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans<br>不知道LAMP搭建成功没有。搭建成功后如何测试编写后的PHP网页文件。<br>原代码编译安装eAccelerator<br>执行./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config<br>显示结果为configure: error: Cannot find php-config. Please use --with-php-config=PATH<br><br><br>以下为LAMP网上教程<br>==============================================<br>在 Debian 上搭建 PHP 环境其实很简单。用几个命令就行。<br>更新 apt<br>apt-get update<br>升级软件<br>apt-get upgrade<br>安装 阿帕奇<br>apt-get install apache2<br>安装 mysql<br>apt-get install mysql-server mysql-client<br>安装 nginx<br>apt-get install nginx<br>安装 lighttpd<br>apt-get install lighttpd<br>安装 php 以及插件（你自己可以按需增删） 这里已经安装了 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<br>安装 eAccelerator<br><br>tar xvjf eaccelerator-0.9.5.2.tar.bz2<br>cd eaccelerator-0.9.5.2<br>phpize<br>./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config<br>make<br>make install<br>vim /etc/php5/cli/php.ini 然后在里面加入<br><br>extension=eaccelerator.so<br><br>eaccelerator.shm_size=&quot;16&quot;<br><br>eaccelerator.cache_dir=&quot;/tmp/eaccelerator&quot;<br>＃ 这里是缓存文件夹，请在 /tmp 下新建一个，设置权限 chmod 777 /tmp/eaccelerator<br>eaccelerator.enable=&quot;1&quot;<br><br>eaccelerator.optimizer=&quot;1&quot;<br><br>eaccelerator.check_mtime=&quot;1&quot;<br><br>eaccelerator.debug=&quot;0&quot;<br><br>eaccelerator.filter=&quot;&quot;<br><br>eaccelerator.shm_max=&quot;0&quot;<br><br>eaccelerator.shm_ttl=&quot;0&quot;<br><br>eaccelerator.shm_prune_period=&quot;0&quot;<br><br>eaccelerator.shm_only=&quot;0&quot;<br><br>eaccelerator.compress=&quot;1&quot;<br><br>eaccelerator.compress_level=&quot;9&quot;<br>最后重启 apache<br>php -v 来查看是不是已经安装完成<br><br>安装Squid<br>apt-get install squid<br><br>至此位置 php 服务器相关软件服务基本都安装全了，你可以按照自己的需求增删。当然你也可以不用 mysql 而使用 postgreSQL 数据库。<br>apt-get install postgresql<br>这里你也可以用 xcache，xdebug等插件<br>安装 xdebug<br>apt-get install php5-xdebug<br>安装 xcache<br>apt-get install php5-xcache<br><br>关于配置，有时间再加上<br><br>备注：<br>这里有个问题，当我安装完上述一系列东西以后，我发现我无法运行 php 程序，为什么呢？原来 apache无法启动了，说是占领了 80 端口，后来发现是 lighttpd 占领了 80 端口<br>于是运行<br>sudo ps -e 查看了当时的进程<br>sudo kill &lt;lighttpd的PID号&gt; 一下。然后就能运行 apache<br>但是仍旧无法执行 php 文件，我在终端执行<br>sudo php -v 发行提示错误说 无法加载 Xcache 模块因为已经加在了 eAccelerator 了<br>那么就关闭 xcache呗。如何关闭呢？简单！<br>cd /etc/php5/conf.d<br>移动到这个文件夹。里面全是模块的配置文件<br>sudo vim xcache.ini<br>把<br>zend_extension = /usr/lib/php5/20060613/xcache.so 注释掉<br>#zend_extension = /usr/lib/php5/20060613/xcache.so<br>然后运行<br>php -v 一切ok了<br><br>****@****:/etc/php5/conf.d$ php -v<br>PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 20:09:03)<br>Copyright (c) 1997-2008 The PHP Group<br>Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies<br>with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator<br>with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans<br>with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH<img src ="http://www.cppblog.com/niewenlong/aggbug/213805.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2016-06-26 13:09 <a href="http://www.cppblog.com/niewenlong/archive/2016/06/26/213797.html#213805#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>