Quick Start

Introduction #

This document covers the complete process of manually deploying SmartChart on a Linux server (CentOS 7 example), including Python installation, virtual environment setup, and project deployment. For production environments, refer to the Production Deployment Guide.

Environment Requirements #

Component Min Version Recommended
CentOS 7.x 7.x / 8.x
Python 3.8+ 3.9.x
Memory 2GB 4GB+

Directory Layout #

/data/smartchart/          # Project main directory
/data/smartchart/tools/    # Tools directory
/data/smartchart/myvenv/   # Python virtual environment

Base Environment and Versions #

CentOS 7
Python 3.9
/data/smartchart/   Project main directory
/data/smartchart/tools  Tools directory

All /data/smartchart paths can be changed to your system’s path.

Install Environment #

Install Python #

cd /data/smartchart/tools
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
# Download Python 3.9.0
wget https://npm.taobao.org/mirrors/python/3.9.0/Python-3.9.0.tgz
tar -zxvf Python-3.9.0.tgz

# Configure and install
./Python-3.9.0/configure --prefix=/data/smartchart/tools/python3
make && make install

# Create symlinks
ln -s /data/smartchart/tools/python3/bin/python3.9 /usr/bin/python3
ln -s /data/smartchart/tools/python3/bin/pip3.9 /usr/bin/pip3

# Verify
python3 --version

Create Python Virtual Environment #

python3 -m venv myvenv
cd myvenv
source bin/activate

Install SmartChart in Virtual Environment #

Refer to SmartChart General Installation

Next Steps #

After basic installation, recommended configurations:

  • Configure super admin account
  • Set up database connection (MySQL/PostgreSQL)
  • Configure Nginx reverse proxy
  • Set up auto-start service