锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合激情五月丁香六月,亚洲综合国产一区二区三区,亚洲av永久无码精品秋霞电影秋http://m.tkk7.com/paulwong/category/55363.htmlzh-cnMon, 06 Jan 2025 10:55:21 GMTMon, 06 Jan 2025 10:55:21 GMT60linux鍒犻櫎澶氫綑鐨勬棫鍐呮牳http://m.tkk7.com/paulwong/archive/2025/01/05/451537.htmlpaulwongpaulwongSun, 05 Jan 2025 04:01:00 GMThttp://m.tkk7.com/paulwong/archive/2025/01/05/451537.htmlhttp://m.tkk7.com/paulwong/comments/451537.htmlhttp://m.tkk7.com/paulwong/archive/2025/01/05/451537.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451537.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451537.html
dnf remove $(dnf repoquery --installonly --latest-limit=-2)




paulwong 2025-01-05 12:01 鍙戣〃璇勮
]]>
REDHEAD 8 LINUX 杞歡闆嗗悎http://m.tkk7.com/paulwong/archive/2022/06/23/450773.htmlpaulwongpaulwongThu, 23 Jun 2022 09:27:00 GMThttp://m.tkk7.com/paulwong/archive/2022/06/23/450773.htmlhttp://m.tkk7.com/paulwong/comments/450773.htmlhttp://m.tkk7.com/paulwong/archive/2022/06/23/450773.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/450773.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/450773.htmlhttps://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/index




paulwong 2022-06-23 17:27 鍙戣〃璇勮
]]>
LINUX YUMhttp://m.tkk7.com/paulwong/archive/2022/06/23/450772.htmlpaulwongpaulwongThu, 23 Jun 2022 09:21:00 GMThttp://m.tkk7.com/paulwong/archive/2022/06/23/450772.htmlhttp://m.tkk7.com/paulwong/comments/450772.htmlhttp://m.tkk7.com/paulwong/archive/2022/06/23/450772.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/450772.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/450772.html
yum module list nginx

Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Name                                         Stream                                         Profiles                                         Summary
nginx                                        1.14 [d]                                       common [d]                                       nginx webserver
nginx                                        1.16                                           common [d]                                       nginx webserver
nginx                                        1.18                                           common [d]                                       nginx webserver
nginx                                        1.20 [e]                                       common [d]                                       nginx webserver

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled


璁懼畾鏌愪釜鐗堟湰涓洪粯璁ょ増鏈?br />
yum module enable nginx:1.20


瀹夎榛樿鐗堟湰
yum install nginx





paulwong 2022-06-23 17:21 鍙戣〃璇勮
]]>
openJDK鏃犳硶榪涜jmaphttp://m.tkk7.com/paulwong/archive/2022/05/19/450751.htmlpaulwongpaulwongThu, 19 May 2022 05:53:00 GMThttp://m.tkk7.com/paulwong/archive/2022/05/19/450751.htmlhttp://m.tkk7.com/paulwong/comments/450751.htmlhttp://m.tkk7.com/paulwong/archive/2022/05/19/450751.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/450751.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/450751.htmlhttps://blog.csdn.net/qq_32447301/article/details/85109014


paulwong 2022-05-19 13:53 鍙戣〃璇勮
]]>
LINUX涓嬪驚鐜鍙栨枃浠跺弬鏁板茍CURL榪滅▼APIhttp://m.tkk7.com/paulwong/archive/2021/08/26/435954.htmlpaulwongpaulwongThu, 26 Aug 2021 07:40:00 GMThttp://m.tkk7.com/paulwong/archive/2021/08/26/435954.htmlhttp://m.tkk7.com/paulwong/comments/435954.htmlhttp://m.tkk7.com/paulwong/archive/2021/08/26/435954.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435954.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435954.html
鍙傛暟鏂囦歡錛宼est1.json
{"ADDRESS_FREE":"XXX","NAME":{"SURNAME":"XXX","FIRST_NAME":"XXX"}}
{"ADDRESS_FREE":"XXX","NAME":{"SURNAME":"XXX","FIRST_NAME":"XXX"}}
{"ADDRESS_FREE":"XXX","NAME":{"SURNAME":"XXX","FIRST_NAME":"XXX"}}

test1.sh
#! /bin/bash

