第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

virtualenv環(huán)境使用pip安裝過flask,請指教到底是哪個地方配置錯誤了呢?

virtualenv環(huán)境使用pip安裝過flask,請指教到底是哪個地方配置錯誤了呢?

長風(fēng)秋雁 2023-05-02 12:08:14
使用動態(tài)方式啟用的uwsgi:uwsgi -s /tmp/uwsgi.sock -M -p 4 -t 30 --limit-as 128 -R 10000 -d /var/log/uwsgi.log --vhost --uid www --gid www --python-autoreload 1然后配置nginx:server {     listen       80;     server_name  xxxx.com;     location /static {             alias /home/wwwroot/xxxx/static;     }     location / {            include uwsgi_params;             uwsgi_pass  unix:/tmp/uwsgi.sock;             uwsgi_param UWSGI_PYHOME   /home/ENV/;             uwsgi_param UWSGI_CHDIR    /home/wwwroot/xxxx;             uwsgi_param UWSGI_SCRIPT   xxxx;             uwsgi_param UWSGI_CALLABLE app;     } }xxxx.py文件內(nèi)容如下:from flask import Flask app = Flask(__name__)@app.route("/")def hello():    return "Hello World!"if __name__ == "__main__":     app.run()錯誤日志提示如下:*** Starting uWSGI 1.9.6 (32bit) on [Thu Apr 18 16:40:47 2013] *** compiled with version: 4.4.7 on 18 April 2013 15:12:56...... Python auto-reloader enabled unable to load app 0 (mountpoint='xxxx.com|') (callable not found or import error) --- no python application found, check your startup logs for errors --- xxxx.com [pid: 2009|app: -1|req: -1/1] 101.80.87.xxx () {44 vars in 723 bytes} [Thu Apr 18 16:40:53 2013] GET / => generated 21 bytes in 107 msecs (HTTP/1.1 500) 1 headers in 57 bytes (0 switches on core 0) unable to load app 0 (mountpoint='xxxx.com|') (callable not found or import error)檢查了一下配置,貌似沒發(fā)現(xiàn)什么問題。
查看完整描述

2 回答

?
慕仙森

TA貢獻1827條經(jīng)驗 獲得超8個贊

servername 后邊不要“/”

查看完整回答
反對 回復(fù) 2023-05-04
?
慕尼黑5688855

TA貢獻1848條經(jīng)驗 獲得超2個贊

檢查目錄權(quán)限。

chown -R root:www-data app路徑; chmod -R 750 app路徑; find app路徑 -type f |xargs chmod 640

查看完整回答
反對 回復(fù) 2023-05-04
  • 2 回答
  • 0 關(guān)注
  • 190 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號