티스토리 뷰
AI/Deep Learning
[Caffe] Flask systemd를 통한 Caffe Web Demo daemon service 등록하기(16.04 LTS)
Arc Lab. 2018. 11. 10. 20:05[업데이트 2018.11.10 20:03]
[Caffe] Flask systemd를 통한 Caffe Web Demo daemon service 등록하기(16.04 LTS)
1) mkdir lib/systemd/system/flask.service
2) tough lib/systemd/system/flask.service
[Unit] Description=flaskapp [Service] Type=idle User=ubuntu Group=ubuntu Environment=export PYTHONPATH=/home/ubuntu/caffe/distribute/python:$PYTHONPATH; export LD_LIBRARY_PATH=/home/ubuntu/caffe/distribute/lib:$LD_LIBRARY_PATH WorkingDirectory=/home/ubuntu/caffe/examples/web_demo/ ExecStart=/usr/bin/python2 /home/ubuntu/caffe/examples/web_demo/app.py [Install] WantedBy=multi-user.target
4) sudo systemctl enable flask.service
5) sudo systemctl daemon-reload
6) sudo systemctl restart flask.service
7) sudo systemctl status flask.service
ubuntu@server:~$ systemctl status flask.service ● flask.service - flaskapp Loaded: loaded (/lib/systemd/system/flask.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-11-10 11:28:00 UTC; 7s ago Main PID: 3333 (python2) Tasks: 2 Memory: 543.6M CPU: 1.508s CGroup: /system.slice/flask.service └─3333 /usr/bin/python2 /home/ubuntu/caffe/examples/web_demo/app.py
* 참고
[2] https://github.com/jed-frey/build_caffe/issues/2
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ILoop Engine
- docker
- #ApacheZeppelin
- 2D Game
- Memorize
- #ApacheSpark
- sentence test
- some time ago
- Meow
- #TensorFlow
- SSM
- aws #cloudfront
- belief
- English
- Badge
- ate
- Jekyll and Hyde
- OST
- GOD
- Mask R-CNN
- #REST API
- Worry
- project
- Library
- Ragdoll
- Sea Bottom
- #ELK Stack
- Physical Simulation
- Game Engine
- 도커
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함