﻿<?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/</link><description /><language>zh-cn</language><lastBuildDate>Sat, 04 Apr 2026 04:26:02 GMT</lastBuildDate><pubDate>Sat, 04 Apr 2026 04:26:02 GMT</pubDate><ttl>60</ttl><item><title>Linux下删除大量文件</title><link>http://www.cppblog.com/niewenlong/archive/2021/07/11/217736.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 11 Jul 2021 07:07:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2021/07/11/217736.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/217736.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2021/07/11/217736.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/217736.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/217736.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Linux下删除大量文件主要参考了http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux首先建立50万个文件➜  test   for i in $(seq 1 500000);do echo text &gt;&gt;$i.txt;done                 1. &nbsp; rm➜...&nbsp;&nbsp;<a href='http://www.cppblog.com/niewenlong/archive/2021/07/11/217736.html'>阅读全文</a><img src ="http://www.cppblog.com/niewenlong/aggbug/217736.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/niewenlong/" target="_blank">聂文龙</a> 2021-07-11 15:07 <a href="http://www.cppblog.com/niewenlong/archive/2021/07/11/217736.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>禁止 .mysql_history</title><link>http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 25 Mar 2018 10:18:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215570.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215570.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215570.html</trackback:ping><description><![CDATA[<ol start="1" style="margin: 0px 0px 24px; padding: 0px; box-sizing: border-box; list-style-position: initial; list-style-image: initial; border-top: none; border-right: 1px solid #e7e5dc; border-bottom: none; border-left: none; border-image: initial; background-color: #ffffff; color: #5c5c5c; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; font-size: 12px;"><li class="alt" style="margin-top: 8px; margin-left: 40px; box-sizing: border-box; list-style-type: decimal; list-style-image: initial; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid #6ce26c; border-image: initial; color: inherit; line-height: 18px; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; color: #000000; background-color: inherit;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; background-color: inherit;">$find&nbsp;/&nbsp;-name&nbsp;.mysql_history&nbsp;&nbsp;&nbsp;&nbsp;</span></span></li><li class="" style="margin-top: 8px; margin-left: 40px; box-sizing: border-box; list-style-type: decimal; list-style-image: initial; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid #6ce26c; border-image: initial; background-color: #f8f8f8; line-height: 18px; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; color: #000000; background-color: inherit;">或者进入主目录：&nbsp;&nbsp;</span></li><li class="alt" style="margin-top: 8px; margin-left: 40px; box-sizing: border-box; list-style-type: decimal; list-style-image: initial; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid #6ce26c; border-image: initial; color: inherit; line-height: 18px; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; color: #000000; background-color: inherit;">$cd&nbsp;$HOME&nbsp;&nbsp;</span></li><li class="" style="margin-top: 8px; margin-left: 40px; box-sizing: border-box; list-style-type: decimal; list-style-image: initial; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid #6ce26c; border-image: initial; background-color: #f8f8f8; line-height: 18px; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; color: #000000; background-color: inherit;">$find&nbsp;.&nbsp;-name&nbsp;.mysql_history&nbsp;&nbsp;</span></li></ol><ol start="1" style="margin: 0px 0px 24px; padding: 0px; box-sizing: border-box; list-style-position: initial; list-style-image: initial; border-top: none; border-right: 1px solid #e7e5dc; border-bottom: none; border-left: none; border-image: initial; background-color: #ffffff; color: #5c5c5c; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; font-size: 12px;"><li class="alt" style="margin-top: 8px; margin-left: 40px; box-sizing: border-box; list-style-type: decimal; list-style-image: initial; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid #6ce26c; border-image: initial; color: inherit; line-height: 18px; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; color: #000000; background-color: inherit;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; border: none; background-color: inherit;">$cat&nbsp;/dev/null&nbsp;&gt;&nbsp;~/.mysql_history&nbsp;&nbsp;</span></span></li></ol><span style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><br /><br /><br /></span><span style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun;">通常情况下 ，数据库管理员都是很神秘的，因为他们经常几个语句就搞定了数据库查询缓慢的问题，让人们非常佩服，但是熟悉mysql的朋友都知道mysql 在当前用户的家目录下会有个 .mysql_history 文件，其中保存着过去执行过的mysql命令，通过这个命令你就能知道他刚才执行了什么语句。这也是我熟悉mysql的学习的一个有力工具。</span><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>但是当你若是一个数据库管理员时，你就要考虑下这个问题了。因为你执行的某些语句是不希望别人看到的。例如定期修改数据库超级用户root的密码。 这样别人只要有此文件的读取权限，那么数据库就没有安全可言了。 怎么办 可以通过设置 关闭这个。</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>方法如下&nbsp;</span><wbr></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>首先 在/etc/profile 中添加</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>export MYSQL_HISTFILE=/dev/null</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>保存退出后 &nbsp;</span><wbr></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>在terminal 中执行</span>&nbsp;<span>ln -s /dev/null &nbsp;</span><wbr>&nbsp;<span>~/.mysql_history</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>将现有的文件删除</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>rm ~/.mysql_history &nbsp;</span><wbr></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>ls -al &nbsp;</span><wbr><span>~/lrwxrwxrwx. &nbsp;</span><wbr><span>1 root root &nbsp;</span><wbr>&nbsp;&nbsp;<wbr>&nbsp;&nbsp;<wbr>&nbsp;<span>9 1月 &nbsp;</span><wbr>&nbsp;<span>3 23:14 .mysql_history -&gt; /dev/null</span></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"></div><div style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun; background-color: #000000;"><span>至此，以后 &nbsp;</span><wbr>&nbsp;<span>你在mysql中执行的命令就不会被记录了。</span></div><span style="color: #9a9796; font-family: &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, SimSun;"><br /><br /></span><img src ="http://www.cppblog.com/niewenlong/aggbug/215570.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:18 <a href="http://www.cppblog.com/niewenlong/archive/2018/03/25/215570.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Debian 系统退出时清除 相关记录</title><link>http://www.cppblog.com/niewenlong/archive/2018/03/25/215569.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sun, 25 Mar 2018 10:10:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/03/25/215569.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215569.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/03/25/215569.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215569.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215569.html</trackback:ping><description><![CDATA[<p>Last login: Sun Mar 25 17:44:20 on ttys003</p> <p>MACdeiMac-2:~ MAC$ sudo -s</p> <p>Password:</p> <p>bash-3.2# ssh -p 3389 xxx.xxx.xxx.xxx</p> <p>Linux localhost 3.2.0-4-amd64 #1 SMP Debian 3.2.88-1 x86_64</p> <p><br /></p> <p>The programs included with the Debian GNU/Linux system are free software;</p> <p>the exact distribution terms for each program are described in the</p> <p>individual files in /usr/share/doc/*/copyright.</p> <p><br /></p> <p>Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</p> <p>permitted by applicable law.</p> <p>Last login: Sun Mar 25 16:41:05 2018 from xxx.xxx.xxx.xxx</p> <p><span style="color: red;">root@localhost:~# cat /etc/skel/.bash_logout&nbsp;</span></p> <p># ~/.bash_logout: executed by bash(1) when login shell exits.</p> <p><br /></p> <p># when leaving the console clear the screen to increase privacy</p> <p><br /></p> <p>if [ "$SHLVL" = 1 ]; then</p> <p>&nbsp; &nbsp; [ -x /usr/bin/clear_console ] &amp;&amp; /usr/bin/clear_console -q</p> <p>fi</p> <p># add by me remove history files when logout.</p> <p>rm -f $HOME/.bash_history</p> <p>root@localhost:~# cat /etc/skel/.bash</p> <p>.bash_logout&nbsp;.bashrc&nbsp; &nbsp; &nbsp; &nbsp;</p> <p><span style="color: red;">root@localhost:~# cat /etc/skel/.bashrc&nbsp;</span></p> <p># ~/.bashrc: executed by bash(1) for non-login shells.</p> <p># see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)</p> <p># for examples</p> <p><br /></p> <p># If not running interactively, don't do anything</p> <p>case $- in</p> <p>&nbsp; &nbsp; *i*) ;;</p> <p>&nbsp; &nbsp; &nbsp; *) return;;</p> <p>esac</p> <p><br /></p> <p># don't put duplicate lines or lines starting with space in the history.</p> <p># See bash(1) for more options</p> <p>HISTCONTROL=ignoreboth</p> <p><br /></p> <p># append to the history file, don't overwrite it</p> <p>shopt -s histappend</p> <p><br /></p> <p># for setting history length see HISTSIZE and HISTFILESIZE in bash(1)</p> <p><span style="background-color: yellow; color: red;">HISTSIZE=1000</span></p> <p><span style="background-color: yellow; color: red;">HISTFILESIZE=2000</span></p> <p><br /></p> <p># check the window size after each command and, if necessary,</p> <p># update the values of LINES and COLUMNS.</p> <p>shopt -s checkwinsize</p> <p><br /></p> <p># If set, the pattern "**" used in a pathname expansion context will</p> <p># match all files and zero or more directories and subdirectories.</p> <p>#shopt -s globstar</p> <p><br /></p> <p># make less more friendly for non-text input files, see lesspipe(1)</p> <p>#[ -x /usr/bin/lesspipe ] &amp;&amp; eval "$(SHELL=/bin/sh lesspipe)"</p> <p><br /></p> <p># set variable identifying the chroot you work in (used in the prompt below)</p> <p>if [ -z "${debian_chroot:-}" ] &amp;&amp; [ -r /etc/debian_chroot ]; then</p> <p>&nbsp; &nbsp; debian_chroot=$(cat /etc/debian_chroot)</p> <p>fi</p> <p><br /></p> <p># set a fancy prompt (non-color, unless we know we "want" color)</p> <p>case "$TERM" in</p> <p>&nbsp; &nbsp; xterm-color) color_prompt=yes;;</p> <p>esac</p> <p><br /></p> <p># uncomment for a colored prompt, if the terminal has the capability; turned</p> <p># off by default to not distract the user: the focus in a terminal window</p> <p># should be on the output of commands, not on the prompt</p> <p>#force_color_prompt=yes</p> <p><br /></p> <p>if [ -n "$force_color_prompt" ]; then</p> <p>&nbsp; &nbsp; if [ -x /usr/bin/tput ] &amp;&amp; tput setaf 1 &gt;&amp;/dev/null; then</p> <p>	# We have color support; assume it's compliant with Ecma-48</p> <p>	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such</p> <p>	# a case would tend to support setf rather than setaf.)</p> <p>	color_prompt=yes</p> <p>&nbsp; &nbsp; else</p> <p>	color_prompt=</p> <p>&nbsp; &nbsp; fi</p> <p>fi</p> <p><br /></p> <p>if [ "$color_prompt" = yes ]; then</p> <p>&nbsp; &nbsp; PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '</p> <p>else</p> <p>&nbsp; &nbsp; PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '</p> <p>fi</p> <p>unset color_prompt force_color_prompt</p> <p><br /></p> <p># If this is an xterm set the title to user@host:dir</p> <p>case "$TERM" in</p> <p>xterm*|rxvt*)</p> <p>&nbsp; &nbsp; PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"</p> <p>&nbsp; &nbsp; ;;</p> <p>*)</p> <p>&nbsp; &nbsp; ;;</p> <p>esac</p> <p><br /></p> <p># enable color support of ls and also add handy aliases</p> <p>if [ -x /usr/bin/dircolors ]; then</p> <p>&nbsp; &nbsp; test -r ~/.dircolors &amp;&amp; eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"</p> <p>&nbsp; &nbsp; alias ls='ls --color=auto'</p> <p>&nbsp; &nbsp; #alias dir='dir --color=auto'</p> <p>&nbsp; &nbsp; #alias vdir='vdir --color=auto'</p> <p><br /></p> <p>&nbsp; &nbsp; #alias grep='grep --color=auto'</p> <p>&nbsp; &nbsp; #alias fgrep='fgrep --color=auto'</p> <p>&nbsp; &nbsp; #alias egrep='egrep --color=auto'</p> <p>fi</p> <p><br /></p> <p># some more ls aliases</p> <p>#alias ll='ls -l'</p> <p>#alias la='ls -A'</p> <p>#alias l='ls -CF'</p> <p><br /></p> <p># Alias definitions.</p> <p># You may want to put all your additions into a separate file like</p> <p># ~/.bash_aliases, instead of adding them here directly.</p> <p># See /usr/share/doc/bash-doc/examples in the bash-doc package.</p> <p><br /></p> <p>if [ -f ~/.bash_aliases ]; then</p> <p>&nbsp; &nbsp; . ~/.bash_aliases</p> <p>fi</p> <p><br /></p> <p># enable programmable completion features (you don't need to enable</p> <p># this, if it's already enabled in /etc/bash.bashrc and /etc/profile</p> <p># sources /etc/bash.bashrc).</p> <p>if ! shopt -oq posix; then</p> <p>&nbsp;if [ -f /usr/share/bash-completion/bash_completion ]; then</p> <p>&nbsp; &nbsp; . /usr/share/bash-completion/bash_completion</p> <p>&nbsp;elif [ -f /etc/bash_completion ]; then</p> <p>&nbsp; &nbsp; . /etc/bash_completion</p> <p>&nbsp;fi</p> <p>fi</p> <p>root@localhost:~# vi /etc/skel/.bashrc&nbsp;</p> <p>root@localhost:~#&nbsp;</p><img src ="http://www.cppblog.com/niewenlong/aggbug/215569.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:10 <a href="http://www.cppblog.com/niewenlong/archive/2018/03/25/215569.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenSSL 编译参考</title><link>http://www.cppblog.com/niewenlong/archive/2018/02/28/215537.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Tue, 27 Feb 2018 17:40:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/02/28/215537.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215537.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/02/28/215537.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215537.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215537.html</trackback:ping><description><![CDATA[<div>openssl&nbsp; 别人编译的下载 ：https://www.npcglib.org/~stathis/blog/precompiled-openssl/<br /><br /><div>http://blog.csdn.net/liang19890820/article/details/51658574<br /><br />http://blog.csdn.net/ljttianqin/article/details/72978612</div><div clearfix"="" style="margin: 0px; box-sizing: border-box; outline: 0px; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><h2>OpenSSL编译(Win7,64位,VS2010)</h2></div><div id="content" mod-cs-content="" text-content=""  clearfix"="" style="margin: 7px 0px 10px; box-sizing: border-box; outline: 0px; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; background-color: #ffffff; overflow: hidden; line-height: 1.5;"><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">系统环境</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">操作系统：Windows 7专业版（SP1）</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">系统类型：64位操作系统</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">编译环境</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">Microsoft Visual Studio 2010</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">下载</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">OpenSSL</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">下载地址：<a href="http://www.openssl.org/source" target="_blank" style="color: #1e375a; outline: 0px; margin: 0px; padding: 0px; box-sizing: border-box; text-decoration-line: none;">http://www.openssl.org/source</a></p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">ActivePerl</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">下载地址：<a href="http://downloads.activestate.com/ActivePerl" target="_blank" style="color: #1e375a; outline: 0px; margin: 0px; padding: 0px; box-sizing: border-box; text-decoration-line: none;">http://downloads.activestate.com/ActivePerl</a></p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">安装：没啥好说的</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">编译步骤</p><ol style="margin: 0px 0px 0px 35px; padding: 0px; box-sizing: border-box; list-style: none; outline: 0px; font-family: tahoma, helvetica, arial;"><li style="margin: 0px; padding: 0px; box-sizing: border-box; list-style: decimal; outline: 0px;"><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">启动Microsoft Visual Studio 2010 =&gt; Microsoft Visual Studio 2010 =&gt;Visual Studio x64 Cross Tools Command Prompt (2010)</p></li><li style="margin: 0px; padding: 0px; box-sizing: border-box; list-style: decimal; outline: 0px;"><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">cd 到OpenSSL的下载路径例如（cd D:\adobe_study\openssl-1.0.1e)</p></li><li style="margin: 0px; padding: 0px; box-sizing: border-box; list-style: decimal; outline: 0px;"><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">按照OpenSSL下载目录中的"INSTALL.W64"文件（使用文本工具打开，例如UE）里提示的命令(如下)逐步进行操作。</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">&gt; perl Configure VC-WIN64A</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">&gt; ms\do_win64a</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">&gt; nmake -f ms\ntdll.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">&gt; cd out32dll</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; color: #4f4f4f; line-height: 26px; min-height: 26px;">&gt; ..\ms\test</p></li></ol><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">补充</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">编译Debug版本(xxxMDd.lib)</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp; &nbsp; a.修改ms\do_win64a&nbsp;</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl util\mk1mf.pl VC-WIN64A &gt;ms\nt.mak =&gt;&nbsp;perl util\mk1mf.pl debug VC-WIN64A &gt;ms\nt.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl util\mk1mf.pl dll VC-WIN64A &gt;ms\ntdll.mak&nbsp;=&gt;&nbsp;perl util\mk1mf.pl debug dll VC-WIN64A &gt;ms\ntdll.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;b.修改ms\ntdll.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;SSL=ssleay32 =&gt;&nbsp;SSL=ssleay32MDd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;CRYPTO=libeay32&nbsp;=&gt;&nbsp;CRYPTO=libeay32MDd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;c.修改ms\libeay32.def &nbsp;&#8212;&#8212;&nbsp;LIBRARY LIBEAY32 =&gt;&nbsp;LIBRARY LIBEAY32MDd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;d.修改ms\ssleay32.def &nbsp;&#8212;&#8212; LIBRARY SSLEAY32 =&gt;&nbsp;LIBRARY SSLEAY32MDd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;e.运行&nbsp;&gt; nmake -f ms\ntdll.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">2. &nbsp;编译Debug版本(xxxMTd.lib)<br style="box-sizing: border-box; outline: 0px;" /></p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;a.修改ms\nt.mak</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSL=ssleay32 =&gt;&nbsp;SSL=ssleay32MTd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CRYPTO=libeay32 =&gt;&nbsp;CRYPTO=libeay32MTd</p><p style="margin: 0px; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; line-height: 26px; min-height: 26px; text-align: justify; font-family: tahoma, helvetica, arial;">&nbsp;&nbsp;&nbsp;&nbsp;b.运行&nbsp;&gt; nmake -f ms\nt.mak<br /><br /><br /></p></div><div></div></div><img src ="http://www.cppblog.com/niewenlong/aggbug/215537.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-02-28 01:40 <a href="http://www.cppblog.com/niewenlong/archive/2018/02/28/215537.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C语言中字符串如何转换为二进制、八进制、十进制、十六进制</title><link>http://www.cppblog.com/niewenlong/archive/2018/01/30/215489.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Mon, 29 Jan 2018 20:55:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/01/30/215489.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215489.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/01/30/215489.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215489.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215489.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#include&nbsp;&lt;stdio.h&gt;<br />#include&nbsp;&lt;stdlib.h&gt;<br />#include&nbsp;&lt;<span style="color: #0000FF; ">string</span>.h&gt;<br />#include&nbsp;&lt;locale.h&gt;<br /><span style="color: #0000FF; ">int</span>&nbsp;main()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">int</span>&nbsp;i,v;<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;bs[33];<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;b[33];<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;hs[9];<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;h[9];<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;s[4];<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">char</span>&nbsp;*e;<br />&nbsp;<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;十进制整数转二进制串；</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;i=1024;<br />&nbsp;&nbsp;&nbsp;&nbsp;ltoa(i,b,2);<br />&nbsp;&nbsp;&nbsp;&nbsp;sprintf(bs,"%032s",b);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("i=%d,bs=%s\n",i,bs);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;十进制整数转十六进制串；</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;i=1024;<br />&nbsp;&nbsp;&nbsp;&nbsp;ltoa(i,h,16);<br />&nbsp;&nbsp;&nbsp;&nbsp;sprintf(hs,"%08s",h);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("i=%d,hs=%s\n",i,hs);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;十六进制字符串转成十进制数</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(hs,"00000400");<br />&nbsp;&nbsp;&nbsp;&nbsp;sscanf(hs,"%x",&amp;i);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("hs=%s,i=%d\n",hs,i);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;二进制字符串转化为十六进制字符串；</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(bs,"00000000000000000000010000000000");<br />&nbsp;&nbsp;&nbsp;&nbsp;i=strtol(bs,&amp;e,2);<br />&nbsp;&nbsp;&nbsp;&nbsp;ltoa(i,h,16);<br />&nbsp;&nbsp;&nbsp;&nbsp;sprintf(hs,"%08s",h);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("bs=%s,hs=%s\n",bs,hs);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;二进制字符串转化为十进制数；</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(bs,"00000000000000000000010000000000");<br />&nbsp;&nbsp;&nbsp;&nbsp;i=strtol(bs,&amp;e,2);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("bs=%s,i=%d\n",bs,i);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;十六进制字符串转成二进制串</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(hs,"00000400");<br />&nbsp;&nbsp;&nbsp;&nbsp;sscanf(hs,"%x",&amp;i);<br />&nbsp;&nbsp;&nbsp;&nbsp;ltoa(i,b,2);<br />&nbsp;&nbsp;&nbsp;&nbsp;sprintf(bs,"%032s",b);<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("hs=%s,bs=%s\n",hs,bs);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;ASC\GBK字符串转十六进制串</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(s,"a汉");<br />&nbsp;&nbsp;&nbsp;&nbsp;i=0;<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">while</span>&nbsp;(1)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">if</span>&nbsp;(0==s[i])&nbsp;<span style="color: #0000FF; ">break</span>;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sprintf(hs+i*2,"%02X",(unsigned&nbsp;<span style="color: #0000FF; ">char</span>)s[i]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i++;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;setlocale(LC_ALL,"chs");<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("s=%s,hs=%s\n",s,hs);<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;十六进制字符串转成汉字（GBK）及字符(ASC)</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(hs,"61BABA");<br />&nbsp;&nbsp;&nbsp;&nbsp;i=0;<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">while</span>&nbsp;(1)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">if</span>&nbsp;(1!=sscanf(hs+i*2,"%2x",&amp;v))&nbsp;<span style="color: #0000FF; ">break</span>;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s[i]=(<span style="color: #0000FF; ">char</span>)v;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i++;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;s[i]=0;<br />&nbsp;&nbsp;&nbsp;&nbsp;printf("hs=%s,s=%s\n",hs,s);<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">return</span>&nbsp;0;<br />&nbsp;<br />}<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">i=1024,bs=00000000000000000000010000000000<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">i=1024,hs=00000400<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">hs=00000400,i=1024<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">bs=00000000000000000000010000000000,hs=00000400<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">bs=00000000000000000000010000000000,i=1024<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">hs=00000400,bs=00000000000000000000010000000000<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">s=a汉,hs=61BABA<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">hs=61BABA,s=a汉</span></div><img src ="http://www.cppblog.com/niewenlong/aggbug/215489.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-30 04:55 <a href="http://www.cppblog.com/niewenlong/archive/2018/01/30/215489.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Poco介绍及编译</title><link>http://www.cppblog.com/niewenlong/archive/2018/01/16/215475.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Tue, 16 Jan 2018 15:05:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/01/16/215475.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215475.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/01/16/215475.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215475.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215475.html</trackback:ping><description><![CDATA[<h1><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Poco C++库是：</span></h1><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">一系列C++类库，类似Java类库，.Net框架，Apple的Cocoa;</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">侧重于互联网时代的网络应用程序</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">使用高效的，现代的标准ANSI/ISO C++，并基于STL</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">高可移值性，并可在多个平台下可用</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">开源，并使用Boost Software License发布</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">不管是否商用，都完全免费</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t1" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Poco库概览</span></h1><p style="box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal;"></p></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t2" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">特性：</span></h1></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">DynamicAny与Any类</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Cache框架</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">基于OpenSSL的密码系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">日期，时间类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">事件和通知框架</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">FTP客户端</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">跨平台的文件系统类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">HTML表单类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">HTTP客户端和服务端（支持SSL），C++ 服务器页面编译器</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">日志框架</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">多线程框架（线程池，活动对象，工作队列等）</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">POP3客户端类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">跨平台，一次编写，多平台编译和运行</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">进程管理和进程间通信类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">反射框架</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">基于PCRE的正则表达式</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">SMTP客户端类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">数据库访问类库（SQLite,MySQL, ODBC)</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">支持SSL/TLS，基于OpenSSL</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">动态类库加载</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">先进的内存和指针管理（Buffer, Pool）</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Socket类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">网络数据流类库，支持Base64,HexBinary编解码，压缩等等</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">字符串格式化和其它字符串工具类库</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">TCP服务器框架（多线程）</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">文本编码和转换</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Tuples</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">URI支持</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">支持UTF8和Unicode编码</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">UUID生成器</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">XML生成和解析器</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Zip文件操作类库</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t3" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Poco的使命</span></h1><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Poco是一个强大的类库，并易于构建自己的应用程序</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Poco帮助你创建跨平台的应用程序（一次编写，多平台编译和运行）</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">模块化和可扩展，可应用于嵌入式到企业级程序</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">提供全面，易懂的编程接口</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">使用C++语言，快速且高效</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Poco崇尚简易</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">在设计，代码风格和文档上保持一致</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Poco强调代码质量，包括可读性，综合性，一致性，编码风格和可测试性</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Poco使得C++编程更加容易</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t4" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">指导方针</span></h1><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">高度关注代码质量，编码风格，一致性，可读性</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">高度关注测试</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">注重实用性</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">基于现有的，可靠的组件开发</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t5" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">版本历史</span></h1></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Summer 2004: G&#252;nter Obiltschnig started development</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">February 2005: First release on SourceForge</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">(Release 0.91 under Sleepycat license)</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">May 2005: First contributions by Aleksandar Fabijanic</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">January 2006: Release 1.0</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">March 2006: Release 1.1</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">July 2006: Moved to Boost license, POCO Community Website</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">August 2006: Release 1.2</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">May 2007: Release 1.3</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">July 2010: Stable Release 1.3.7,</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">about 20 contributors, used in 100s of projects</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t6" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">支持平台</span></h1></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Microsoft Windows</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Linux</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Mac OS X</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">HP-UX, Solaris, AIX*</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Embedded Linux (uClibc, glibc)</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">iOS</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">Windows Embedded CE</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">QNX</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t7" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Poco应用场景</span></h1><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">创建自动化的中间件和设备</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">工业自动化和工业设备</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">流量控制系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">健康系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">测量，数据收集和测试系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">消费电子产品和家庭自动化产品</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">测量</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">航空交通管理系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">VoIP</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">票务和入口控制系统</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">包装应用程序</li></ul></div><div style="box-sizing: border-box; margin: 0px; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"><h1><a name="t8" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Poco的优势</span></h1><ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style-position: initial; list-style-image: initial;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">全面的，完整的C++框架，可减少开发工作，快速让产品走向市场</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">易学易使用，以及相当多的示例代码和良好的文档</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">原生的C++代码，性能优秀，低内存占用</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">平台无关，一处编写，跨平台编译和运行<ul style="box-sizing: border-box; margin: 0px 0px 0px 30px; padding: 0px; list-style: disc;"><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">大多数情况下，可以开发机上完成开发和调试工作</li><li style="box-sizing: border-box; margin: 0px 0px 1em; padding: 0px; list-style: disc;">可以非常容易的迁移到新平台</li></ul></li></ul></div><p style="box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;">&nbsp;</p><h1><a name="t9" style="box-sizing: border-box; background: transparent; color: rgb(79, 161, 219); margin: 0px; padding: 0px; outline: 0px;"></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">编译</span></h1><p style="box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; color: #454545; font-size: 16px; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;"></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">以 vs2008 为例:</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">Poco 根目录下有</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">build_vs90.cmd<br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">buildwin.cmd<br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">这两个批处理文件, 我们得修改一下它们</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">把build_vs90.cmd 修改为以下内容:</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">@echo off<br style="box-sizing: border-box;" />if defined VS90COMNTOOLS (<br style="box-sizing: border-box;" />call "%VS90COMNTOOLS%\vsvars32.bat")<br style="box-sizing: border-box;" />buildwin 90 build all both Win32 samples<br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">如果你不需要 &nbsp;NetSSL_OpenSSL 和&nbsp;<a href="http://lib.csdn.net/base/mysql" title="MySQL知识库" target="_blank" style="box-sizing: border-box; background: transparent; color: #df3434; text-decoration-line: none; margin: 0px; padding: 0px; font-weight: bold; outline: 0px;">MySQL</a>&nbsp;&nbsp; ,此时保存后就双击它就行了. 它会自动编译好各种库.<br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">如果你要NetSSL_OpenSSL 这个库 你必须:</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">在buildwin.cmd 中的38行 设置&nbsp;openssl 的路径, 它默认在C:\OpenSSL. 可以修改为 你的路径.</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">如果你要 Poco 中的&nbsp;MySQL 库 你还得安装. Mysql</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">关于 &nbsp;OpenSSL 和 Mysql &nbsp;库的的安装包</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">OpenSSL:</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 26px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">在这里下载一个安装包</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 26px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><a href="http://slproweb.com/products/Win32OpenSSL.html" target="_blank" style="box-sizing: border-box; background: transparent; color: #336699; text-decoration-line: none; margin: 0px; padding: 0px; outline: 0px;">http://slproweb.com/products/Win32OpenSSL.html</a></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 26px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">注意Light 是没有开发包的. 有x64 和x32 之分, &nbsp;x32 在64位windows下也可以完全正常工作. 如果要编译poco的话 我建议用x32.&nbsp;</p><span style="color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">不要下载d结尾的，d结尾的缺少部分dll，下载k结尾的例如Win32OpenSSL-1_0_2k.exe</span><br style="box-sizing: border-box; background-color: #ffffff; color: #333333; font-family: Arial;" /><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">mysql:</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><a href="http://www.mysql.com/downloads/connector/c/" target="_blank" style="box-sizing: border-box; background: transparent; color: #336699; text-decoration-line: none; margin: 0px; padding: 0px; outline: 0px;">http://www.mysql.com/downloads/connector/c/</a><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">这个也有x32 和x64之分.一般下载x32的就可以了.</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;"><br style="box-sizing: border-box;" /></p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">关于x32和x64 :</p><p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; line-height: 28px; word-wrap: break-word; word-break: normal; background-color: #ffffff; color: #333333; font-family: Arial;">Poco 默认是x32的, 所以我们的 OpensSSL &nbsp;和 Mysql 也必须使用 x32的.</p><img src ="http://www.cppblog.com/niewenlong/aggbug/215475.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-16 23:05 <a href="http://www.cppblog.com/niewenlong/archive/2018/01/16/215475.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>c++ 二进制输出</title><link>http://www.cppblog.com/niewenlong/archive/2018/01/07/215460.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sat, 06 Jan 2018 16:58:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/01/07/215460.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215460.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/01/07/215460.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215460.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215460.html</trackback:ping><description><![CDATA[<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;">有如下几种方法：<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
#include 〈iostream〉<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
#include 〈list〉  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
#include 〈bitset〉  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
using namespace std; <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
1.//递归输出二进制函数<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
void BinaryRecursion(int n)<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
int a;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
a=n%2;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
n=a;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
if (n==0)<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
return;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
else  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
BinaryRecursion(n);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈a;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
} <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
2.//使用容器<a href="https://www.baidu.com/s?wd=%E8%BD%AC%E6%8D%A2%E4%BA%8C%E8%BF%9B%E5%88%B6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnjIbnHbYPAD1myw-n1n40ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EPjTLPWRvPWD1" target="_blank" style="color: #3f88bf;">转换二进制</a>  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
void BinaryVector(int n)  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
int temp;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
temp=n;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
list〈int〉 L;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
while(temp!=0)  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
L.push_front(temp%2);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
temp=temp〉〉1;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
}  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
for (list〈int〉::iterator iter=L.begin();iter!=L.end();iter++ )  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈*iter;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈endl;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
} <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
3.//一般方法，32位，逐步与1做与运算。  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
void Binarycout(int n)  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
for (int i=31;i〉=0;i--)  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈((n〉〉i)&amp;1);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
}  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈endl;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
} <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
4.//使用bitset<a href="https://www.baidu.com/s?wd=%E8%BD%AC%E6%8D%A2%E4%BA%8C%E8%BF%9B%E5%88%B6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnjIbnHbYPAD1myw-n1n40ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EPjTLPWRvPWD1" target="_blank" style="color: #3f88bf;">转换二进制</a>  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
void BinaryBitset(int n)  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈bitset〈sizeof(int)*8〉(n)〈〈endl;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
}  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
int main()  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
{  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
int a=1045,b=2;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
int c;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
c=a+b;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈"BinaryRecursion(c)：";  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
BinaryRecursion(c);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈 BinaryVector(c);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈"Binarycout(c):";  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
Binarycout(c);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈"BinaryBitset(c):";  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
BinaryBitset(c);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
cout〈〈"BinaryChar(c):";  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
BinaryChar(c);  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
//cout〈 return 0;  <br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 20px 0px;" />
}</pre>
<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;"><br />
</pre>
<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;"><br />
</pre>
<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;"><br />
</pre>
<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;"><br />
</pre>
<pre id="best-content-2277186518" accuse="aContent"  mb-10"="" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Lantinghei SC&quot;, &quot;Microsoft YaHei&quot;, arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: #333333; min-height: 55px;"><span style="font-size: 14px; white-space: normal; background-color: #ffffff;">输出没有直接显示二进制的 ,能通过其他库函数转换一下</span><br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 15px 0px; font-size: 14px; white-space: normal;" />
<br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 15px 0px; font-size: 14px; white-space: normal;" />
<span style="font-size: 14px; white-space: normal; background-color: #ffffff;">int decimal = 200;</span><br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 15px 0px; font-size: 14px; white-space: normal;" />
<span style="font-size: 14px; white-space: normal; background-color: #ffffff;">char binary[255];</span><br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 15px 0px; font-size: 14px; white-space: normal;" />
<span style="font-size: 14px; white-space: normal; background-color: #ffffff;">itoa(decimal, binary, 2);</span><br style="content: &quot;&quot;; display: block; width: 700px; height: 0px; margin: 15px 0px; font-size: 14px; white-space: normal;" />
<span style="font-size: 14px; white-space: normal; background-color: #ffffff;">cout &lt;&lt; binary;</span></pre>
@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);<img src ="http://www.cppblog.com/niewenlong/aggbug/215460.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-07 00:58 <a href="http://www.cppblog.com/niewenlong/archive/2018/01/07/215460.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>protobuf map</title><link>http://www.cppblog.com/niewenlong/archive/2018/01/06/215459.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sat, 06 Jan 2018 10:09:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2018/01/06/215459.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215459.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2018/01/06/215459.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215459.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215459.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 读完protobuf一些文档，写点东西，权作记忆。https://github.com/google/protobuf/blob/master/CHANGES.txt：google发布了protobuf v3，为了pb更好用，更跨语言，他对protobuf v2做了以下change：&nbsp; &nbsp; &nbsp; 1. Removal of field presence logic fo...&nbsp;&nbsp;<a href='http://www.cppblog.com/niewenlong/archive/2018/01/06/215459.html'>阅读全文</a><img src ="http://www.cppblog.com/niewenlong/aggbug/215459.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-06 18:09 <a href="http://www.cppblog.com/niewenlong/archive/2018/01/06/215459.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MariaDB  密码认证无效的一个坑</title><link>http://www.cppblog.com/niewenlong/archive/2017/12/30/215453.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Sat, 30 Dec 2017 08:04:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2017/12/30/215453.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215453.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2017/12/30/215453.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215453.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215453.html</trackback:ping><description><![CDATA[<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">MariaDB root 账户默认使用了 UNIX_SOCKET 插件，只允许 root 用户连接，无需密码。&nbsp;</span>
<div><span style="background-color: #ffffff;"><br />
</span></div>
<div><span style="background-color: #ffffff;"><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; margin-top: 0px !important;" />
</span><span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">可以使用 root 用户连接后创建新用户或者执行：&nbsp;</span><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif;" />
<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">update mysql.user set plugin = '' where User='root';&nbsp;</span><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif;" />
<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">flush privileges;&nbsp;</span><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif;" />
<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">or&nbsp;</span><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif;" />
<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">update mysql.user set plugin = 'mysql_native_password' where User='root';&nbsp;</span><br style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; margin-bottom: 0px !important;" />
<span style="font-family: &quot;Helvetica Neue&quot;, &quot;Luxi Sans&quot;, &quot;DejaVu Sans&quot;, Tahoma, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, sans-serif; background-color: #ffffff;">flush privileges;</span>
@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
</div><img src ="http://www.cppblog.com/niewenlong/aggbug/215453.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-12-30 16:04 <a href="http://www.cppblog.com/niewenlong/archive/2017/12/30/215453.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>chromium .cipd_client 失败的解决办法</title><link>http://www.cppblog.com/niewenlong/archive/2017/12/20/215433.html</link><dc:creator>聂文龙</dc:creator><author>聂文龙</author><pubDate>Wed, 20 Dec 2017 05:39:00 GMT</pubDate><guid>http://www.cppblog.com/niewenlong/archive/2017/12/20/215433.html</guid><wfw:comment>http://www.cppblog.com/niewenlong/comments/215433.html</wfw:comment><comments>http://www.cppblog.com/niewenlong/archive/2017/12/20/215433.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/niewenlong/comments/commentRss/215433.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/niewenlong/services/trackbacks/215433.html</trackback:ping><description><![CDATA[<p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px; line-height: 24px;">chromium 代理完美解决办法</span><br style="box-sizing: border-box;" /></span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">#git的代理设置</span></p><span style="box-sizing: border-box; margin: 0px; padding: 0px; background-color: #ffffff; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">git config --global http.proxy http://127.0.0.1:1080<br style="box-sizing: border-box;" /></span><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">git config --global https.proxy https://127.0.0.1:1080</span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">#winhttp的代理设置</span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">netsh winhttp set proxy 127.0.0.1:1080</span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">#cipd_client项目来源与https://github.com/luci/luci-go/tree/master/cipd/client/cipd</span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; word-wrap: break-word; word-break: normal; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">使用的是</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">golong的net/http库访问http/https，可通过环境变量设置代理</span></p><span style="box-sizing: border-box; margin: 0px; padding: 0px; background-color: #ffffff; color: #333333; font-family: &quot;Microsoft YaHei&quot;; font-size: 22px; line-height: 31.4286px;">set HTTP_PROXY=http://127.0.0.1:1080<br style="box-sizing: border-box;" />set HTTPS_PROXY=https://127.0.0.1:1080</span><img src ="http://www.cppblog.com/niewenlong/aggbug/215433.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-12-20 13:39 <a href="http://www.cppblog.com/niewenlong/archive/2017/12/20/215433.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>