티스토리 뷰
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
- OST
- Library
- #TensorFlow
- docker
- aws #cloudfront
- #ELK Stack
- #REST API
- 도커
- Badge
- Game Engine
- Jekyll and Hyde
- Sea Bottom
- GOD
- #ApacheZeppelin
- #ApacheSpark
- some time ago
- 2D Game
- sentence test
- Worry
- Memorize
- Physical Simulation
- English
- Meow
- SSM
- Ragdoll
- belief
- project
- ate
- Mask R-CNN
- ILoop 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 |
글 보관함