|
发表于 2020-3-7 13:57:17
|
显示全部楼层
紫萱紫萱 发表于 2020-3-6 22:05
( d4 A' O, O4 ^, W! S9 Z8 i3 u; B120j测试& c: B6 u2 r' L: O
改为2 J+ Y$ Y# Z/ y3 p0 R: w' q
smartctl -a /dev/hda -d ata | sed -n '/Temperature_Celsius/p' | awk '{print $10}' & Q) F2 j' n5 M
层主,你120J是用什么办法休眠的?我按照http://bbs.nasdiyer.com/forum.ph ... =%E4%BC%91%E7%9C%A0在SSH里面找不到他图片上的内容" E1 u! s4 P8 F2 N6 } W- D
login as: admin; i/ {! E6 L4 W. N
admin@192.168.0.105's password:& P N; d, ~! f+ _7 T2 }. p
admin@DS120J:~$ sudo vi /etc/init/syslog-ng.conf* s* A8 H7 _) O" e' m( `& g
Password:' q0 g: t5 ^5 B
author "Development Infrastructure Team"
( {5 w% x! n) \( V* z0 }+ Q" A0 Pdescription "start syslog-ng"
* J4 z/ v5 C$ e2 u. R( J: r! Q; v
# _( j9 j: v8 |* w' Gstart on stopped hostname% a9 ?$ m+ h- \* \4 \
8 h1 _% T- Q" Y
oom score -999
! H, ?2 l% d0 D2 ]: B' e9 U5 U1 M7 D4 _1 g
respawn
7 E& i( ?" Q) o2 S5 F/ srespawn limit 5 10
* G. W. E( F/ c# w* E: t$ t, f
y9 D, ^. Y5 G, g: k. f7 `( a% gconsole log# J# M ~% D5 D9 [. a. m. y) s4 q
( `, ~# L1 w! q' {; |$ c0 {pre-start script: C7 Z& f$ X% g/ w' v( A
# skip pre-start for synoservice --reload syslog-ng
2 E7 f8 F8 Y# a6 s+ C if ! /bin/flock -n /var/run/syslog-ng.lock true; then7 m3 u$ g. N% T( s& X* n b' k
exit 07 Z, U" L, ]. I. E; y
fi2 T* ~% `) E4 O3 F
- D+ m3 E# u+ |2 b
# check /dev/log is a domain socket file
u1 }1 n9 {+ u # prevent error='Address already in use (98)'
4 G1 x3 _4 J6 {1 l$ o if [ ! -S /dev/log ]; then
' m+ q9 R9 E6 c rm -f /dev/log
; D9 }) A& D9 m/ T8 b- J5 _ fi
. ]0 Q% x. o* R5 G"/etc/init/syslog-ng.conf" 78L, 2216C 1,1 Top
( I( ], O: |6 ~/ U) M不知道该在哪里添加 |
|