Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 스트리밍
- repo
- Finance
- 주식
- dockercontainer
- APT
- mariadb
- golang
- go
- Hyper-V
- FastAPI
- Python
- Replication
- 영상스트리밍
- Thread
- docker
- apt-get
- Windows
- asyncio
- 파이썬
- 레파지토리
- 자식프로세스
- QT_QPA_PLATFORM_PLUGIN_PATH
- BATCH
- python3.9
- psutil
- 가상화 중첩화
- pip
- go.mod
- 자원측정
Archives
- Today
- Total
검색하기귀찮아서만든블로그
[개발] Django, Celery, Redis 시작 (1) 본문
# Django 설치
$ pip3 install django
# Celery 설치 (task)
$ pip3 install celery
# Redis 설치 (broker)
$ apt install redis-server
$ wget http://download.redis.io/redis-stable.tar.gz
$ tar xvzf redis-stable.tar.gz
$ cd redis-stable
$ make # 설치
# redis 실행 (옵션은 비동기 실행 redis.conf 에서 설정 가능)
$ redis-server --daemonize yes
# 정상 동작 확인
$ redis-cli ping > PONG
# redis 서버 종료 방법
$ pkill redis-server
# 장고 프로젝트를 생성한다.
$ django-admin startproject mysite
# mysite 프로젝트 경로로 이동
$ cd mysite
# mysite 프로젝트 실행
$ python3 manage.py runserver > Performing system checks... > System check identified no issues (0 silenced). > You have unapplied migrations; your app may not work properly until they are applied. > Run 'python manage.py migrate' to apply them. > 7월 03, 2020 - 15:50:53 > Django version 3.0, using settings 'mysite.settings' > Starting development server at http://127.0.0.1:8000/ > Quit the server with CONTROL-C.