server-1's Introduction
1 开始 pip工具安装:下载https://bootstrap.pypa.io/get-pip.py,并运行 预先安装必须的python库,如jinja2. 可根据运行提示安装 下载源文件解压,python setup.py install 使用pip工具,pip install jinja2 python库列表 https://pypi.python.org/pypi/pip/ 一些使python运行更高效的库在windows上不支持如gunicorn,gevent 2 配置 使用nginx作为web服务器,下载http://nginx.org windows中 nginx配置文件在conf文件夹中:nginx.conf server的conf文件夹下有已经配置好的文件,去掉windows后缀替换 需要注意修改配置文件中的几处 root后面的路径 根据python代码存放不同可修改 *nix 配置文件位置各有不同 mac 3 运行 *nix nginx & 切到wsgiapp.py目录下 /usr/local/bin/gunicorn --bind 127.0.0.1:9000 --workers 1 --worker-class gevent wsgiapp:application 必要时加前缀路径 windows 运行nginx python wsgiapp:application即可 4 目录 conf是配置文件的备份 doc是用到的一些模块的说明 wed是程序主目录
server-1's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.