Some problems encountered when deploying a web site

1. The source code is directly taken by Liao Da, and the Tencent cloud server is used.

2、nginx+mysql+supervisor+gunicorn

  • Nginx: high-performance web server + responsible for reverse proxy;

  • gunicorn: high-performance WSGI server;

  • gevent: a library for turning Python synchronous code into asynchronous coroutines;

  • Supervisor: A tool for monitoring service processes;

  • MySQL: database service

3. The supervisor always prompts error-no-such-process. It took a day to check the problems and found that it was the comment symbol in front of the include in the configuration file; if it was not removed, it really crashed

4. nginx is always wrong in the configuration file at the beginning, first find the installation directory of nginx, and then modify the configuration file in the conf directory

5. The problem with gunicorn is that it always prompts that wsgiapp cannot be found, no module name wsgiapp, and later solved the problem by adding its parent directory to PYTHONPATH

6. Finally, I can open the web page in the browser and find that there is no effect of css and js. Check the log and find 13: Permission denied. Modifying the user nobody in the nginx configuration file solves the problem for user root

There are too many pits, and I am too watery, continue to cheer, and I want to make a record.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324951969&siteId=291194637