??xml version="1.0" encoding="utf-8" standalone="yes"?>中文字幕一区二区三区av,国产精彩精品视频,亚洲国产精品久久精品怡红院http://www.aygfsteel.com/paulwong/category/50768.htmlzh-cnThu, 16 Jan 2025 02:42:00 GMTThu, 16 Jan 2025 02:42:00 GMT60开源镜像库http://www.aygfsteel.com/paulwong/archive/2025/01/13/451550.htmlpaulwongpaulwongMon, 13 Jan 2025 02:32:00 GMThttp://www.aygfsteel.com/paulwong/archive/2025/01/13/451550.htmlhttp://www.aygfsteel.com/paulwong/comments/451550.htmlhttp://www.aygfsteel.com/paulwong/archive/2025/01/13/451550.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/451550.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/451550.html https://mirrors.huaweicloud.com/home
https://mirrors.huaweicloud.com/artifactory/pypi-public/simple/torch/

清华:

paulwong 2025-01-13 10:32 发表评论
]]>
linux删除多余的旧内核http://www.aygfsteel.com/paulwong/archive/2025/01/05/451537.htmlpaulwongpaulwongSun, 05 Jan 2025 04:01:00 GMThttp://www.aygfsteel.com/paulwong/archive/2025/01/05/451537.htmlhttp://www.aygfsteel.com/paulwong/comments/451537.htmlhttp://www.aygfsteel.com/paulwong/archive/2025/01/05/451537.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/451537.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/451537.html
dnf remove $(dnf repoquery --installonly --latest-limit=-2)




paulwong 2025-01-05 12:01 发表评论
]]>
REDHEAD 8 LINUX 软g集合http://www.aygfsteel.com/paulwong/archive/2022/06/23/450773.htmlpaulwongpaulwongThu, 23 Jun 2022 09:27:00 GMThttp://www.aygfsteel.com/paulwong/archive/2022/06/23/450773.htmlhttp://www.aygfsteel.com/paulwong/comments/450773.htmlhttp://www.aygfsteel.com/paulwong/archive/2022/06/23/450773.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/450773.htmlhttp://www.aygfsteel.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://www.aygfsteel.com/paulwong/archive/2022/06/23/450772.htmlpaulwongpaulwongThu, 23 Jun 2022 09:21:00 GMThttp://www.aygfsteel.com/paulwong/archive/2022/06/23/450772.htmlhttp://www.aygfsteel.com/paulwong/comments/450772.htmlhttp://www.aygfsteel.com/paulwong/archive/2022/06/23/450772.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/450772.htmlhttp://www.aygfsteel.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无法q行jmaphttp://www.aygfsteel.com/paulwong/archive/2022/05/19/450751.htmlpaulwongpaulwongThu, 19 May 2022 05:53:00 GMThttp://www.aygfsteel.com/paulwong/archive/2022/05/19/450751.htmlhttp://www.aygfsteel.com/paulwong/comments/450751.htmlhttp://www.aygfsteel.com/paulwong/archive/2022/05/19/450751.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/450751.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/450751.htmlhttps://blog.csdn.net/qq_32447301/article/details/85109014


paulwong 2022-05-19 13:53 发表评论
]]>
REDHEAD 7 LINUX 软g集合http://www.aygfsteel.com/paulwong/archive/2021/12/22/436243.htmlpaulwongpaulwongWed, 22 Dec 2021 06:28:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/12/22/436243.htmlhttp://www.aygfsteel.com/paulwong/comments/436243.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/12/22/436243.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/436243.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/436243.htmlhttps://www.softwarecollections.org/en/

不用再GOOGLEL安装Ҏ?br />
安装MYSQLCZQ?br />
# 2. Install the collection:
$ sudo yum install rh-mariadb103

# 3. Start using software collections:
$ scl enable rh-mariadb103 bash

$ service rh-mariadb103-mariadb start 
$ mysql
$ mysqld

#开机加载命?br />cp /opt/rh/rh-mariadb103/enable /etc/profile.d/rh-mariadb103.sh


paulwong 2021-12-22 14:28 发表评论
]]>
LINUX下@环读取文件参数ƈCURLq程APIhttp://www.aygfsteel.com/paulwong/archive/2021/08/26/435954.htmlpaulwongpaulwongThu, 26 Aug 2021 07:40:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/08/26/435954.htmlhttp://www.aygfsteel.com/paulwong/comments/435954.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/08/26/435954.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435954.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435954.html
参数文gQtest1.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://www.aygfsteel.com/paulwong/archive/2021/07/14/435926.htmlpaulwongpaulwongWed, 14 Jul 2021 05:41:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/07/14/435926.htmlhttp://www.aygfsteel.com/paulwong/comments/435926.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/07/14/435926.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435926.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435926.html
sha512sum [OPTION] [FILE]



