1. 濡备綍鍒╃敤qbittorrent鍜岀‖阈炬帴锷熻兘鍦ㄤ笅杞绍T璧勬簮镞惰嚜锷ㄦ暣鐞嗘枃浠跺苟鑺傜渷绌洪棿锛
浣跨敤qbittorrent鍜岀郴缁熷懡浠ゅ疄鐜拌祫婧愭暣鐞嗕笌PT涓嬭浇钖屾
BT鍜孭T璧勬簮铏藉ソ锛屼絾涓嬭浇钖庣殑鏂囦欢绠$悊鍗存槸涓闂棰樸傞溃瀵规贩涔辩殑鏂囦欢钖嶅拰鐩褰旷粨鏋勶纴浠ュ强棰濆栫殑瑙嗛戞枃浠讹纴濡备綍鍦ㄤ缭鎸佹枃浠舵暣娲佺殑钖屾椂锛屼笉鍗犵敤棰濆栫┖闂村苟鏀鎸丳T涓嬭浇锻锛熺瓟妗埚湪浜嶭inux镄勭‖阈炬帴锷熻兘銆傛湰鏂囧皢浠嬬粛涓绉嶆棤闇棰濆栧伐鍏风殑鏂规硶锛屽埄鐢╭bittorrent镄勭壒镐ф潵瀹屾垚銆
棣栧厛锛屼粠涓涓鍏ㄦ柊镄勪笅杞芥枃浠跺す寮濮嬶纴渚嫔傚悕涓"Example"镄勫叡浜鏂囦欢澶广俼bittorrent浼氩皢璧勬簮涓嬭浇镊"Download"瀛愭枃浠跺す涓銆傝剧疆qbittorrent镞讹纴浣跨敤docker-compose𨱒ョ$悊锛屽傞厤缃鏂囦欢镓绀猴细
docker-compose.yml
...锛堢渷鐣ラ儴鍒嗗唴瀹癸级
鍏抽敭璁剧疆鍖呮嫭锛氩皢Example鍏变韩鏂囦欢澶规寕杞藉埌瀹瑰櫒镄/downloads鐩褰曪纴浠ュ强鍦╰orrent瀹屾垚涓嬭浇钖庤嚜锷ㄨ繍琛宐ash鑴氭湰杩涜屾枃浠堕吨锻藉悕鍜岀Щ锷ㄣ傝剼链".sh"濡备笅锛
.sh
#!/bin/bash
INPUT=$1
OUTPUT=${INPUT/Download/}
echo link $INPUT to $OUTPUT
cp -lr "$INPUT" "$OUTPUT"
杩愯宷bittorrent锛岄厤缃涓嬭浇鐩褰曘佸畬鎴愭椂镓ц岃剼链锛岀‘淇漌indows鐢ㄦ埛娉ㄦ剰琛屽熬鎹㈣岀︾殑姝g‘镐с傝繖镙凤纴褰撶嶅瓙涓嬭浇瀹屾垚钖庯纴Example镙圭洰褰曞拰Download鐩褰曞皢钖勬湁涓涓鏂囦欢锛屼笖淇鏀规牴鐩褰曚腑镄勬枃浠朵笉浼氩奖鍝岲ownload鍐呯殑鏁版嵁锛屽彧闇鍗犵敤涓浠界┖闂淬
褰扑笉鍐嶉渶瑕佺嶅瓙镞讹纴鍙闇鍦╭bittorrent涓鍒犻櫎鐩稿叧浠诲姟鍜屾暟鎹锛孍xample涓镄勬暣鐞嗘枃浠朵笉鍙楀奖鍝嶃傝嫢闇褰诲簳鍒犻櫎锛岃板缑钖屾椂鍒犻櫎纭阈炬帴銆傛湰鏂囨棬鍦ㄦ彁渚涗竴绉嶅疄鐢ㄧ殑瑙e喅鏂规堬纴娆㈣繋鍊煎弸浠浜ゆ祦鎺㈣ㄣ