2024.12.12 데이터 수집 서버 레포지토리 변경하였습니다.
- Python 3.9
- Ubuntu 20.04
- Kafka
- Install Python 3.9
- Install Kafka
- Install requirements
- Install InfluxDB
sudo apt update && sudo apt upgrade -y
curl --silent --location -O \
https://repos.influxdata.com/influxdata-archive.key
echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \
| sha256sum --check - && cat influxdata-archive.key \
| gpg --dearmor \
| sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg > /dev/null \
&& echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \
| sudo tee /etc/apt/sources.list.d/influxdata.list
sudo apt-get update && sudo apt-get install influxdb2
sudo apt install python3 python3-pip python3-venv -y
sudo systemctl start influxdb
sudo service influxdb status
influx setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtpython main.py- 코인 관련 데이터를 수집하는 서버입니다.
- 코인 관련 데이터를 수집하여 Kafka에 전송합니다.