paulwong 2021-07-14 13:41 发表评论
]]>
NAS vs. SAN - What Are the Differences Between Themhttp://www.aygfsteel.com/paulwong/archive/2021/06/25/435910.htmlpaulwongpaulwongFri, 25 Jun 2021 07:18:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/06/25/435910.htmlhttp://www.aygfsteel.com/paulwong/comments/435910.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/06/25/435910.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435910.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435910.htmlhttps://www.backblaze.com/blog/whats-the-diff-nas-vs-san/

NAS vs. SAN: Differences and Use Cases
https://www.enterprisestorageforum.com/networking/nas-vs-san-differences-and-use-cases/

DAS / NAS / IP SAN / FC SAN区别
https://cloud.tencent.com/developer/article/1580887

paulwong 2021-06-25 15:18 发表评论
]]>
Bash get filename from given path on Linux or Unixhttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435879.htmlpaulwongpaulwongFri, 21 May 2021 06:10:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435879.htmlhttp://www.aygfsteel.com/paulwong/comments/435879.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435879.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435879.htmlhttp://www.aygfsteel.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 連線狀態機制與程http://www.aygfsteel.com/paulwong/archive/2020/12/29/435758.htmlpaulwongpaulwongTue, 29 Dec 2020 02:04:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/12/29/435758.htmlhttp://www.aygfsteel.com/paulwong/comments/435758.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/12/29/435758.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435758.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435758.htmlhttps://dev.twsiyuan.com/2017/09/tcp-states.html
在開發基?HTTP 的網路應用服務時Q當有大量連線要求Q或是與長連線 (Persistent connection) 要求時,常常遇到底層 TCP 的連線L錯誤Q導致服務不I定。因此研I了?TCP 的連線狀態機Ӟ並嘗試用自己的方式整理筆a,希望能從基礎知識中找到解決錯誤的R烦Q或是Q何能更進一步優化服務的手段?/p>

僅紀?TCP 連線狀態以及徏立或是斷開連線程Q關於進一步的 TCP 包協定可參?Reference 連線?/p>

TCP 建立連線 (Open)

通常?TCP 連線建立程與狀態,需要三ơ的a息交換來徏立連線 (three-way handshaking)Q?/p>

TCP 建立連線程? src=

TCP 建立連線程?/p>

其中左邊通常?serverQ右邊則?clientQ文字流E描qͼ

  1. Server 建立 TCBQ開啟監聽連線Q進入狀?LISTENING
  2. Client 發出連線要求 SYNQ進入狀?SYN-SENTQ等待回?/li>
  3. Server 收到 SYN 要求Q回應連線傳?nbsp;SYN+ACKQ並進入狀?SYN-RCVD (SYN-RECEIVED)
  4. Client 收到 SYN+ACK 完成連線進入狀?ESTABLISHEDQ並送出 ACK
  5. Server 收到 ACK 連線完成Q也進入狀?ESTABLISHED
  6. 雙方開始傳送交換資?/li>

