Comments (3)
BTW, here is the nginx proxy inverse
server
{
listen 80;
server_name xxx456.tk;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.10.40:80;
}
access_log logs/xxx456.tk_access.log;
}
from creamidea.github.com.
Nginx configure:
http {
...
upstream django {
# server 127.0.0.1:8001;
server unix:///tmp/xxxxx.sock;
}
...
server {
...
location /zdl {
include /home/wweixnpy/uwsgi_params;
uwsgi_pass django;
}
location /weixnpystatic {
alias /home/weixnpy/static;
}
}
}
from creamidea.github.com.
Test that uwsgi process is still alive every minute. (maybe, it is fine for you to run the crontab
using the same account as uwsgi.
$ crontab -e
* * * * * /bin/bash /home/wx/weixnpy/watch_dog.sh > /dev/null 2>&1
At last, make sure it is running.
$ crontab -l
$ sudo /etc/init.d/crond status # restart
XD
from creamidea.github.com.
Related Issues (20)
- Vuex 的一张图
- 未来十年技术预言
- Python Import Problem HOT 1
- Nodejs 之 Worker 简单分析 HOT 4
- Nodejs 启动分析 HOT 1
- 2021 碎碎念
- 理解数学意义上的排列组合
- JavaScript 内存相关 HOT 1
- JSX 是声明式“语言”
- React v17.0.2 源码分析笔记 HOT 3
- react hydrate 模式
- React18 一些笔记 HOT 9
- webpack 的 __webpack_public_path__ 工作原理
- Rust 外部依赖和被链接 HOT 1
- React Route 中 ErrorBoundary 死循环问题 HOT 2
- React 开发总结
- React Array 检查 Key 原理 HOT 1
- React fiber(HostRoot) payload{element} 的作用
- React 事件处理 HOT 2
- 基于 Homebrew 的 bottle 机制在 Catanalina 安装 tmux
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.
from creamidea.github.com.