from waitress import serve from lzcadmgr_api.wsgi import application # f:\LcpSdk\ThirdParty\Python\v3.12.0\amd64\scripts\waitress-serve --host=0.0.0.0 --port=8000 --threads=4 lzcadmgr_api.wsgi:application if __name__ == '__main__': # 生产环境配置 serve( application, host='0.0.0.0', port=8000, threads=4 #url_scheme='https' # 如果使用HTTPS反向代理需要设置 )