該些名詞與狀態說明:

  • CLOSEDQ連線關閉狀?/li>
  • LISTENINGQ監聽狀態,被動{待連線
  • SYN-SENTQ主動送出連線要求 SYNQ並{待方回應
  • SYN-RCVDQ收到連線要求 SYNQ送出己方?SYN+ACK 後,{待方回應
  • ESTABLISHEDQ確定完成連線Q可開始傌資料
  • TCBQTransmission Control BlockQsee wiki
  • SYNQSynchronousQ表C方建立連線的同步符?/li>
  • ACKQAcknowledgementQ表C發送的數據已收到無?/li>

在徏立連線時,可能會發生雙方同步徏立連線的情?(Simultaneous open)Q常見於 P2P 的應用中Q其 TCP 建立連線的流E不太一樣:

TCP 同步建立連線程? src=

TCP 同步建立連線程?/p>

畫成 TCP 狀態流E圖會是這樣Q?/p>

TCP Open 狀態圖

TCP Open 狀態圖

TCP 斷開連線 (Close)

TCP 關閉程如下Q比建立連線還要複雜一些,需要經過四ơ的a息交換 (four-way handshaking)Q要注意的是可以是由 server Dvd關閉Q抑或是 client Dvd關閉Q?/p>

TCP 關閉連線程? src=

TCP 關閉連線程?/p>

其中左邊通常?client 狀?(?client dDv關閉連線)Q右邊則?server 狀態,文字程描述Q?/p>

  1. Client 準備關閉連線Q發?nbsp;FINQ進入狀?FIN-WAIT-1
  2. Server 收到 FINQ發回收到的 ACKQ進入狀?CLOSE-WAITQ並通知 App 準備L
  3. Client 收到 ACKQ進入狀?FIN-WAIT-2Q等?server 發出 FIN
  4. Server App 處理完斷R請求,發出 FINQ並進入狀?LAST-ACK
  5. Client 收到 FINQ並回傳?nbsp;ACKQ進入狀?TIME-WAITQ等待時間過後正式關閉連線
  6. Server 收到 ACKQ便直接關閉連線

該些名詞與狀態說明:

  • ESTABLISHEDQ連線開啟狀?/li>
  • CLOSE-WAITQ等待連線關閉狀態,{待 App 回應
  • LAST-ACKQ等待連線關閉狀態,{待遠端回應 ACK 後,侉K閉連線
  • FIN-WAIT-1Q等待連線關閉狀態,{待遠端回應 ACK
  • FIN-WAIT-2Q等待連線關閉狀態,{待遠端回應 FIN
  • TIME-WAITQ等待連線關閉狀態,{段一D|候,保證遠端有收到其 ACK 關閉連線 (E\廉問題)
  • CLOSEDQ連線關閉狀?/li>
  • FINQ表C關閉連線的同步符?/li>
  • ACKQAcknowledgementQ表C發送的數據已收到無?/li>

有可能連線的雙方同時發起關閉,雖然率還蠻低的Q?/p>

TCP 同步關閉連線程? src=

TCP 同步關閉連線程?/p>

這邊多一個狀態:

  • CLOSINGQ等待連線關閉狀態,{待遠端回應 ACK

畫成 TCP 狀態流E圖會是這樣Q?/p>

TCP Close 狀態圖

TCP Close 狀態圖

查詢珑֜電腦?TCP 狀?/h2>

查詢目前所有的連線狀?(Windows & Linux)Q?/p>

netstat -a

Reference



paulwong 2020-12-29 10:04 发表评论
]]>
LINUX SHELL之SCLhttp://www.aygfsteel.com/paulwong/archive/2020/11/05/435715.htmlpaulwongpaulwongThu, 05 Nov 2020 08:42:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/11/05/435715.htmlhttp://www.aygfsteel.com/paulwong/comments/435715.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/11/05/435715.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435715.htmlhttp://www.aygfsteel.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 发表评论
]]>
!!!服务器端各种安装http://www.aygfsteel.com/paulwong/archive/2020/10/24/435705.htmlpaulwongpaulwongSat, 24 Oct 2020 15:46:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/10/24/435705.htmlhttp://www.aygfsteel.com/paulwong/comments/435705.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/10/24/435705.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435705.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435705.htmlhttps://www.server-world.info/en/



paulwong 2020-10-24 23:46 发表评论
]]>
在LINUX中格式化JSON的工?jqhttp://www.aygfsteel.com/paulwong/archive/2020/10/12/435689.htmlpaulwongpaulwongMon, 12 Oct 2020 01:55:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/10/12/435689.htmlhttp://www.aygfsteel.com/paulwong/comments/435689.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/10/12/435689.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435689.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435689.html
wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
chmod +x ./jq
cp jq /usr/bin


paulwong 2020-10-12 09:55 发表评论
]]>
U上JVM工具http://www.aygfsteel.com/paulwong/archive/2020/10/09/435686.htmlpaulwongpaulwongFri, 09 Oct 2020 11:12:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/10/09/435686.htmlhttp://www.aygfsteel.com/paulwong/comments/435686.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/10/09/435686.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435686.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435686.htmlhttps://github.com/vipshop/vjtools

paulwong 2020-10-09 19:12 发表评论
]]>
linux shell 中检查文件夹是否存在http://www.aygfsteel.com/paulwong/archive/2020/09/25/435673.htmlpaulwongpaulwongFri, 25 Sep 2020 03:11:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/09/25/435673.htmlhttp://www.aygfsteel.com/paulwong/comments/435673.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/09/25/435673.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435673.htmlhttp://www.aygfsteel.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://www.aygfsteel.com/paulwong/archive/2020/09/25/435672.htmlpaulwongpaulwongFri, 25 Sep 2020 03:06:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/09/25/435672.htmlhttp://www.aygfsteel.com/paulwong/comments/435672.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/09/25/435672.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435672.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435672.htmlfunction fun1(){
  return 34
}

