ubuntu+uwsgi+nginx+web.py安装配置记录
编程技术  /  houtizong 发布于 3年前   66
install:
1. sudo apt-get install python-dev
2. sudo apt-get install mysql-server python-mysql
3. sudo apt-get install redis-server python-redis
4. sudo apt-get install subversion
5. sudo apt-get install python-webpy
6. sudo apt-get install nginx uwsgi-extra
7. install uwsgi
$ sudo apt-get install libxml2
$ hg clone http://projects.unbit.it/hg/uwsgi-1.2
$ cd /uwsgi-1.2
$ python uwsgiconfig.py --build
$ python setup.py install
***:$ ubuntu 仓库的uwsgi貌似版本有问题,会提示-w参数无效 or --module 参数无效
8. install PIL Image about (if you want)
9.configure uwsig&nginx
File: /etc/nginx/sites-enabled/myapp
server { listen 80; ## listen for ipv4; this line is default and implied server_name localhost; root /data/www/myapp; index index.html index.htm; location / { include uwsgi_params; uwsgi_pass 127.0.0.1:9001; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; } # deny access to .htaccess files, if Apache's document root location ~ /\.ht { deny all; }
请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
技术博客集 - 网站简介:
前后端技术:
后端基于Hyperf2.1框架开发,前端使用Bootstrap可视化布局系统生成
网站主要作用:
1.编程技术分享及讨论交流,内置聊天系统;
2.测试交流框架问题,比如:Hyperf、Laravel、TP、beego;
3.本站数据是基于大数据采集等爬虫技术为基础助力分享知识,如有侵权请发邮件到站长邮箱,站长会尽快处理;
4.站长邮箱:[email protected];
文章归档
文章标签
友情链接