RESULT_FILE="result.csv"
echo "" > $RESULT_FILE
i=1
while read line || [[ "$line" ]] #In case the file has an incomplete (missing newline) last line, you could use this alternative:
do 
    echo "$i"
    printf "$i;$line;" >> $RESULT_FILE
    curl -w %{time_total} -o /dev/null -X POST -H "Content-Type:application/json" -d "$line" http://ip:port  >> $RESULT_FILE
    #printf "\n\r" >> $RESULT_FILE
    echo "" >> $RESULT_FILE
    #i=$(( $i + 1 ))
    (( i++ ))
done < test1.json

Reference:
https://stackoverflow.com/questions/30988586/creating-an-array-from-a-text-file-in-bash











paulwong 2021-08-26 15:40 鍙戣〃璇勮
]]>
Linux sha512sum commandhttp://m.tkk7.com/paulwong/archive/2021/07/14/435926.htmlpaulwongpaulwongWed, 14 Jul 2021 05:41:00 GMThttp://m.tkk7.com/paulwong/archive/2021/07/14/435926.htmlhttp://m.tkk7.com/paulwong/comments/435926.htmlhttp://m.tkk7.com/paulwong/archive/2021/07/14/435926.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435926.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435926.html
sha512sum [OPTION] [FILE]



paulwong 2021-07-14 13:41 鍙戣〃璇勮
]]>
Bash get filename from given path on Linux or Unixhttp://m.tkk7.com/paulwong/archive/2021/05/21/435879.htmlpaulwongpaulwongFri, 21 May 2021 06:10:00 GMThttp://m.tkk7.com/paulwong/archive/2021/05/21/435879.htmlhttp://m.tkk7.com/paulwong/comments/435879.htmlhttp://m.tkk7.com/paulwong/archive/2021/05/21/435879.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435879.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435879.htmlhttps://www.cyberciti.biz/faq/bash-get-filename-from-given-path-on-linux-or-unix/

paulwong 2021-05-21 14:10 鍙戣〃璇勮
]]>
TCP 閫g窔鐙鎱嬫鍒惰垏嫻佺▼http://m.tkk7.com/paulwong/archive/2020/12/29/435758.htmlpaulwongpaulwongTue, 29 Dec 2020 02:04:00 GMThttp://m.tkk7.com/paulwong/archive/2020/12/29/435758.htmlhttp://m.tkk7.com/paulwong/comments/435758.htmlhttp://m.tkk7.com/paulwong/archive/2020/12/29/435758.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435758.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435758.htmlhttps://dev.twsiyuan.com/2017/09/tcp-states.html
鍦ㄩ枊鐧煎熀鏂?HTTP 鐨勭恫璺噳鐢ㄦ湇鍕欐檪錛岀暥鏈夊ぇ閲忛g窔瑕佹眰錛屾垨鏄垏闀烽g窔 (Persistent connection) 瑕佹眰鏅傦紝甯稿父閬囧埌搴曞堡 TCP 鐨勯g窔鏂風窔閷錛屽皫鑷存湇鍕欎笉絀╁畾銆傚洜姝ょ爺絀朵簡瑙?TCP 鐨勯g窔鐙鎱嬫鍒訛紝涓﹀槜瑭︾敤鑷繁鐨勬柟寮忔暣鐞嗙瓎璦橈紝甯屾湜鑳藉緸鍩虹鐭ヨ瓨涓壘鍒拌В姹洪尟瑾ょ殑綬氱儲錛屾垨鏄換浣曡兘鏇撮蹭竴姝ュ劒鍖栨湇鍕欑殑鎵嬫銆?/p>

鍍呯磤閷?TCP 閫g窔鐙鎱嬩互鍙婂緩绔嬫垨鏄柗闁嬮g窔嫻佺▼錛岄棞鏂奸蹭竴姝ョ殑 TCP 灝佸寘鍗斿畾鍙弮鑰?Reference 閫g窔銆?/p>

TCP 寤虹珛閫g窔 (Open)

閫氬父鐨?TCP 閫g窔寤虹珛嫻佺▼鑸囩媭鎱嬶紝闇瑕佷笁嬈$殑璦婃伅浜ゆ彌渚嗗緩绔嬮g窔 (three-way handshaking)錛?/p>

TCP 寤虹珛閫g窔嫻佺▼鍦? src=

TCP 寤虹珛閫g窔嫻佺▼鍦?/p>