function fun2(){
  local res=$(fun1)
  echo $res
}
上面调用fun1Ӟ打印l果却不q回34Q这是ؓ何?原来函数只是q回l果成功与否的|q不能自定义。因此要Ҏ下面q种写法

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://www.aygfsteel.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://www.aygfsteel.com/paulwong/archive/2020/09/24/435670.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/435670.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2020/09/24/435670.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/435670.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/435670.html</trackback:ping><description><![CDATA[先在L机执行ssh-keygenQ再向被控机传输keyQ?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如下Q?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 />执行命oQ?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://www.aygfsteel.com/paulwong/aggbug/435670.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2020-09-24 10:52 <a href="http://www.aygfsteel.com/paulwong/archive/2020/09/24/435670.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux nohup命o详解http://www.aygfsteel.com/paulwong/archive/2020/09/02/435652.htmlpaulwongpaulwongWed, 02 Sep 2020 03:52:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/09/02/435652.htmlhttp://www.aygfsteel.com/paulwong/comments/435652.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/09/02/435652.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435652.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435652.html
nohup命oQ如果你正在q行一个进E,而且你觉得在退出帐h该进E还不会l束Q那么可以用nohup命o。该命o可以在你退出帐?关闭l端之后l箋q行相应的进E。nohup是不挂L意? n ohang up)?br />
一般都是在linux下nohup格式Q?nbsp; 

nohup command

或?br />
nohup command &

q之间的差别是带&的命令行Q即使terminalQ终端)关闭Q或者电脑死机程序依然运行(前提是你把程序递交到服务器上)Q?br />
它把标准输出QSTDOUTQ和标准错误QSTDERRQ结果输出到nohup.txt文gq个看似很方便,但是当输出很大的时候,nohup.txt文g会非常大Q或者多个后台命令的时候大安会输出到nohup.txt文gQ不利于查找l果和调试程序?br />
所以能够重定向输出会非常方ѝ下面要介绍标准输出Q标准输?和标准错误了?br />
其实我们一直都在用Q只是没有注意到Q?nbsp;

比如

>./command.sh > output

#q其中的>是标准输出W号Q其实是 1>output 的羃?br />
>./command.sh 2> output

Q这里的2>是标准错误输出到output文g里?br />
?< 则是标准输入了?br />
下面步入正题Q重定向后台命o

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

解释Q前面的nohup 和后面的&我想大家都能明白了把?br />
主要是中间的 2>&1的意?br />
q个意思是把标准错误(2Q重定向到标准输ZQ?Q,而标准输出又导入文goutput里面Q?  www.2cto.com

所以结果是标准错误和标准输出都导入文goutput里面了?br />
至于Z么需要将标准错误重定向到标准输出的原因,那就归结为标准错误没有缓冲区Q而stdout有?br />
q就会导?>output 2>output 文goutput被两ơ打开Q而stdout和stderr会竞争覆盖Q这肯定不是我门惌?

q就是ؓ什么有Z写成Q?br />
nohup ./command.sh >output 2>output
出错的原因了

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

最后谈一?dev/null文g的作?br />
q是一个无底洞QQ何东襉K可以定向到这里,但是却无法打开?br />
所以一般很大的stdou和stderr当你不关心的时候可以利用stdout和stderr定向到这?br />
>./command.sh >/dev/null 2>&1


paulwong 2020-09-02 11:52 发表评论
]]>
如何扑ևLINUX中消耗CPU最大的应用的PIDhttp://www.aygfsteel.com/paulwong/archive/2020/08/14/435642.htmlpaulwongpaulwongFri, 14 Aug 2020 03:52:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/08/14/435642.htmlhttp://www.aygfsteel.com/paulwong/comments/435642.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/08/14/435642.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435642.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435642.html
top -i //输出应用列表Qƈ隐藏IDEL的应?br /> P //在列表时Q按PQ则按CPU的用排?/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 发表评论
]]>shell 脚本替换文g中某个字W串http://www.aygfsteel.com/paulwong/archive/2020/08/07/435636.htmlpaulwongpaulwongFri, 07 Aug 2020 10:01:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/08/07/435636.htmlhttp://www.aygfsteel.com/paulwong/comments/435636.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/08/07/435636.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435636.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435636.html1、将当前目录下包含jack串的文g中,jack字符串替换ؓtom
sed -i "s/jack/tom/g" `grep "jack" -rl ./`

