pip install gunicorn gunicorn app:app gunicorn myapp:app python gunicorn -c gunicorn.conf.py app:app python from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello, World!' if __name__ == '__main__': app.run() pip install flask python bind = '0.0.0.0:8000' workers = 3 timeout = 60 gunicorn -c gunicorn.conf.py myapp:app


上一篇:
下一篇:
切换中文