Python全系列 教程
3567个小节阅读:5929.4k
目录
鸿蒙应用开发
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
xxxxxxxxxx
311worker_processes 1;
2
3events {
4 worker_connections 1024;
5}
6
7http {
8 include mime.types;
9 default_type application/octet-stream;
10
11 sendfile on;
12
13 keepalive_timeout 65;
14
15 upstream djangoserver{
16 server 127.0.0.1:8000;
17 server 192.168.247.131:8000;
18 }
19 server {
20 listen 80;
21 server_name localhost;
22
23 location / {
24 proxy_pass http://djangoserver;
25 }
26
27 error_page 500 502 503 504 /50x.html;
28 location = /50x.html {
29 root html;
30 }
31}
xxxxxxxxxx
21cd /usr/local/sbin
2./nginx
xxxxxxxxxx
11nohup python manage.py runserver 0.0.0.0:8000 &
重启Nginx命令
xxxxxxxxxx
11./nginx -s reload