2、将某个文g中的jack字符串替换ؓtom

sed -i "s/jack/tom/g" test.txt

参考连接:http://blog.csdn.net/lizhi200404520/article/details/7968483


paulwong 2020-08-07 18:01 发表评论
]]>
TCL 的连接TIME_WAIT太多的处?/title><link>http://www.aygfsteel.com/paulwong/archive/2020/08/07/435632.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Fri, 07 Aug 2020 02:27:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2020/08/07/435632.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/435632.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2020/08/07/435632.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/435632.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/435632.html</trackback:ping><description><![CDATA[TCP TIME_WAIT 详解<br /><a target="_blank">https://www.zhuxiaodong.net/2018/tcp-time-wait-instruction/</a><br /><br />mysql服务器,大量tcpq接状态TIME_WAIT<br /><a target="_blank">https://www.cnblogs.com/zhjh256/p/6363312.html</a><br /><br />linux下释放TIME_WAITҎ<br /><a target="_blank">https://blog.csdn.net/u013488847/article/details/46421867</a><br /><br /><img src ="http://www.aygfsteel.com/paulwong/aggbug/435632.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2020-08-07 10:27 <a href="http://www.aygfsteel.com/paulwong/archive/2020/08/07/435632.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>l计文g行数或LIST目录的条?/title><link>http://www.aygfsteel.com/paulwong/archive/2020/08/05/435626.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Wed, 05 Aug 2020 03:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2020/08/05/435626.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/435626.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2020/08/05/435626.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/435626.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/435626.html</trackback:ping><description><![CDATA[<a target="_blank">https://www.thegeekdiary.com/how-to-count-lines-in-a-file-in-unix-linux/</a><br /><br /><img src ="http://www.aygfsteel.com/paulwong/aggbug/435626.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2020-08-05 11:32 <a href="http://www.aygfsteel.com/paulwong/archive/2020/08/05/435626.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用ssh-keygen和ssh-copy-id三步实现SSH无密码登?和ssh常用命ohttp://www.aygfsteel.com/paulwong/archive/2020/07/31/435622.htmlpaulwongpaulwongFri, 31 Jul 2020 06:19:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/07/31/435622.htmlhttp://www.aygfsteel.com/paulwong/comments/435622.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/07/31/435622.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435622.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435622.htmlssh-keygen  产生公钥与私钥对.
ssh-copy-id 本机的公钥复制到远E机器的authorized_keys文g中,ssh-copy-id也能让你有到q程机器的home, ~./ssh , ?~/.ssh/authorized_keys的权?/div>
W一?在本地机器上使用ssh-keygen产生公钥U钥?div id="codeText" style="box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word;">
  1. zhz@zhz:~/$ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/zhz/.ssh/id_rsa):
  2. Enter passphrase (empty for no passphrase): [Press enter key
  3. same passphrase again: [Pess enter key]
  4. Your identification has been saved in /home/zhz/.ssh/id_rsa.
  5. Your public key has been saved in /home/zhz/.ssh/id_rsa.pub.
  6. The key fingerprint is:
  7. 用cat命o查看是否生成产生公钥U钥?/li>
  8. zhz@zhz:~$ cat .ssh/id_rsa.pub
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl9N5+xboqSIagBx02rdZ2fkROCPW8iW7hl6Gu+2hkBYYy/b1qcOm8RF/AMyas3i0QEK7Hcu9H51l2lulVbS5n9M9FaWIyYzssaS012x2mg9iA6MxPMlaXFsZ5jnVrGicndzf3VUu9kCErp5q0OzzMjsG3PKQevzWZJSBaFgc8NF5ZJ+VT54BN8ktMTHVwOo15I2Uai+bs4eP0NsuwIJmGyYIUOuvTuUtJxGV3hZ+tcjhupupqVCwYOE+cDz8VkFBGtnKsdE69hWoY2VUfEOAfHZptra7Ce9dXfDgx9jxuuNiJYtGo/bZDfe+UJ5HUv8wrL+hFeRIihdmP2CKJD8j5 zhz@zhz


W二?用ssh-copy-id公钥复制到q程机器?div style="box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word;">
  1. zhz@zhz:~$  ssh-copy-id -i .ssh/id_rsa.pub  用户名字@192.168.x.xxx

注意: ssh-copy-id key写到q程机器?~/ .ssh/authorized_key.文g?/p>W三? d?/span>q程机器不用输入密码

  1. zhz@zhz:~$  ssh 用户名字@192.168.x.xxx

  2. Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2

常见问题Q?/p>

  1. ssh-copy-id -u eucalyptus -i ~eucalyptus/.ssh/id_rsa.pub ssh 用户名字@192.168.x.xxx
  2. W一ơ需要密码登?br style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word;" />

上述是给eucalyptus用户赋予无密码登陆的权利

  1. /usr/bin/ssh-copy-id: ERROR: No identities found

使用选项 -i Q当没有g递的时候或?nbsp;如果 ~/.ssh/identity.pub 文g不可讉KQ不存在Q? ssh-copy-id 显CZq的错误信息  Q?-i选项会优先用将ssh-add -L的内容)