鍏朵腑宸﹂倞閫氬父鐐?server錛屽彸閭婂墖鐐?client錛屾枃瀛楁祦紼嬫弿榪幫細

  1. Server 寤虹珛 TCB錛岄枊鍟熺洠鑱介g窔錛岄插叆鐙鎱?LISTENING
  2. Client 鐧煎嚭閫g窔瑕佹眰 SYN錛岄插叆鐙鎱?SYN-SENT錛岀瓑寰呭洖鎳?/li>
  3. Server 鏀跺埌 SYN 瑕佹眰錛屽洖鎳夐g窔鍌抽?nbsp;SYN+ACK錛屼甫閫插叆鐙鎱?SYN-RCVD (SYN-RECEIVED)
  4. Client 鏀跺埌 SYN+ACK 紕鴻獚瀹屾垚閫g窔閫插叆鐙鎱?ESTABLISHED錛屼甫閫佸嚭 ACK
  5. Server 鏀跺埌 ACK 紕鴻獚閫g窔瀹屾垚錛屼篃閫插叆鐙鎱?ESTABLISHED
  6. 闆欐柟闁嬪鍌抽佷氦鎻涜硣鏂?/li>

瑭蹭簺鍚嶈鑸囩媭鎱嬭鏄庯細

  • CLOSED錛氶g窔闂滈枆鐙鎱?/li>
  • LISTENING錛氱洠鑱界媭鎱嬶紝琚嫊絳夊緟閫g窔
  • SYN-SENT錛氫富鍕曢佸嚭閫g窔瑕佹眰 SYN錛屼甫絳夊緟灝嶆柟鍥炴噳
  • SYN-RCVD錛氭敹鍒伴g窔瑕佹眰 SYN錛岄佸嚭宸辨柟鐨?SYN+ACK 寰岋紝絳夊緟灝嶆柟鍥炴噳
  • ESTABLISHED錛氱⒑瀹氬畬鎴愰g窔錛屽彲闁嬪鍌寵幾璩囨枡
  • TCB錛歍ransmission Control Block錛宻ee wiki
  • SYN錛歋ynchronous錛岃〃紺鴻垏灝嶆柟寤虹珛閫g窔鐨勫悓姝ョ铏?/li>
  • ACK錛欰cknowledgement錛岃〃紺虹櫦閫佺殑鏁告摎宸叉敹鍒扮劇瑾?/li>

鍦ㄥ緩绔嬮g窔鏅傦紝鍙兘鏈冪櫦鐢熼洐鏂瑰悓姝ュ緩绔嬮g窔鐨勬儏褰?(Simultaneous open)錛屽父瑕嬫柤 P2P 鐨勬噳鐢ㄤ腑錛屽叾 TCP 寤虹珛閫g窔鐨勬祦紼嬩笉澶竴妯o細

TCP 鍚屾寤虹珛閫g窔嫻佺▼鍦? src=

TCP 鍚屾寤虹珛閫g窔嫻佺▼鍦?/p>

鐣垚 TCP 鐙鎱嬫祦紼嬪湒鏈冩槸閫欐ǎ錛?/p>

TCP Open 鐙鎱嬪湒

TCP Open 鐙鎱嬪湒

TCP 鏂烽枊閫g窔 (Close)

TCP 闂滈枆嫻佺▼濡備笅錛屾瘮寤虹珛閫g窔閭勮瑜囬洔涓浜涳紝闇瑕佺稉閬庡洓嬈$殑璦婃伅浜ゆ彌 (four-way handshaking)錛岃娉ㄦ剰鐨勬槸鍙互鏄敱 server 鐧艱搗涓誨嫊闂滈枆錛屾姂鎴栨槸 client 鐧艱搗涓誨嫊闂滈枆錛?/p>

TCP 闂滈枆閫g窔嫻佺▼鍦? src=

TCP 闂滈枆閫g窔嫻佺▼鍦?/p>

