搭建CTFD平台

安装Flask

1
pip install Flask

下载安装CTFD

1
2
3
4
5
git clone https://github.com/isislab/CTFd.git
cd CTFd
./prepare.sh #需手动排查各种依赖包
需先安装 libicu-dev包 apt-get install libicu-dev
python serve.py

优化CTFD

1
2
pip install gunicorn
gunicorn --bind 0.0.0.0:8000 -w 4 "CTFd:create_app()"