ssh命o

1、复制SSH密钥到目标主机,开启无密码SSHd

ssh-copy-id user@host

如果q没有密钥,请用ssh-keygen命o生成?/p>

2、从某主机的80端口开启到本地L2001端口的隧?/span>

ssh -N -L2001:localhost:80 somemachine

现在你可以直接在览器中输入http://localhost:2001讉Kq个|站?/p>

3、将你的麦克风输出到q程计算机的扬声?/span>

dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp

q样来自你麦克风端口的声韛_在SSH目标计算机的扬声器端口输出,但遗憄是,声音质量很差Q你会听到很多嘶嘶声?/p>

4、比较远E和本地文g

ssh user@host cat /path/to/remotefile | diff /path/to/localfile –

在比较本地文件和q程文g是否有差异时q个命o很管用?/p>

5、通过SSH挂蝲目录/文gpȝ

sshfs name@server:/path/to/folder /path/to/mount/point

?a rel="nofollow" style="box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: #6795b5; overflow-wrap: break-word;">http://fuse.sourceforge.net/sshfs.html下蝲sshfsQ它允许你跨|络安全挂蝲一个目录?/p>

6、通过中间L建立SSHq接

ssh -t reachable_host ssh unreachable_host

Unreachable_host表示从本地网l无法直接访问的LQ但可以从reachable_host所在网l访问,q个命o通过到reachable_host?#8220;隐藏”q接Q创v到unreachable_host的连接?/p>

7、将你的SSH公钥复制到远E主机,开启无密码d – 单的Ҏ

ssh-copy-id username@hostname

8、直接连接到只能通过LBq接的主机A

ssh -t hostA ssh hostB

当然Q你要能讉KLA才行?/p>

9、创建到目标L的持久化q接

ssh -MNf <user>@<host>

在后台创建到目标L的持久化q接Q将q个命o和你~/.ssh/config中的配置l合使用Q?/p>

Host host ControlPath ~/.ssh/master-%r@%h:%p ControlMaster no

所有到目标L的SSHq接都将使用持久化SSH套接字,如果你用SSH定期同步文gQ用rsync/sftp/cvs/svnQ,q个命o非常有用,因ؓ每次打开一个SSHq接时不会创建新的套接字?/p>

10、通过SSHq接屏幕

ssh -t remote_host screen –r

