|
|
发表于 2019-10-24 21:09:32
|
显示全部楼层
本帖最后由 QQ66566 于 2019-10-24 21:40 编辑
& V% }+ |9 U, ?% |5 m* ?- r& A' ^, f" y# g1 V! K1 e" N
搞定很不错。
5 r; Y7 U8 `, Q" [5 s4 [下载对应猫盘文件" t' Q x* u \& f4 L1 s
https://github.com/philippe44/AirConnect( j% m& K+ `( J- O% V; z! O* x
bin/aircase-aarch64: T G) k; v' G8 i
bin/airupnp-aarch64
, H }+ g1 g* [- s
+ P0 s; w! m3 ~- ?添加服务
6 c& p# T: [: G: Q" d C/ O0 P$ W0 t% znano /etc/systemd/system/airupnp.service
% i X$ L/ c" h- g$ A" W# N. A( O. d$ R; q j- D2 e! T" w
% e2 `7 m$ x) Y% n/ P
[Unit] 9 _$ ~7 Z j k. ^ a. Z# |. o7 T
Description=AirUPnP bridge
1 f- Q: f, c- t# |$ GAfter=network-online.target / X5 D) K: }$ c5 F* ]/ H" R) C
Wants=network-online.target " ]. S0 b/ E1 G1 }
1 ^ s+ ~( g! U- s6 G* D: V[Service] 0 m, t4 z$ j' J7 M1 ^
ExecStart=/var/lib/airconnect/airupnp-aarch64 -l 1000:2000 -Z -x /var/lib/airconnect/airupnp.xml
7 `/ m( v9 Z6 X$ \% @4 F; l6 cRestart=on-failure
- B' P! I6 j' W* }, U8 C$ }& bRestartSec=30
" p& F# a+ L5 z, m3 L2 J5 ]2 W. C, |3 }1 H5 T# b9 I
[Install] ( a: K2 j; q) C( O+ P+ K& p3 t
WantedBy=multi-user.target
) W1 T5 D9 C7 w
$ O, c7 l* X5 M$ Y' `启动服务% k9 K* C( g) D' e. u2 }3 E; i. {9 v
systemctl start airupnp.service
7 [. ]0 ?% e, z* A0 e/ S停止服务
) N. n! i O8 X! t5 usystemctl stop airupnp.service. ?$ \ ^) B/ p
添加启动服务. L, a8 L+ w9 u1 b: \2 _
systemctl enable airupnp.service6 \; ]2 Q0 k8 B. F, B4 Q
查看服务: H* f) g- s5 @, E! ~
systemctl status airupnp.service
: ~: c, w& `' i/ O6 {# a5 [+ Y/ e2 [
|
|