鍏朵腑宸﹂倞閫氬父鐐?client 鐙鎱?(鐢?client 涓誨嫊鐧艱搗闂滈枆閫g窔)錛屽彸閭婂墖鐐?server 鐙鎱嬶紝鏂囧瓧嫻佺▼鎻忚堪錛?/p>

  1. Client 婧栧倷闂滈枆閫g窔錛岀櫦鍑?nbsp;FIN錛岄插叆鐙鎱?FIN-WAIT-1
  2. Server 鏀跺埌 FIN錛岀櫦鍥炴敹鍒扮殑 ACK錛岄插叆鐙鎱?CLOSE-WAIT錛屼甫閫氱煡 App 婧栧倷鏂風窔
  3. Client 鏀跺埌 ACK錛岄插叆鐙鎱?FIN-WAIT-2錛岀瓑寰?server 鐧煎嚭 FIN
  4. Server 紕鴻獚 App 铏曠悊瀹屾柗綬氳珛姹傦紝鐧煎嚭 FIN錛屼甫閫插叆鐙鎱?LAST-ACK
  5. Client 鏀跺埌 FIN錛屼甫鍥炲偝紕鴻獚鐨?nbsp;ACK錛岄插叆鐙鎱?TIME-WAIT錛岀瓑寰呮檪闁撻亷寰屾寮忛棞闁夐g窔
  6. Server 鏀跺埌 ACK錛屼究鐩存帴闂滈枆閫g窔

瑭蹭簺鍚嶈鑸囩媭鎱嬭鏄庯細

  • ESTABLISHED錛氶g窔闁嬪暉鐙鎱?/li>
  • CLOSE-WAIT錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夊緟 App 鍥炴噳
  • LAST-ACK錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夊緟閬犵鍥炴噳 ACK 寰岋紝渚塊棞闁夐g窔
  • FIN-WAIT-1錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夊緟閬犵鍥炴噳 ACK
  • FIN-WAIT-2錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夊緟閬犵鍥炴噳 FIN
  • TIME-WAIT錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夋涓孌墊檪鍊欙紝淇濊瓑閬犵鏈夋敹鍒板叾 ACK 闂滈枆閫g窔 (綞茶礬寤墮伈鍟忛)
  • CLOSED錛氶g窔闂滈枆鐙鎱?/li>
  • FIN錛氳〃紺洪棞闁夐g窔鐨勫悓姝ョ铏?/li>
  • ACK錛欰cknowledgement錛岃〃紺虹櫦閫佺殑鏁告摎宸叉敹鍒扮劇瑾?/li>

鏈夊彲鑳介g窔鐨勯洐鏂瑰悓鏅傜櫦璧烽棞闁夛紝闆栫劧姍熺巼閭勮牷浣庣殑錛?/p>

TCP 鍚屾闂滈枆閫g窔嫻佺▼鍦? src=

TCP 鍚屾闂滈枆閫g窔嫻佺▼鍦?/p>

閫欓倞澶氫竴鍊嬬媭鎱嬶細

  • CLOSING錛氱瓑寰呴g窔闂滈枆鐙鎱嬶紝絳夊緟閬犵鍥炴噳 ACK

鐣垚 TCP 鐙鎱嬫祦紼嬪湒鏈冩槸閫欐ǎ錛?/p>

TCP Close 鐙鎱嬪湒

TCP Close 鐙鎱嬪湒

鏌ヨ鐝懼湪闆昏叇鐨?TCP 鐙鎱?/h2>

鏌ヨ鐩墠鎵鏈夌殑閫g窔鐙鎱?(Windows & Linux)錛?/p>

netstat -a

Reference



paulwong 2020-12-29 10:04 鍙戣〃璇勮
]]>
LINUX SHELL涔婼CLhttp://m.tkk7.com/paulwong/archive/2020/11/05/435715.htmlpaulwongpaulwongThu, 05 Nov 2020 08:42:00 GMThttp://m.tkk7.com/paulwong/archive/2020/11/05/435715.htmlhttp://m.tkk7.com/paulwong/comments/435715.htmlhttp://m.tkk7.com/paulwong/archive/2020/11/05/435715.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435715.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435715.htmlhttps://blog.51cto.com/hashlinux/1772066

CentOS/RHEL 寮鍙戠幆澧冧箣 devtoolset
http://blog.fungo.me/2016/03/centos-development-env/

How can I make a Red Hat Software Collection persist after a reboot/logout?
https://access.redhat.com/solutions/527703

