|
|
发表于 2019-10-24 21:09:32
|
显示全部楼层
本帖最后由 QQ66566 于 2019-10-24 21:40 编辑 7 k% a4 T4 K4 D- b! w# N7 y
( A) A: {# V# Z1 b& W# g
搞定很不错。
* V' b; _0 i1 y# H9 b/ h下载对应猫盘文件
4 T; X9 @, `% S9 `" _https://github.com/philippe44/AirConnect+ a* ~& O/ a$ A' H; f/ I5 h/ G
bin/aircase-aarch64, k1 B& r' m0 r8 h+ L
bin/airupnp-aarch64
8 F* x8 j1 [5 }9 @ ]" @# X; a6 C6 L1 B5 O e* y
添加服务1 M5 c. J. w& M/ }5 `6 B$ V
nano /etc/systemd/system/airupnp.service; v8 U9 e' J" V) d* s
9 Q$ D- p8 }) ^4 U8 h
& h& f" W* g+ @0 d9 h! Z' I6 W! n9 ^/ p[Unit]
( p& z5 N& ~. v( @: {Description=AirUPnP bridge 1 I' u) W: ]) O ?0 l5 e, \7 x$ K
After=network-online.target
+ N9 E- l5 n2 V/ X# RWants=network-online.target / _' A! N0 K9 ?# q' G( A- Y
2 @: G$ Z& q7 l& |, J, ~) {# L
[Service]
8 t4 C8 T) ]1 P( B5 t. IExecStart=/var/lib/airconnect/airupnp-aarch64 -l 1000:2000 -Z -x /var/lib/airconnect/airupnp.xml & _# Z+ n/ g# T# }
Restart=on-failure
& |- p$ u/ ?7 y1 cRestartSec=30
1 V+ ?) U0 J+ G0 K8 W" Q" m
' O8 C8 |5 K, a( y: [. l' b$ n1 j[Install]
8 |! \* N- y, |5 A& a( J" XWantedBy=multi-user.target
( l2 @, T, W8 l$ _
2 [" d9 M6 [, J- Z) z4 v' Q3 D8 Q2 G% F启动服务
9 u* @: ?' _! O1 {' hsystemctl start airupnp.service' _2 {/ N) x% ~
停止服务& U+ @0 u, d9 |( `
systemctl stop airupnp.service9 A E7 @3 [# S& @) S' x
添加启动服务3 t) f8 [5 [( H# m
systemctl enable airupnp.service8 Z+ u. G- Q; n/ i0 H5 j
查看服务/ s' ^; X, o5 X2 g- v
systemctl status airupnp.service* ]9 q5 C) D, m
, B) u3 j( ]$ m# k/ Q |
|