django uwsgi nginx

pip install uwsgi   -----安装uwsgi

启动 uwsgi

#uwsgi --http :80 --wsgi-file manage.py

uwsgi --http :8000 --module mine.wsgi

查看uwsgi进程

ps -ef |grep uwsgi

下载nginx

wget -q http://nginx.org/download/nginx-1.6.3.tar.gz

解压

tar xf nginx-1.6.3.tar.gz

useradd www -s /sbin/nologin -M

进入解压收的文件夹,配置

./configure --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --prefix=/application/nginx-1.6.3/

编译

make

make install

软连接

ln -s /application/nginx-1.6.3/ /application/nginx

启动nginx

/application/nginx/sbin/nginx

查看80端口

netstat -lntup|grep 80

lsof -i :80

重启

/application/nginx/sbin/nginx -s reload

一、安装支持ZIP的工具

yum install -y unzip zip

二、解压zip文件

unzip 文件名.zip

三、压缩一个zip文件

    zip 文件名.zip 文件夹名称或文件名称

---------------------

作者:一念永恒

来源:CSDN

原文:https://blog.csdn.net/u013305864/article/details/78710104

版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自www.cnblogs.com/WorkWonders/p/11203616.html