paulwong 2020-11-05 16:42 鍙戣〃璇勮
]]>
linux shell 涓鏌ユ枃浠跺す鏄惁瀛樺湪http://m.tkk7.com/paulwong/archive/2020/09/25/435673.htmlpaulwongpaulwongFri, 25 Sep 2020 03:11:00 GMThttp://m.tkk7.com/paulwong/archive/2020/09/25/435673.htmlhttp://m.tkk7.com/paulwong/comments/435673.htmlhttp://m.tkk7.com/paulwong/archive/2020/09/25/435673.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435673.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435673.html
if [ -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY exists.
fi

Or to check if a directory doesn't exist:
if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
fi


paulwong 2020-09-25 11:11 鍙戣〃璇勮
]]>
linux shell 涓嚱鏁扮殑璋冪敤http://m.tkk7.com/paulwong/archive/2020/09/25/435672.htmlpaulwongpaulwongFri, 25 Sep 2020 03:06:00 GMThttp://m.tkk7.com/paulwong/archive/2020/09/25/435672.htmlhttp://m.tkk7.com/paulwong/comments/435672.htmlhttp://m.tkk7.com/paulwong/archive/2020/09/25/435672.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435672.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435672.htmlfunction fun1(){
  return 34
}

function fun2(){
  local res=$(fun1)
  echo $res
}
涓婇潰璋冪敤fun1鏃訛紝鎵撳嵃緇撴灉鍗翠笉榪斿洖34錛岃繖鏄負浣曪紵鍘熸潵鍑芥暟鍙槸榪斿洖緇撴灉鎴愬姛涓庡惁鐨勫鹼紝騫朵笉鑳借嚜瀹氫箟銆傚洜姝よ鏀規垚涓嬮潰榪欑鍐欐硶

function fun1(){
  echo 34
}

function fun2(){
  local res=$(fun1)
  echo $res
}

https://stackoverflow.com/questions/17336915/return-value-in-a-bash-function


paulwong 2020-09-25 11:06 鍙戣〃璇勮
]]>
鍚戞墍鏈夋湇鍔″櫒鍙戦佺浉鍚屽懡浠?/title><link>http://m.tkk7.com/paulwong/archive/2020/09/24/435670.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Thu, 24 Sep 2020 02:52:00 GMT</pubDate><guid>http://m.tkk7.com/paulwong/archive/2020/09/24/435670.html</guid><wfw:comment>http://m.tkk7.com/paulwong/comments/435670.html</wfw:comment><comments>http://m.tkk7.com/paulwong/archive/2020/09/24/435670.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/paulwong/comments/commentRss/435670.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/paulwong/services/trackbacks/435670.html</trackback:ping><description><![CDATA[鍏堝湪涓繪帶鏈烘墽琛宻sh-keygen錛屽啀鍚戣鎺ф満浼犺緭key錛?br /><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 />-->ssh-copy-id -i ~/.ssh/id_rsa.pub user1@ip</div><br />鏍蜂緥鑴氭湰transfer-artemis.sh濡備笅錛?br /><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 />-->#!/bin/bash<br /><br />loop_server(){<br />    for ((i=2<span style="color: #008000; ">;</span><span style="color: #008000; "> i<=8; i++))</span><span style="color: #008000; "><br /></span>    do<br />      ipd=10.10.31.1${i}2<br />      echo ${ipd}<br />      $1 ${ipd}<br />    done<br />    <br />    for ((i=1<span style="color: #008000; ">;</span><span style="color: #008000; "> i<=2; i++))</span><span style="color: #008000; "><br /></span>    do<br />      ipd=10.20.31.1${i}2<br />      echo ${ipd}<br />      $1 ${ipd}<br />    done<br />    <br />}<br /><br />start_artemis_cmd(){<br />    echo "ssh user1@${1} '/opt/myapp/artemis/apache-artemis-2.15.0/instance/bin/artemis-service start'"<br />    ssh user1@${1} '/opt/myapp/artemis/apache-artemis-2.15.0/instance/bin/artemis-service start'<br />}<br /><br />stop_artemis_cmd(){<br />    echo "ssh user1@${1} '/opt/myapp/apache-activemq-5.15.10/bin/activemq stop'"<br />    echo "ssh user1@${1} '/opt/myapp/artemis/apache-artemis-2.15.0/instance/bin/artemis-service stop'"<br />    ssh user1@${1} '/opt/myapp/apache-activemq-5.15.10/bin/activemq stop'<br />    ssh user1@${1} '/opt/myapp/artemis/apache-artemis-2.15.0/instance/bin/artemis-service stop'<br />}<br /><br />scp_artemis_cmd(){<br />    echo "ssh user1@${1} 'rm -rf /opt/myapp/artemis'"<br />    echo "scp -r /opt/myapp/artemis user1@${1}:/opt/myapp/"<br />    ssh user1@${1} 'rm -rf /opt/myapp/artemis'<br />    scp -r /opt/myapp/artemis user1@${1}:/opt/myapp/<br />}<br /><br />stop_artemis(){<br />    loop_server stop_artemis_cmd<br />}<br /><br />start_artemis(){<br />    loop_server start_artemis_cmd<br />}<br /><br />scp_artemis(){ <br />    loop_server scp_artemis_cmd<br />}<br /><br />#start_artemis "Hello start_artemis"<br /><br />$1</div><br />鎵ц鍛戒護錛?br /><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 />-->./transfer-artemis.sh start_artemis</div><img src ="http://m.tkk7.com/paulwong/aggbug/435670.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/paulwong/" target="_blank">paulwong</a> 2020-09-24 10:52 <a href="http://m.tkk7.com/paulwong/archive/2020/09/24/435670.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>linux nohup鍛戒護璇﹁Вhttp://m.tkk7.com/paulwong/archive/2020/09/02/435652.htmlpaulwongpaulwongWed, 02 Sep 2020 03:52:00 GMThttp://m.tkk7.com/paulwong/archive/2020/09/02/435652.htmlhttp://m.tkk7.com/paulwong/comments/435652.htmlhttp://m.tkk7.com/paulwong/archive/2020/09/02/435652.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435652.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435652.html
nohup鍛戒護錛氬鏋滀綘姝e湪榪愯涓涓繘紼嬶紝鑰屼笖浣犺寰楀湪閫鍑哄笎鎴鋒椂璇ヨ繘紼嬭繕涓嶄細緇撴潫錛岄偅涔堝彲浠ヤ嬌鐢╪ohup鍛戒護銆傝鍛戒護鍙互鍦ㄤ綘閫鍑哄笎鎴?鍏抽棴緇堢涔嬪悗緇х畫榪愯鐩稿簲鐨勮繘紼嬨俷ohup灝辨槸涓嶆寕璧風殑鎰忔? n ohang up)銆?br />
涓鑸兘鏄湪linux涓媙ohup鏍煎紡錛?nbsp; 

