'2018/12/03'에 해당되는 글 3건

  1. 2018.12.03 centos 서비스 등록하기
  2. 2018.12.03 오늘의 늬우스
  3. 2018.12.03 아 몰랑 일단 질러 5
Linux/centos2018. 12. 3. 17:13

_

2019.03.21

centos7 기준 아래 경로가 잘못되어 수정

# vi /usr/lib/systemd/system/servicename




# vi /usr/lib/systemd/service/servicename

[Unit]

Description = making network connection up

After = network.target


[Service]

ExecStart = /root/scripts/conup.sh


[Install]

WantedBy = multi-user.target


실제 서비스 등록

# chmod +x /root/scripts/conup.sh

# systemctl enable servicename  


[링크 : https://www.tecmint.com/create-new-service-units-in-systemd/]



+

node.js 경로줘서 실행하기


npm start --prefix path/to/your/app 


[링크 : https://stackoverflow.com/questions/36172442/how-to-npm-start-at-a-different-directory]


+

귀찮으니.. whereis로 찾아서

/bin/http-server 와(얘는 걍 스크립트)

/bin/node 를 만들어 주면 해결!(얘는 바이너리)

[링크 : http://leechwin.tistory.com/...usrbinenv-node-No-such-file-or-directory-에러가-발생하는-경우]



+

reload를 적용하려면 아래의 줄을 [service] 항목에 추가하면 되는 듯?

[Unit]

Description=The NGINX HTTP and reverse proxy server

After=syslog.target network.target remote-fs.target nss-lookup.target


[Service]

Type=forking

PIDFile=/run/nginx.pid

ExecStartPre=/usr/sbin/nginx -t

ExecStart=/usr/sbin/nginx

ExecReload=/bin/kill -s HUP $MAINPID

ExecStop=/bin/kill -s QUIT $MAINPID

PrivateTmp=true


[Install]

WantedBy=multi-user.target 


[링크 : https://www.shellhacks.com/systemd-service-file-example/]

Posted by 구차니

ㅋㅋㅋ 닭띠해도 끝나가는데

조금 빠르게 다음해가 되는느낌 ㅋㅋㅋ



[링크 : https://news.v.daum.net/v/20181203091640470]

[링크 : https://news.v.daum.net/v/20181203103744986]

'개소리 왈왈 > 페미니즈음' 카테고리의 다른 글

기사 - '82년생 김지영'에 남자들은 거리 뒀다  (4) 2018.12.13
오늘자 페미 기사  (4) 2018.12.07
대한민국의 미래가 안보이네  (4) 2018.11.16
백래시?  (2) 2018.10.17
산부인과 반응 웃기네  (2) 2018.08.29
Posted by 구차니

요걸 보고 부품을 찾아서

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=B550339542]




가장 싼 호환 필터와 17400 * 2 + 2500

(찾다 보니 흰놈이 더 비싸네...)

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemNo=B597047905]


위의 DIY 제품의 팬 모델을 찾아서 싼걸로 일단 구매 (10900 + 450 + 450 + 900) * 2

요걸 고른 이유는.. 동일 모델보다 싸다?

사각형 케이스는 착탈이 가능해서 바람 방향을 바꿀수 있다니

반대로 생각하면 더 많은 부품을 구매하고도 더 싸다는 결론(?)

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemNo=A960373278]



원래 아내의 허가로는 하나만 만들어 보라고 했으나

배송비랑 고려해봤을때 두개가 나을 듯 하여

안되면 머.. 회사 가져가서 쓰지라는 마음으로 아내몰래 두개 지르기 ㅋㅋㅋ

(그리고 안 뜯어 보면 환풍기 팬은 한박스에 두개 넣어줄거라는 믿음으로...)



+

상품의견 보다 보니 조용하다는 평이 많다. 스펙으로는 30dB 니까 선풍기 보다는 조용하려나..


[링크 : http://prod.danawa.com/info/?pcode=2579596&relationMenuType=koost#bookmark_cm_opinion]


많이 광고하는 CADR은 CFM 값이 단위인거 같은데

Clean Air Delivery Rate (CADR) is a figure of merit that is the cubic feet per minute (CFM) of air that has had all the particles of a given size distribution removed 

[링크 : https://en.wikipedia.org/wiki/Clean_Air_Delivery_Rate]


스펙인 풍량 6m3/min 을 변환해보면 


[링크 : http://www.endmemo.com/sconvert/m3_minft3_min.php]


어..라..

공식 홈페이지에 샤오미 미에어 2가 310m^3/h 라고 써있네?

summary-size-spec.webp

[링크 : https://www.mi.com/global/air2/]



음.. 단순하게(?) 60을 곱해주면 되니까(min -> hour)

필터로 인한 손실이라던가 여러가지 고려해보면 (아마도) 최대 단수로 팡팡 돌리는

샤오미 2s랑 비슷한 정도의 성능을 지니지 않았을까 생각을 해본다.

Posted by 구차니