|
发表于 2019-10-24 21:09:32
|
显示全部楼层
本帖最后由 QQ66566 于 2019-10-24 21:40 编辑 + G# ?9 @: g8 `2 p
! ]- B+ Y7 g$ _# z7 ?/ ]3 _
搞定很不错。3 l4 t6 J" J% ]7 z4 [* Z# B
下载对应猫盘文件3 n9 i% D: {3 g: }: |: M- ]5 y
https://github.com/philippe44/AirConnect
$ p; L: l, Q3 \4 G B% B* ~! Jbin/aircase-aarch64/ S2 e- t1 j5 G! P, w
bin/airupnp-aarch64* J: z( D) b. I' O
Q1 ~* d, A6 G* ^- I8 c. T# ^. R添加服务$ D! Z" _( r# N8 Z9 k! _# E) z
nano /etc/systemd/system/airupnp.service/ q* d3 t; h( F; I
3 b* s, B/ S5 e8 E
. [- S7 P) E2 R[Unit] 6 d- o4 T% M9 B4 U$ C3 W: Y
Description=AirUPnP bridge
3 \+ b8 }5 o4 r& zAfter=network-online.target
7 J1 i+ x# b+ FWants=network-online.target
0 B! d l. z9 ^0 j$ E7 i: h4 i; f) a7 X8 L+ a
[Service]
5 E, ` S( a4 m4 Y& }ExecStart=/var/lib/airconnect/airupnp-aarch64 -l 1000:2000 -Z -x /var/lib/airconnect/airupnp.xml
% K* Y K+ z2 h/ c0 LRestart=on-failure
$ ~) E6 s, D7 [5 mRestartSec=30 + j4 n. F) H- k$ n
# k2 |, u8 z: d- V5 {1 a
[Install] & o; x+ X/ E. r. w
WantedBy=multi-user.target
( s8 ^% T, u# \; p3 N9 K2 }, ~0 @( F
启动服务
; W, R9 N2 p' o1 z6 psystemctl start airupnp.service ^' T' m! W- s% q p
停止服务$ T* O" n- Y( Z5 g* e6 a/ K
systemctl stop airupnp.service
- Y) k% R; r) Z& R" }# s: d4 b" ]添加启动服务
. N+ [. U, M2 p# a+ o( h1 \' A- C0 Xsystemctl enable airupnp.service
+ x, o/ O. R9 H0 K查看服务
# F+ E q' n$ H, Asystemctl status airupnp.service& k# [) M7 W8 Z9 B
: o) p; T( i& i6 k0 p8 ` |
|