nohup command

鎴栬?br />
nohup command &

榪欎箣闂寸殑宸埆鏄甫&鐨勫懡浠よ錛屽嵆浣縯erminal錛堢粓绔級鍏抽棴錛屾垨鑰呯數鑴戞鏈虹▼搴忎緷鐒惰繍琛岋紙鍓嶆彁鏄綘鎶婄▼搴忛掍氦鍒版湇鍔″櫒涓婏級錛?br />
瀹冩妸鏍囧噯杈撳嚭錛圫TDOUT錛夊拰鏍囧噯閿欒錛圫TDERR錛夌粨鏋滆緭鍑哄埌nohup.txt鏂囦歡榪欎釜鐪嬩技寰堟柟渚匡紝浣嗘槸褰撹緭鍑哄緢澶х殑鏃跺欙紝nohup.txt鏂囦歡浼氶潪甯稿ぇ錛屾垨鑰呭涓悗鍙板懡浠ょ殑鏃跺欏ぇ瀹墮兘浼氳緭鍑哄埌nohup.txt鏂囦歡錛屼笉鍒╀簬鏌ユ壘緇撴灉鍜岃皟璇曠▼搴忋?br />
鎵浠ヨ兘澶熼噸瀹氬悜杈撳嚭浼氶潪甯告柟渚褲備笅闈㈣浠嬬粛鏍囧噯杈撳嚭錛屾爣鍑嗚緭鍏?鍜屾爣鍑嗛敊璇簡銆?br />
鍏跺疄鎴戜滑涓鐩撮兘鍦ㄧ敤錛屽彧鏄病鏈夋敞鎰忓埌錛?nbsp;

姣斿

>./command.sh > output

#榪欏叾涓殑>灝辨槸鏍囧噯杈撳嚭絎﹀彿錛屽叾瀹炴槸 1>output 鐨勭緝鍐?br />
>./command.sh 2> output