直接q接到远E屏q会话(节省了无用的父bashq程Q?/p>

11、端口检(敲门Q?/span>

knock <host> 3000 4000 5000 && ssh -p <port> user@host && knock <host> 5000 4000 3000

在一个端口上敲一下打开某个服务的端口(如SSHQ,再敲一下关闭该端口Q需要先安装knockdQ下面是一个配|文件示例?/p>

[options] logfile = /var/log/knockd.log [openSSH] sequence = 3000,4000,5000 seq_timeout = 5 command = /sbin/iptables -A INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT tcpflags = syn [closeSSH] sequence = 5000,4000,3000 seq_timeout = 5 command = /sbin/iptables -D INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT tcpflags = syn

12、删除文本文件中的一行内容,有用的修?/span>

ssh-keygen -R <the_offending_host>

在这U情况下Q最好用专业的工具?/p>

13、通过SSHq行复杂的远Eshell命o

ssh host -l user $(<cmd.txt)

更具UL性的版本Q?/p>

ssh host -l user “`cat cmd.txt`”

14、通过SSHMySQL数据库复制到新服务器

mysqldump –add-drop-table –extended-insert –force –log-error=error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost “mysql -uUSER -pPASS NEW_DB_NAME”

通过压羃的SSH隧道Dump一个MySQL数据库,其作ؓ输入传递给mysql命oQ我认ؓq是q移数据库到新服务器最快最好的Ҏ?/p>

15、删除文本文件中的一行,修复“SSHL密钥更改”的警?/span>

sed -i 8d ~/.ssh/known_hosts

16、从一台没有SSH-COPY-ID命o的主机将你的SSH公钥复制到服务器

cat ~/.ssh/id_rsa.pub | ssh user@machine “mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys”

如果你用Mac OS X或其它没有ssh-copy-id命o?nix变种Q这个命令可以将你的公钥复制到远E主机,因此你照样可以实现无密码SSHd?/p>

17、实时SSH|络吞吐量测?/span>

yes | pv | ssh $host “cat > /dev/null”

通过SSHq接C机,昄实时的传输速度Q将所有传输数据指?dev/nullQ需要先安装pv?/p>

如果是DebianQ?/p>

apt-get install pv

如果是FedoraQ?/p>

yum install pv

Q可能需要启用额外的软g仓库Q?/p>

18、如果徏立一个可以重新连接的q程GNU screen

ssh -t user@some.domain.com /usr/bin/screen –xRR

ZL喜欢在一个文本终端中打开许多shellQ如果会话突然中断,或你按下?#8220;Ctrl-a d”Q远E主Z的shell不会受到丝毫影响Q你可以重新q接Q其它有用的screen命o?#8220;Ctrl-a c”Q打开新的shellQ和“Ctrl-a a”Q在shell之间来回切换Q,误问http://aperiodic.net/screen/quick_reference阅读更多关于screen命o的快速参考?/p>

19、lSCP大文?/span>

rsync –partial –progress –rsh=ssh $file_source $user@$host:$destination_file

它可以恢复失败的rsync命oQ当你通过VPN传输大文Ӟ如备份的数据库时q个命o非常有用Q需要在两边的主Z安装rsync?/p>

rsync –partial –progress –rsh=ssh $file_source $user@$host:$destination_file local -> remote

?/p>

rsync –partial –progress –rsh=ssh $user@$host:$remote_file $destination_file remote -> local

20、通过SSH W/ WIRESHARK分析量

ssh root@server.com ‘tshark -f “port !22″ -w -' | wireshark -k -i –

使用tshark捕捉q程L上的|络通信Q通过SSHq接发送原始pcap数据Qƈ在wireshark中显C,按下Ctrl+C停止捕捉,但也会关闭wiresharkH口Q可以传递一?#8220;-c #”参数ltsharkQ让它只捕捉“#”指定的数据包cdQ或通过命名道重定向数据,而不是直接通过SSH传输lwiresharkQ我你过滤数据包Q以节约带宽Qtshark可以使用tcpdump替代Q?/p>

ssh root@example.com tcpdump -w – ‘port !22′ | wireshark -k -i –

21、保持SSH会话怹打开

autossh -M50000 -t server.example.com ‘screen -raAd mysession’

打开一个SSH会话后,让其保持怹打开Q对于用笔记本电脑的用P如果需要在Wi-Fi热点之间切换Q可以保证切换后不会丢失q接?/p>

22、更E_Q更快,更强的SSH客户?/span>

ssh -4 -C -c blowfish-cbc

强制使用IPv4Q压~数据流Q用Blowfish加密?/p>

23、用cstream控制带宽

tar -cj /backup | cstream -t 777k | ssh host ‘tar -xj -C /backup’

使用bzip压羃文g夹,然后?77k bit/s速率向远E主Z输。Cstreamq有更多的功能,误问http://www.cons.org/cracauer/cstream.html#usage了解详情Q例如:

echo w00t, i’m 733+ | cstream -b1 -t2

24、一步将SSH公钥传输到另一台机?/span>

ssh-keygen; ssh-copy-id user@host; ssh user@host

q个命ol合允许你无密码SSHdQ注意,如果在本地机器的~/.ssh目录下已l有一个SSH密钥对,ssh-keygen命o生成的新密钥可能会覆盖它们,ssh-copy-id密钥复制到q程LQƈq加到远E̎L~/.ssh/authorized_keys文g中,使用SSHq接Ӟ如果你没有用密钥口令,调用ssh user@host后不久就会显CEshell?/p>

25、将标准输入QstdinQ复制到你的X11~冲?/span>

ssh user@host cat /path/to/some/file | xclip

你是否用scp文件复制到工作用电脑上Q以便复制其内容到电子邮件中Qxclip可以帮到你,它可以将标准输入复制到X11~冲区,你需要做的就是点击鼠标中键粘贴缓冲区中的内容?/p>

如果你还有其它SSH命o技巧,Ƣ迎在本文评Z帖出?/p>

原文Q?a rel="nofollow" style="box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: #6795b5; overflow-wrap: break-word;">http://blog.urfix.com/25-ssh-commands-tricks/







paulwong 2020-07-31 14:19 发表评论
]]>
一ơ删除前5个以外的其他文g夹的SHELLhttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435614.htmlpaulwongpaulwongMon, 27 Jul 2020 03:35:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435614.htmlhttp://www.aygfsteel.com/paulwong/comments/435614.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435614.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435614.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435614.html
find path/to/folder/ -mindepth 1 -maxdepth 1 -type d | head -n -5 | xargs rm -rf

-find: the unix command for finding files / directories / links etc.
-/path/to/base/dir: the directory to start your search in.
-mindepth 1 -maxdepth 1 only search the first sub folder
-type d: only find directories
-head -n -5: Filter out all lines except the last 5
-xargs rm -rf: remove each given folder.


paulwong 2020-07-27 11:35 发表评论
]]>
一ơ删?0天前的文件夹的SHELLhttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435613.htmlpaulwongpaulwongMon, 27 Jul 2020 02:48:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435613.htmlhttp://www.aygfsteel.com/paulwong/comments/435613.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/07/27/435613.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435613.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435613.htmlfind /path/to/base -mindepth 1 -maxdepth 1 -type d -ctime +10 | xargs rm -rf

