锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区成人网站,老司机亚洲精品影院无码,亚洲熟妇成人精品一区http://www.tkk7.com/yangjunwei/java瀛︿範zh-cnFri, 09 May 2025 14:21:23 GMTFri, 09 May 2025 14:21:23 GMT60docker 絎旇http://www.tkk7.com/yangjunwei/archive/2021/09/22/435978.html鏉ㄥ啗濞?/dc:creator>鏉ㄥ啗濞?/author>Wed, 22 Sep 2021 09:02:00 GMThttp://www.tkk7.com/yangjunwei/archive/2021/09/22/435978.htmlhttp://www.tkk7.com/yangjunwei/comments/435978.htmlhttp://www.tkk7.com/yangjunwei/archive/2021/09/22/435978.html#Feedback0http://www.tkk7.com/yangjunwei/comments/commentRss/435978.htmlhttp://www.tkk7.com/yangjunwei/services/trackbacks/435978.html涓嬭澆鐨刣ocker闀滃儚榛樿瀛樺偍璺緞鏄?var/lib/docker .鍏蜂綋鐨勯暅鍍忔枃浠跺氨鍦╟ontainers鏂囦歡澶逛腑
docker save -o d:/docker/zen.tar easysoft/zentao:15.5
docker run -d -p 80:80  \
        -e ADMINER_USER="admin" -e ADMINER_PASSWD="qqzj126" -e MYSQL_ROOT_PASSWORD=qqzj126  \
        -e BIND_ADDRESS="false" \
        -v /opt/data/zbox/:/opt/zbox/ \
        -v /opt/mysqldata:/var/lib/mysql  \
        --name zentao-server \
        easysoft/zentao:15.5
  docker logs -f 


]]>
鍚庡彴榪愯jar鍖呭茍杈撳嚭鏃ュ織http://www.tkk7.com/yangjunwei/archive/2021/06/01/435884.html鏉ㄥ啗濞?/dc:creator>鏉ㄥ啗濞?/author>Tue, 01 Jun 2021 05:56:00 GMThttp://www.tkk7.com/yangjunwei/archive/2021/06/01/435884.htmlhttp://www.tkk7.com/yangjunwei/comments/435884.htmlhttp://www.tkk7.com/yangjunwei/archive/2021/06/01/435884.html#Feedback0http://www.tkk7.com/yangjunwei/comments/commentRss/435884.htmlhttp://www.tkk7.com/yangjunwei/services/trackbacks/435884.html榪愯鍛戒護錛堟敞鎰忚礬寰勶級

java -jar /web/share-book.jar > /web/log.txt &
璇ュ懡浠ょ殑鎰忔濇槸錛氭墽琛宻hare-book.jar榪欎釜鏂囦歡錛屽茍涓旇緭鍑哄埌log.txt鏂囦歡錛?amp;琛ㄧず鍚庡彴榪愯

瑙e喅鏇存柊欏圭洰甯︽潵鐨勯綣侀噸鍚搷浣滐紝鍒涘緩2涓剼鏈?/p>

start.sh

#! /bin/bash
#娉ㄦ剰錛氬繀欏繪湁&璁╁叾鍚庡彴鎵ц錛屽惁鍒欐病鏈塸id鐢熸垚   jar鍖呰礬寰勪負緇濆璺緞
java -jar /web/share-book.jar > /web/log.txt &
 
# 灝唈ar鍖呭惎鍔ㄥ搴旂殑pid鍐欏叆鏂囦歡涓紝涓哄仠姝㈡椂鎻愪緵pid
echo $! > /web/pid.txt
stop.sh

#! /bin/bash
PID=$(cat /web/pid.txt)
kill -9 $PID

鍚姩欏圭洰錛?/start.sh