錛冭繖閲岀殑2>灝辨槸灝嗘爣鍑嗛敊璇緭鍑哄埌output鏂囦歡閲屻?br />
鑰?< 鍒欐槸鏍囧噯杈撳叆浜嗐?br />
涓嬮潰姝ュ叆姝i錛岄噸瀹氬悜鍚庡彴鍛戒護

>nohup ./command.sh > output 2>&1 &

瑙i噴錛氬墠闈㈢殑nohup 鍜屽悗闈㈢殑&鎴戞兂澶у閮借兘鏄庣櫧浜嗘妸銆?br />
涓昏鏄腑闂寸殑 2>&1鐨勬剰鎬?br />
榪欎釜鎰忔濇槸鎶婃爣鍑嗛敊璇紙2錛夐噸瀹氬悜鍒版爣鍑嗚緭鍑轟腑錛?錛夛紝鑰屾爣鍑嗚緭鍑哄張瀵煎叆鏂囦歡output閲岄潰錛?  www.2cto.com

鎵浠ョ粨鏋滄槸鏍囧噯閿欒鍜屾爣鍑嗚緭鍑洪兘瀵煎叆鏂囦歡output閲岄潰浜嗐?br />
鑷充簬涓轟粈涔堥渶瑕佸皢鏍囧噯閿欒閲嶅畾鍚戝埌鏍囧噯杈撳嚭鐨勫師鍥狅紝閭e氨褰掔粨涓烘爣鍑嗛敊璇病鏈夌紦鍐插尯錛岃宻tdout鏈夈?br />
榪欏氨浼氬鑷?>output 2>output 鏂囦歡output琚袱嬈℃墦寮錛岃宻tdout鍜宻tderr灝嗕細绔炰簤瑕嗙洊錛岃繖鑲畾涓嶆槸鎴戦棬鎯寵鐨?

榪欏氨鏄負浠涔堟湁浜轟細鍐欐垚錛?br />
nohup ./command.sh >output 2>output
鍑洪敊鐨勫師鍥犱簡

##########################

鏈鍚庤皥涓涓?dev/null鏂囦歡鐨勪綔鐢?br />
榪欐槸涓涓棤搴曟礊錛屼換浣曚笢瑗塊兘鍙互瀹氬悜鍒拌繖閲岋紝浣嗘槸鍗存棤娉曟墦寮銆?br />
鎵浠ヤ竴鑸緢澶х殑stdou鍜宻tderr褰撲綘涓嶅叧蹇冪殑鏃跺欏彲浠ュ埄鐢╯tdout鍜宻tderr瀹氬悜鍒拌繖閲?br />
>./command.sh >/dev/null 2>&1


paulwong 2020-09-02 11:52 鍙戣〃璇勮
]]>
濡備綍鎵懼嚭LINUX涓秷鑰桟PU鏈澶х殑搴旂敤鐨凱IDhttp://m.tkk7.com/paulwong/archive/2020/08/14/435642.htmlpaulwongpaulwongFri, 14 Aug 2020 03:52:00 GMThttp://m.tkk7.com/paulwong/archive/2020/08/14/435642.htmlhttp://m.tkk7.com/paulwong/comments/435642.htmlhttp://m.tkk7.com/paulwong/archive/2020/08/14/435642.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435642.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435642.html
top -i //杈撳嚭搴旂敤鍒楄〃錛屽茍闅愯棌IDEL鐨勫簲鐢?br /> P //鍦ㄥ垪琛ㄦ椂錛屾寜P錛屽垯鎸塁PU鐨勪嬌鐢ㄦ帓搴?/div>

How To Check CPU Utilization In Linux With Command Line
https://phoenixnap.com/kb/check-cpu-usage-load-linux

paulwong 2020-08-14 11:52 鍙戣〃璇勮
]]>LINUX SHELLhttp://m.tkk7.com/paulwong/archive/2020/07/06/435591.htmlpaulwongpaulwongMon, 06 Jul 2020 01:23:00 GMThttp://m.tkk7.com/paulwong/archive/2020/07/06/435591.htmlhttp://m.tkk7.com/paulwong/comments/435591.htmlhttp://m.tkk7.com/paulwong/archive/2020/07/06/435591.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435591.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435591.htmlhttps://tecadmin.net/tutorial/bash-scripting/

Shell 鏁欑▼
https://www.runoob.com/linux/linux-shell.html