-find: the unix command for finding files / directories / links etc.
/path/to/base/dir: the directory to start your search in.
-type d: only find directories
-ctime +10: only consider the ones with modification time older than 10 days
-exec  \;: for each such result found, do the following command in 
-rm -rf dir1 dir2 dir3 

https://stackoverflow.com/questions/13868821/shell-script-to-delete-directories-older-than-n-days

paulwong 2020-07-27 10:48 发表评论
]]>
LINUX SHELLhttp://www.aygfsteel.com/paulwong/archive/2020/07/06/435591.htmlpaulwongpaulwongMon, 06 Jul 2020 01:23:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/07/06/435591.htmlhttp://www.aygfsteel.com/paulwong/comments/435591.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/07/06/435591.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435591.htmlhttp://www.aygfsteel.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 发表评论
]]>
How To Run Java Jar Application with Systemd on Linuxhttp://www.aygfsteel.com/paulwong/archive/2020/05/11/435427.htmlpaulwongpaulwongMon, 11 May 2020 08:16:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/05/11/435427.htmlhttp://www.aygfsteel.com/paulwong/comments/435427.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/05/11/435427.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435427.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435427.htmlhttps://computingforgeeks.com/how-to-run-java-jar-application-with-systemd-on-linux/

systemd自启动javaE序
https://www.cnblogs.com/yoyotl/p/8178363.html
------------------------------------------------------------

[Unit]
Description=TestJava
After=network.target

[Service]
Type=forking
ExecStart=/home/test/startTest.sh
ExecStop=/home/test/stopTest.sh

[Install]
WantedBy=multi-user.target

-------------------------------------------------------------
How to Autorun application at the start up in Linux
https://developer.toradex.com/knowledge-base/how-to-autorun-application-at-the-start-up-in-linux

How to automatically run program on Linux startup
https://www.simplified.guide/linux/automatically-run-program-on-startup


Systemd 入门教程Q实战篇
https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html

Systemd 入门教程Q命令篇

http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html

paulwong 2020-05-11 16:16 发表评论
]]>
How to disable IPv6 on CentOS / RHEL 7http://www.aygfsteel.com/paulwong/archive/2020/05/06/435410.htmlpaulwongpaulwongWed, 06 May 2020 04:42:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/05/06/435410.htmlhttp://www.aygfsteel.com/paulwong/comments/435410.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/05/06/435410.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435410.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435410.html https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-ipv6/

https://linuxconfig.org/redhat-8-enable-disable-ipv6




paulwong 2020-05-06 12:42 发表评论
]]>
How To Count Files in Directory on Linuxhttp://www.aygfsteel.com/paulwong/archive/2020/05/05/435404.htmlpaulwongpaulwongTue, 05 May 2020 09:01:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/05/05/435404.htmlhttp://www.aygfsteel.com/paulwong/comments/435404.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/05/05/435404.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435404.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435404.htmlhttps://devconnected.com/how-to-count-files-in-directory-on-linux/



paulwong 2020-05-05 17:01 发表评论
]]>
վ֩ģ壺 Т| | Ȫ| ǭ| | ɽ| Դ| | | | | | | | ԭ| ̫| | | | ֹ| | ɶ| ƽ| | ԭ| | ˳| | | | | Ȩ| | | մ| Ƶ| | Դ| | | ̺|