微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