Check existence of input argument in a Bash shell script
https://stackoverflow.com/questions/6482377/check-existence-of-input-argument-in-a-bash-shell-script

How to Check if a File or Directory Exists in Bash
https://linuxize.com/post/bash-check-if-file-exists/

bash string compare to multiple correct values
https://stackoverflow.com/questions/21157435/bash-string-compare-to-multiple-correct-values

Bash – Check If Two Strings are Equal
https://tecadmin.net/tutorial/bash/examples/check-if-two-strings-are-equal/





paulwong 2020-07-06 09:23 鍙戣〃璇勮
]]>
Linux鏌ョ湅紼嬪簭绔彛鍗犵敤鎯呭喌http://m.tkk7.com/paulwong/archive/2014/10/13/418668.htmlpaulwongpaulwongMon, 13 Oct 2014 03:52:00 GMThttp://m.tkk7.com/paulwong/archive/2014/10/13/418668.htmlhttp://m.tkk7.com/paulwong/comments/418668.htmlhttp://m.tkk7.com/paulwong/archive/2014/10/13/418668.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/418668.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/418668.html浠婂ぉ鍙戠幇鏈嶅姟鍣ㄤ笂Tomcat 8080绔彛璧蜂笉鏉ワ紝鑰佹彁紺虹鍙e凡緇忚鍗犵敤銆?/p>

浣跨敤鍛戒護錛?/p>

ps -aux | grep tomcat

鍙戠幇騫舵病鏈?080绔彛鐨凾omcat榪涚▼銆?/p>

浣跨敤鍛戒護錛歯etstat –apn

鏌ョ湅鎵鏈夌殑榪涚▼鍜岀鍙d嬌鐢ㄦ儏鍐點傚彂鐜頒笅闈㈢殑榪涚▼鍒楄〃錛屽叾涓渶鍚庝竴鏍忔槸PID/Program name 

clip_image002

鍙戠幇8080绔彛琚玃ID涓?658鐨凧ava榪涚▼鍗犵敤銆?/p>

榪涗竴姝ヤ嬌鐢ㄥ懡浠わ細ps -aux | grep java錛屾垨鑰呯洿鎺ワ細ps -aux | grep pid 鏌ョ湅

clip_image004

灝卞彲浠ユ槑紜煡閬?080绔彛鏄鍝釜紼嬪簭鍗犵敤浜嗭紒鐒跺悗鍒ゆ柇鏄惁浣跨敤KILL鍛戒護騫叉帀錛?br style="margin: 0px; padding: 0px;" />

鏂規硶浜岋細鐩存帴浣跨敤 netstat   -anp   |   grep  portno
鍗籌細netstat –apn | grep 8080



paulwong 2014-10-13 11:52 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲人成综合网站7777香蕉| 亚洲av专区无码观看精品天堂| 国偷自产一区二区免费视频| 亚洲视频免费一区| 国产成人aaa在线视频免费观看 | 久久精品电影免费动漫| 亚洲va久久久久| 亚洲宅男天堂在线观看无病毒 | 亚洲综合伊人久久综合| 国产在线观看麻豆91精品免费| 国产亚洲精品91| 亚洲人成影院在线| 亚洲成A人片在线观看无码3D| 99久久免费精品高清特色大片| 国产精品亚洲专区无码牛牛| 亚洲av色影在线| 免费大黄网站在线观| 久久久久久精品免费看SSS| 无码毛片一区二区三区视频免费播放| 亚洲视频在线观看一区| 亚洲成?Ⅴ人在线观看无码| 亚洲天堂免费在线| A级毛片成人网站免费看| 亚洲av无码成人精品区一本二本| 亚洲国产综合专区在线电影| 亚洲精品黄色视频在线观看免费资源 | 免费jjzz在在线播放国产| 久久精品免费电影| 本道天堂成在人线av无码免费| 亚洲自偷自偷在线成人网站传媒| 久久精品亚洲中文字幕无码网站| 亚洲电影日韩精品| 免费观看的毛片手机视频| 最近2022中文字幕免费视频| 国产一级婬片A视频免费观看| 久久精品国产亚洲AV| 国产亚洲精品bv在线观看| 亚洲综合久久1区2区3区| 久久精品国产亚洲av麻| 亚洲国产精品成人精品无码区在线| 亚洲AV成人潮喷综合网|