1
我想爲一個Django項目配置uWSGI。不幸的是,當我運行uwsgi可執行程序,它失敗,一個奇怪的錯誤:uWSGI [+ nginx]文件描述符錯誤(沒有這樣的文件或目錄)
$ bin/uwsgi -s sock/uwsgi.sock --chdir testit --vacuum \
--env DJANGO_SETTINGS_MODULE=testit.testit.settings --wsgi-file testit/wsgi.py --master
*** Starting uWSGI 1.2.3 (32bit) on [Mon Jun 4 17:14:52 2012] ***
compiled with version: 4.7.0 20120414 (prerelease) on 04 June 2012 16:20:49
detected number of CPU cores: 2
current working directory: /home/miki/sites/testit
detected binary path: /home/miki/sites/testit/bin/uwsgi
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
bind(): No such file or directory [socket.c line 107]
我沒有什麼做foggiest想法......我試着用ulimit
並沒有奏效。
是的!你是對的。我不知道'--chdir'是在執行其他任何事之前執行的。 – rubik