|
|
本帖最后由 QQ66566 于 2019-10-24 21:40 编辑
& M% B3 V8 d, b6 n5 r$ v4 i; p9 b: p2 w
搞定很不错。
/ Q8 u) D3 f7 H9 y; ~/ m下载对应猫盘文件- w& V- `! u* o; t7 k5 M2 h
https://github.com/philippe44/AirConnect( Y+ b' s; s) K# ~
bin/aircase-aarch641 A; A6 D2 m9 v1 e3 }; G
bin/airupnp-aarch64+ C! p$ p. F# B; h& d# T
* I) s6 T1 w# V( B% _
添加服务/ u/ ?( i c! W( }: j
nano /etc/systemd/system/airupnp.service. F: g. R0 N- g, K
' C0 p9 D0 f6 }7 V" t e
: M9 r6 [2 |; ]4 f[Unit] 1 h9 M L& V% w- a7 R' d, K$ L
Description=AirUPnP bridge 8 h5 U8 E9 x; p, J* o/ j* Y$ }0 T$ v
After=network-online.target
* z' }5 X( s$ F$ M9 eWants=network-online.target
- _% j9 i/ d5 X. p# F; n
6 |6 V: v8 b$ ?% q9 i* H& B[Service]
6 w8 y5 D- n9 U2 rExecStart=/var/lib/airconnect/airupnp-aarch64 -l 1000:2000 -Z -x /var/lib/airconnect/airupnp.xml
8 C1 P6 M. H0 [+ _Restart=on-failure
, f0 Q& J8 N& W0 g: KRestartSec=30 5 b8 o) `) V7 p) J
% J3 B/ t8 e0 F0 p$ J! B[Install]
9 b! L0 o. ~+ [( {WantedBy=multi-user.target
# I" f8 ^! o& B$ S) Y
. n' ]3 L9 {( F4 a启动服务/ u5 k1 R4 \( Q( x* L6 @
systemctl start airupnp.service$ L/ V$ F" n! L1 ?7 M& i, X- |
停止服务6 {% C( R0 J) q$ G- e. k
systemctl stop airupnp.service
8 D+ W+ p% @/ ~" O- I添加启动服务
* U3 E ]1 |- A9 ^4 z# Q8 b6 c& [- Lsystemctl enable airupnp.service
5 \7 x1 ^0 J1 g0 x* V, g查看服务
U0 L. u! m! O$ r# Y2 vsystemctl status airupnp.service
4 \, f* A/ Q1 @; H$ O0 z
D, _" z% M9 i0 V4 P2 l |
|