鍋滄欏圭洰錛?/stop.sh



]]>
HADOOP_HOME and hadoop.home.dir are unsethttp://www.tkk7.com/yangjunwei/archive/2021/04/19/435856.html鏉ㄥ啗濞?/dc:creator>鏉ㄥ啗濞?/author>Mon, 19 Apr 2021 01:45:00 GMThttp://www.tkk7.com/yangjunwei/archive/2021/04/19/435856.htmlhttp://www.tkk7.com/yangjunwei/comments/435856.htmlhttp://www.tkk7.com/yangjunwei/archive/2021/04/19/435856.html#Feedback0http://www.tkk7.com/yangjunwei/comments/commentRss/435856.htmlhttp://www.tkk7.com/yangjunwei/services/trackbacks/435856.html涓.闂鎻忚堪錛歸indows鏈湴璋冭瘯Hadoop紼嬪簭鏃舵姤閿?/span>
閿欒淇℃伅錛?br />
鍏跺師鍥犳槸闇瑕佸湪windows鏈湴鎼緩Hadoop鐜錛屼笅杞絯inutils鏂囦歡錛屽茍灝唄adoop-2.8.4鍖呭唴鐨刡in鏂囦歡鏇挎崲錛屽皢涓嬭澆鏂囦歡涓環adoop.dll鏀懼埌C錛歕Windows\System32涓?br /> 浜?瑙e喅榪囩▼濡備笅錛?br /> 1.涓嬭澆hadoop錛屽幓瀹樼綉涓嬭澆瀵瑰簲鐨刪adoop鐗堟湰錛屾垜鍦╨inux闆嗙兢鎼緩鐨勬槸hadoop-2.8.4錛屽洜姝ゅ皢hadoop-2.8.4涓嬭澆鍒皐indows鏈湴
https://www.jianshu.com/p/a65a95108620


]]>
浠巊it浠撳簱涓垹闄?idea鏂囦歡澶?/title><link>http://www.tkk7.com/yangjunwei/archive/2021/01/14/435773.html</link><dc:creator>鏉ㄥ啗濞?/dc:creator><author>鏉ㄥ啗濞?/author><pubDate>Thu, 14 Jan 2021 07:15:00 GMT</pubDate><guid>http://www.tkk7.com/yangjunwei/archive/2021/01/14/435773.html</guid><wfw:comment>http://www.tkk7.com/yangjunwei/comments/435773.html</wfw:comment><comments>http://www.tkk7.com/yangjunwei/archive/2021/01/14/435773.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yangjunwei/comments/commentRss/435773.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yangjunwei/services/trackbacks/435773.html</trackback:ping><description><![CDATA[<p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">濡傛灉涓嶉厤緗?gitignore鐨勬枃浠訛紝甯ush浠g爜鐨勬椂鍊欏氨浼氭妸涓鍐欎笉蹇呰鐨勬枃浠秔ush鍒拌繙紼嬩粨搴擄紝濡?idea鏂囦歡銆傚鏋滀笉灝忓績鍑虹幇姝ゆ枃浠跺湪榪滅▼浠撳簱鍙互閫氳繃涓涓嬫楠elete姝ゆ枃浠訛細</p><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">1.閰嶇疆.gitignore鏂囦歡(鏂板緩/緙栬緫錛?/p><pre style="box-sizing: border-box; outline: 0px; padding: 8px 16px 6px 56px; margin-top: 0px; margin-bottom: 24px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; border: none; line-height: 22px; background-color: #282c34; font-variant-ligatures: common-ligatures;"><code hljs="" bash"="" style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; padding: 8px; color: #abb2bf; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: normal; min-width: 94%; text-size-adjust: none; word-break: break-all; position: unset;"><span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">echo</span> <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">'.idea'</span> >> .gitignore</code></pre><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">2.灝?gitignore鏂囦歡涓婁紶鍒拌繙紼嬩粨搴?/p><pre style="box-sizing: border-box; outline: 0px; padding: 8px 16px 6px 56px; margin-top: 0px; margin-bottom: 24px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; border: none; line-height: 22px; background-color: #282c34; font-variant-ligatures: common-ligatures;"><code hljs="" sql"="" style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; padding: 8px; color: #abb2bf; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: normal; min-width: 94%; text-size-adjust: none; word-break: break-all; position: unset;">git pull git add .gitignore git <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;"><span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">commit</span> -m <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">'edit .gitignore'</span> git push origin master</span></code></pre><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">3.鍒犻櫎git鐨?idea鏂囦歡</p><pre style="box-sizing: border-box; outline: 0px; padding: 8px 16px 6px 56px; margin-top: 0px; margin-bottom: 24px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; border: none; line-height: 22px; background-color: #282c34; font-variant-ligatures: common-ligatures;"><code hljs="" brainfuck"="" style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; padding: 8px; color: #abb2bf; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: normal; min-width: 94%; text-size-adjust: none; word-break: break-all; position: unset;"><span style="box-sizing: border-box; outline: 0px; font-style: italic; font-size: inherit; overflow-wrap: normal; word-break: break-all;">git</span> <span style="box-sizing: border-box; outline: 0px; font-style: italic; font-size: inherit; overflow-wrap: normal; word-break: break-all;">rm</span> <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">-</span><span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">-</span><span style="box-sizing: border-box; outline: 0px; font-style: italic; font-size: inherit; overflow-wrap: normal; word-break: break-all;">cached</span> <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">-</span><span style="box-sizing: border-box; outline: 0px; font-style: italic; font-size: inherit; overflow-wrap: normal; word-break: break-all;">r</span> <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">.</span><span style="box-sizing: border-box; outline: 0px; font-style: italic; font-size: inherit; overflow-wrap: normal; word-break: break-all;">idea</span></code></pre><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">4.鍚屾鍒拌繙紼嬩粨搴?/p><pre style="box-sizing: border-box; outline: 0px; padding: 8px 16px 6px 56px; margin-top: 0px; margin-bottom: 24px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; border: none; line-height: 22px; background-color: #282c34; font-variant-ligatures: common-ligatures;"><code hljs="" sql"="" style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; padding: 8px; color: #abb2bf; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: normal; min-width: 94%; text-size-adjust: none; word-break: break-all; position: unset;">git <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;"><span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">commit</span> -m <span style="box-sizing: border-box; outline: 0px; font-size: inherit; overflow-wrap: normal; word-break: break-all;">'delete .idea'</span> git push origin master</span></code></pre><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">瀹屾垚涔嬪悗灝卞彲浠ュ彂鐜癵it浠撳簱涓殑.idea鏂囦歡宸茬粡琚垹闄わ紝鑰屼笖涔嬪悗push浠g爜涔熶笉浼氬啀鎶?idea鏂囦歡涓婁紶銆?/p><p style="box-sizing: border-box; outline: 0px; padding: 0px; margin: 0px 0px 16px; font-size: 18px; color: #4d4d4d; line-height: 26px; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; background-color: #f5f6f7;">PS錛氭垜鍦ㄤ嬌鐢≒yCharm緙栧啓python浠g爜錛屼竴鑸槸閫氳繃<code style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 22px; color: #c7254e; background-color: #f9f2f4; border-radius: 2px; padding: 2px 4px;">new -> .ignore file -> .gitignore file</code> 鑷姩鐢熸垚.gitignore鏂囦歡銆?br style="box-sizing: border-box; outline: 0px;" />涓嬮潰鏄垜鑷繁姣旇緝甯哥敤鐨?gitignore鏂囦歡綆鐭厤緗細</p><pre style="box-sizing: border-box; outline: 0px; padding: 8px 16px 6px 56px; margin-top: 0px; margin-bottom: 24px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; border: none; line-height: 22px; background-color: #282c34; font-variant-ligatures: common-ligatures;"><code hljs="" "="" style="box-sizing: border-box; outline: 0px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; padding: 8px; color: #abb2bf; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: normal; min-width: 94%; text-size-adjust: none; word-break: break-all; position: unset;">.project .settings/ .prefs .pydevproject .idea/ .idea .DS_Store .cache *.pyc *.html *.xlm</code></pre><img src ="http://www.tkk7.com/yangjunwei/aggbug/435773.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yangjunwei/" target="_blank">鏉ㄥ啗濞?/a> 2021-01-14 15:15 <a href="http://www.tkk7.com/yangjunwei/archive/2021/01/14/435773.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>GC overhead limit exceeded鍜宩ava heap spacehttp://www.tkk7.com/yangjunwei/archive/2020/12/01/435736.html鏉ㄥ啗濞?/dc:creator>鏉ㄥ啗濞?/author>Tue, 01 Dec 2020 02:19:00 GMThttp://www.tkk7.com/yangjunwei/archive/2020/12/01/435736.htmlhttp://www.tkk7.com/yangjunwei/comments/435736.htmlhttp://www.tkk7.com/yangjunwei/archive/2020/12/01/435736.html#Feedback0http://www.tkk7.com/yangjunwei/comments/commentRss/435736.htmlhttp://www.tkk7.com/yangjunwei/services/trackbacks/435736.html2銆丟C overhead limit exceeded   鍒涘緩澶鐨勫璞★紝gc鏀墮泦涓嶅畬

]]>
緙撳瓨涓鑷存у拰緙撳瓨闆穿http://www.tkk7.com/yangjunwei/archive/2020/11/19/435728.html鏉ㄥ啗濞?/dc:creator>鏉ㄥ啗濞?/author>Thu, 19 Nov 2020 06:12:00 GMThttp://www.tkk7.com/yangjunwei/archive/2020/11/19/435728.htmlhttp://www.tkk7.com/yangjunwei/comments/435728.htmlhttp://www.tkk7.com/yangjunwei/archive/2020/11/19/435728.html#Feedback0http://www.tkk7.com/yangjunwei/comments/commentRss/435728.htmlhttp://www.tkk7.com/yangjunwei/services/trackbacks/435728.html闃呰鍏ㄦ枃

]]>
linux Tomcat 寮鏈哄惎鍔ㄩ厤緗?/title><link>http://www.tkk7.com/yangjunwei/archive/2020/11/17/435726.html</link><dc:creator>鏉ㄥ啗濞?/dc:creator><author>鏉ㄥ啗濞?/author><pubDate>Tue, 17 Nov 2020 02:40:00 GMT</pubDate><guid>http://www.tkk7.com/yangjunwei/archive/2020/11/17/435726.html</guid><wfw:comment>http://www.tkk7.com/yangjunwei/comments/435726.html</wfw:comment><comments>http://www.tkk7.com/yangjunwei/archive/2020/11/17/435726.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yangjunwei/comments/commentRss/435726.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yangjunwei/services/trackbacks/435726.html</trackback:ping><description><![CDATA[<div>1銆?vim /etc/rc.d/rc.local</div><div>2銆佹坊鍔犲唴瀹?/div><div>export JAVA_HOME=/usr/java/jdk1.8.0_111</div><div>/app/tomcat/bin/startup.sh start</div><div>3銆?/div><div>chmod 777 /etc/rc.d/rc.local</div><img src ="http://www.tkk7.com/yangjunwei/aggbug/435726.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yangjunwei/" target="_blank">鏉ㄥ啗濞?/a> 2020-11-17 10:40 <a href="http://www.tkk7.com/yangjunwei/archive/2020/11/17/435726.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java synchronized 閿佸璞?/title><link>http://www.tkk7.com/yangjunwei/archive/2020/10/30/435713.html</link><dc:creator>鏉ㄥ啗濞?/dc:creator><author>鏉ㄥ啗濞?/author><pubDate>Fri, 30 Oct 2020 08:37:00 GMT</pubDate><guid>http://www.tkk7.com/yangjunwei/archive/2020/10/30/435713.html</guid><wfw:comment>http://www.tkk7.com/yangjunwei/comments/435713.html</wfw:comment><comments>http://www.tkk7.com/yangjunwei/archive/2020/10/30/435713.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yangjunwei/comments/commentRss/435713.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yangjunwei/services/trackbacks/435713.html</trackback:ping><description><![CDATA[<div>/**</div><div><span style="white-space:pre"> </span> * synchronized 鏀懼湪鏅氭柟娉曚笂錛屽唴緗攣灝辨槸褰撳墠綾葷殑瀹炰緥</div><div><span style="white-space:pre"> </span> * @return</div><div><span style="white-space:pre"> </span> */</div><div><span style="white-space:pre"> </span>public synchronized int getNext() {</div><div><span style="white-space:pre"> </span>return value ++;</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>/**</div><div><span style="white-space:pre"> </span> * 淇グ闈欐佹柟娉曪紝鍐呯疆閿佹槸褰撳墠鐨凜lass瀛楄妭鐮佸璞?/div><div><span style="white-space:pre"> </span> * Sequence.class</div><div><span style="white-space:pre"> </span> * @return</div><div><span style="white-space:pre"> </span> */</div><div><span style="white-space:pre"> </span>public static synchronized int getPrevious() {</div><div>//<span style="white-space:pre"> </span>return value --;</div><div><span style="white-space:pre"> </span>return 0;</div><div><span style="white-space:pre"> </span>}</div><img src ="http://www.tkk7.com/yangjunwei/aggbug/435713.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yangjunwei/" target="_blank">鏉ㄥ啗濞?/a> 2020-10-30 16:37 <a href="http://www.tkk7.com/yangjunwei/archive/2020/10/30/435713.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>canal綆鍗曞畨瑁呬嬌鐢?/title><link>http://www.tkk7.com/yangjunwei/archive/2020/08/31/435649.html</link><dc:creator>鏉ㄥ啗濞?/dc:creator><author>鏉ㄥ啗濞?/author><pubDate>Mon, 31 Aug 2020 02:55:00 GMT</pubDate><guid>http://www.tkk7.com/yangjunwei/archive/2020/08/31/435649.html</guid><wfw:comment>http://www.tkk7.com/yangjunwei/comments/435649.html</wfw:comment><comments>http://www.tkk7.com/yangjunwei/archive/2020/08/31/435649.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yangjunwei/comments/commentRss/435649.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yangjunwei/services/trackbacks/435649.html</trackback:ping><description><![CDATA[<p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px 3px; padding: 0px;"><span style="margin: 0px; padding: 0px; font-size: 18px;">1銆佹暟鎹簱閰嶇疆</span></span></p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">棣栧厛浣跨敤canal闇瑕佷慨鏀規暟鎹簱閰嶇疆</p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">[mysqld] <br />log-bin=mysql-bin # 寮鍚?br /> binlog binlog-format=ROW # 閫夋嫨 ROW 妯″紡 <br />server_id=1 # 閰嶇疆 MySQL replaction 闇瑕佸畾涔夛紝涓嶈鍜?canal 鐨?slaveId 閲嶅</span></pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">鍒涘緩canal鏁版嵁搴撶敤鎴?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;">CREATE USER canal IDENTIFIED BY <span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">canal</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">; <br /> GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON </span>*.* TO <span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">canal</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span>@<span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">%</span><span style="margin: 0px; padding: 0px; color: #800000; font-family: inherit !important; line-height: 1.5 !important;">'</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">;<br /> FLUSH PRIVILEGES;</span></pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"> </p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px 3px; padding: 0px;"><span style="margin: 0px; padding: 0px; font-size: 18px;">2銆佸畨瑁卌anal</span></span></p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">涓嬭澆錛?a style="margin: 0px; padding: 0px; color: #2d8cf0; text-decoration-line: none; transition: all 0.3s ease 0s;">https://github.com/alibaba/canal/releases</a></p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">瑙e帇錛堜慨鏀圭増鏈彿錛夛細tar zxvf canal.deployer-1.1.4.tar.gz -C ./canal</p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">閰嶇疆寮鏀炬湇鍔″櫒绔彛錛?1110銆?1111銆?1112</p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">淇敼canal閰嶇疆鏂囦歡錛堣繖閲岃緗簡涓や釜instance錛屽嵆涓や釜鏁版嵁搴擄級錛?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">vi</span> canal/conf/<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">canal.properties <br />canal.destinations </span>= example1,example2</pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"> 閰嶇疆instance錛?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">cp</span> -R canal/conf/example conf/<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">example1<br /> </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">mv</span> conf/example conf/example2</pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">絎竴涓暟鎹簱閰嶇疆</p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">vi</span> canal/conf/example1/<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">instance.properties<br /> canal.instance.master.address</span>=<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">32.1</span>.<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">2.140</span>:<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">3306</span></pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">絎簩涓暟鎹簱閰嶇疆</p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">vi</span> canal/conf/example2/<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">instance.properties<br /> canal.instance.master.address</span>=<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">32.1</span>.<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">2.140</span>:<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">3307</span></pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">#濡傛灉闇瑕佹柊澧炰竴涓猧nstance錛屽彧闇瑕佷慨鏀筩anal.properties鏂囦歡錛屽茍鏂板涓涓猧nstance閰嶇疆鍗沖彲錛屾棤闇閲嶅惎canal銆?/p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">榪愯錛?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">sh</span> canal/bin/startup.<span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">sh</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> # 鏌ョ湅鏃ュ織<br /> </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">cat</span> canal/logs/canal/canal</pre></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"> </p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px 3px; padding: 0px;"><span style="margin: 0px; padding: 0px; font-size: 18px;">3銆丣ava浣跨敤鏍蜂緥</span></span></p><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">寮曞叆pom渚濊禆錛岄渶瑕佷笌瀹夎鐨刢anal鐗堟湰涓鑷?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><div style="margin: 5px 0px 0px; background-color: transparent; color: #656c73; width: 20px;"><span style="margin: 0px; padding: 0px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="margin: 0px; padding: 0px; color: #2d8cf0; transition: all 0.3s ease 0s; background-color: #f5f5f5 !important; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="margin: 15px 0px 30px; padding: 0px; border: none !important; background-color: transparent !important; height: auto; max-width: 960px !important; display: block; border-radius: 3px; box-shadow: rgba(27, 31, 35, 0.15) 0px 1px 15px, rgba(106, 115, 125, 0.35) 0px 0px 1px;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><dependencies> <dependency> <groupId>com.alibaba.otter</groupId> <artifactId>canal.client</artifactId> <version><span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">1.1</span>.<span style="margin: 0px; padding: 0px; color: #800080; font-family: inherit !important; line-height: 1.5 !important;">4</span></version> </dependency> </dependencies></pre><div style="margin: 5px 0px 0px; background-color: transparent; color: #656c73; width: 20px;"><span style="margin: 0px; padding: 0px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="margin: 0px; padding: 0px; color: #2d8cf0; transition: all 0.3s ease 0s; background-color: #f5f5f5 !important; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="margin: 15px 0px 30px; padding: 0px; border: none !important; background-color: transparent !important; height: auto; max-width: 960px !important; display: block; border-radius: 3px; box-shadow: rgba(27, 31, 35, 0.15) 0px 1px 15px, rgba(106, 115, 125, 0.35) 0px 0px 1px;" /></a></span></div></div><p style="margin-top: 13px; margin-bottom: 13px; padding: 0px; color: #314659; font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; background-color: #ffffff;">紺轟緥浠g爜錛堝紓姝ユ墦鍗頒袱涓暟鎹簱鐨勪慨鏀瑰唴瀹癸級錛?/p><div style="margin: 5px 0px; padding-right: 1em; padding-left: 1em; background-color: #f2f4f5; border-width: initial !important; border-style: none !important; border-color: initial !important; font-family: "Lucida Console", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important; font-size: 12px !important; border-radius: 3px !important;"><div style="margin: 5px 0px 0px; background-color: transparent; color: #656c73; width: 20px;"><span style="margin: 0px; padding: 0px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="margin: 0px; padding: 0px; color: #2d8cf0; transition: all 0.3s ease 0s; background-color: #f5f5f5 !important; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="margin: 15px 0px 30px; padding: 0px; border: none !important; background-color: transparent !important; height: auto; max-width: 960px !important; display: block; border-radius: 3px; box-shadow: rgba(27, 31, 35, 0.15) 0px 1px 15px, rgba(106, 115, 125, 0.35) 0px 0px 1px;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; color: #656c73; font-family: inherit !important;"><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">package</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> cn.spicybar.dblog; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.client.CanalConnector; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.client.CanalConnectors; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.protocol.CanalEntry.Entry; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.protocol.CanalEntry.EntryType; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.protocol.CanalEntry.RowChange; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> com.alibaba.otter.canal.protocol.Message; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> java.net.InetSocketAddress; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">import</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> java.util.List; </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">public</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">class</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> CanalClient { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">public</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">static</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">void</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> main(String[] args) { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">new</span> Thread(() -> initConnector("example1"<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">)).start(); </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">new</span> Thread(() -> initConnector("example2"<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">)).start(); } </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">private</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">static</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">void</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> initConnector(String destination) { CanalConnector connector </span>= CanalConnectors.newSingleConnector(<span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">new</span> InetSocketAddress("32.1.0.237", 11111), destination, "", ""<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">); </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">try</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> { connector.connect(); connector.subscribe(</span>".*\\..*"<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">); connector.rollback(); </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">while</span> (<span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">true</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">) { Message message </span>= connector.getWithoutAck(1000<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">); </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">if</span> (message.getId() != -1 && message.getEntries().size() > 0<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">) { printEntry(message.getEntries()); } connector.ack(message.getId()); } } </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">finally</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> { connector.disconnect(); } } </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">private</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">static</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">void</span> printEntry(List<Entry><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> entries) { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">for</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> (Entry entry : entries) { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">if</span> (entry.getEntryType() == EntryType.TRANSACTIONBEGIN || entry.getEntryType() ==<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> EntryType.TRANSACTIONEND) { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">continue</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;">; } </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">try</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> { RowChange rowChange </span>=<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> RowChange.parseFrom(entry.getStoreValue()); System.out.println(rowChange.getSql()); } </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">catch</span><span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> (Exception e) { </span><span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">throw</span> <span style="margin: 0px; padding: 0px; color: #0000ff; font-family: inherit !important; line-height: 1.5 !important;">new</span> RuntimeException("ERROR ## parser error, data:" +<span style="margin: 0px; padding: 0px; color: #000000; font-family: inherit !important; line-height: 1.5 !important;"> entry.toString(), e); } } }</span></pre></div><img src ="http://www.tkk7.com/yangjunwei/aggbug/435649.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yangjunwei/" target="_blank">鏉ㄥ啗濞?/a> 2020-08-31 10:55 <a href="http://www.tkk7.com/yangjunwei/archive/2020/08/31/435649.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java 浜屽垎娉曟煡璇㈡暟鎹?/title><link>http://www.tkk7.com/yangjunwei/archive/2020/08/07/435633.html</link><dc:creator>鏉ㄥ啗濞?/dc:creator><author>鏉ㄥ啗濞?/author><pubDate>Fri, 07 Aug 2020 03:00:00 GMT</pubDate><guid>http://www.tkk7.com/yangjunwei/archive/2020/08/07/435633.html</guid><wfw:comment>http://www.tkk7.com/yangjunwei/comments/435633.html</wfw:comment><comments>http://www.tkk7.com/yangjunwei/archive/2020/08/07/435633.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yangjunwei/comments/commentRss/435633.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yangjunwei/services/trackbacks/435633.html</trackback:ping><description><![CDATA[<pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'Consolas';font-size:9.8pt;"><span style="color:#cc7832;">public int </span><span style="color:#ffc66d;">binarySearch</span>(<span style="color:#cc7832;">long </span>value) {<br /> <span style="color:#cc7832;">int </span>middle = <span style="color:#6897bb;">0</span><span style="color:#cc7832;">;<br /></span><span style="color:#cc7832;"> int </span>low = <span style="color:#6897bb;">0</span><span style="color:#cc7832;">;<br /></span><span style="color:#cc7832;"> int </span>pow = <span style="color:#9876aa;">arr.length</span><span style="color:#cc7832;">;<br /></span><span style="color:#cc7832;"> <br /></span><span style="color:#cc7832;"> while</span>(<span style="color:#cc7832;">true</span>) {<br /> middle = (pow + low) / <span style="color:#6897bb;">2</span><span style="color:#cc7832;">;<br /></span><span style="color:#cc7832;"> if</span>(<span style="color:#9876aa;">arr</span>[middle] == value) {<br /> <span style="color:#cc7832;">return </span>middle<span style="color:#cc7832;">;<br /></span> } <span style="color:#cc7832;">else if</span>(low > pow) {<br /> <span style="color:#cc7832;">return </span>-<span style="color:#6897bb;">1</span><span style="color:#cc7832;">;<br /></span> } <span style="color:#cc7832;">else </span>{<br /> <span style="color:#cc7832;">if</span>(<span style="color:#9876aa;">arr</span>[middle] > value) {<br /> pow = middle - <span style="color:#6897bb;">1</span><span style="color:#cc7832;">;<br /></span> } <span style="color:#cc7832;">else </span>{<br /> low = middle + <span style="color:#6897bb;">1</span><span style="color:#cc7832;">;<br /></span> }<br /> }<br /> }<br />}</pre><img src ="http://www.tkk7.com/yangjunwei/aggbug/435633.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yangjunwei/" target="_blank">鏉ㄥ啗濞?/a> 2020-08-07 11:00 <a href="http://www.tkk7.com/yangjunwei/archive/2020/08/07/435633.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://bd0574.com" target="_blank">亚洲综合伊人久久综合</a>| <a href="http://spxingyiquan.com" target="_blank">国产在线98福利播放视频免费</a>| <a href="http://zhxydq.com" target="_blank">亚洲AV午夜福利精品一区二区 </a>| <a href="http://bjbanjia01.com" target="_blank">亚洲五月六月丁香激情</a>| <a href="http://fuzhiwushu.com" target="_blank">免费看又黄又无码的网站 </a>| <a href="http://8fue.com" target="_blank">特级毛片aaaa免费观看</a>| <a href="http://zengzeyu.com" target="_blank">亚洲色WWW成人永久网址</a>| <a href="http://kanboy.com" target="_blank">美女内射无套日韩免费播放</a>| <a href="http://www12kvkv.com" target="_blank">精品日韩亚洲AV无码一区二区三区 </a>| <a href="http://yytengsheng.com" target="_blank">国产一级a毛一级a看免费视频</a>| <a href="http://www-188588.com" target="_blank">亚洲AV无码成人专区片在线观看 </a>| <a href="http://fsszx888.com" target="_blank">亚洲精品乱码久久久久蜜桃</a>| <a href="http://516kd.com" target="_blank">免费的一级黄色片</a>| <a href="http://ynyinglie.com" target="_blank">a毛片在线免费观看</a>| <a href="http://c7372.com" target="_blank">亚洲乱码一二三四区乱码</a>| <a href="http://ksdhao.com" target="_blank">亚洲国产av无码精品</a>| <a href="http://kimnote.com" target="_blank">120秒男女动态视频免费</a>| <a href="http://86trader.com" target="_blank">国产精品亚洲小说专区</a>| <a href="http://yw5168.com" target="_blank">久久伊人久久亚洲综合</a>| <a href="http://haiwaizhuyun.com" target="_blank">成人免费午夜视频</a>| <a href="http://yese889.com" target="_blank">午夜网站在线观看免费完整高清观看 </a>| <a href="http://www-777730.com" target="_blank">456亚洲人成在线播放网站</a>| <a href="http://ccc998.com" target="_blank">免费va人成视频网站全</a>| <a href="http://vastraje.com" target="_blank">色欲色香天天天综合网站免费</a>| <a href="http://51jingpai.com" target="_blank">亚洲精品蜜夜内射</a>| <a href="http://8099456.com" target="_blank">亚洲日产2021三区</a>| <a href="http://zhhy68.com" target="_blank">国产亚洲成av片在线观看</a>| <a href="http://gs168sz.com" target="_blank">在线观看免费成人</a>| <a href="http://jnyygs.com" target="_blank">中文字幕在线免费</a>| <a href="http://cxljdz.com" target="_blank">久久久久久久国产免费看</a>| <a href="http://selaohu.com" target="_blank">亚洲综合色婷婷在线观看</a>| <a href="http://7a37.com" target="_blank">亚洲va久久久噜噜噜久久男同</a>| <a href="http://600c28.com" target="_blank">嫩草视频在线免费观看</a>| <a href="http://5tww.com" target="_blank">久久成人a毛片免费观看网站</a>| <a href="http://222dv.com" target="_blank">无码一区二区三区亚洲人妻</a>| <a href="http://9797ww.com" target="_blank">亚洲爆乳无码专区</a>| <a href="http://qiyupu.com" target="_blank">国产精品亚洲二区在线观看</a>| <a href="http://woaianli.com" target="_blank">99久久久国产精品免费无卡顿</a>| <a href="http://023npxyy.com" target="_blank">香蕉免费一级视频在线观看</a>| <a href="http://ynkmht.com" target="_blank">亚洲一区二区三区无码国产</a>| <a href="http://k4h3.com" target="_blank">波多野结衣免费视频观看</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>