阿里云Apache部署Django项目

2018-06-02  本文已影响0人  gmdzy2010

06/02/2018, 14:02:12 首次编辑,待更新

之前一直通过Nginx部署django项目,最近因业务要求,需要将部分网站用apache重新部署,做个记录,之后迁移到个人博客

STEP 1. apr编译安装

pass

STEP 2. apr-util编译安装

pass

STEP 3. httpd(apache)编译安装

pass

STEP 4. SQLite3编译安装

./configure --prefix=/usr/local/sqlite3 --disable-static --enable-fts5 --enable-json1 CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_RTREE=1"

make && make install

STEP 5. Python3编译安装

LD_RUN_PATH=/usr/local/sqlite3/lib ./configure --prefix=/usr/local/python36 LDFLAGS="-L/usr/local/sqlite3/lib" CPPFLAGS="-I /usr/local/sqlite3/include" --enable-loadable-sqlite-extensions CFLAGS=-fPIC

LD_RUN_PATH=/usr/local/sqlite3/lib make

LD_RUN_PATH=/usr/local/sqlite3/lib make

STEP 6. mod_wsgi编译安装

./configure --with-python=/usr/local/python36/bin/python3.6

make && make install

上一篇下一篇

猜你喜欢

热点阅读