Debianサーバ、起動時のuwsgiがcrontab @rebootによって起動されました。起動時のuwsgi djangoがpostgresqlなしで起動できない
リターンこのuwsgi.log中:
ile "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql/base.py", line 175, in get_new_connection connection = Database.connect(**conn_params) File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) django.db.utils.OperationalError: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
Thu Mar 24 05:19:02 2016 - unable to load app 0 (mountpoint='') (callable not found or import error) Thu Mar 24 05:19:02 2016 - * no app loaded. going in full dynamic mode Thu Mar 24 05:19:02 2016 - uWSGI is running in multiple interpreter mode *
私はまた、uwsgiすべてが働いて起動し、PostgreSQLを再起動することを待っていれば。
uwsgiにpostgresqlを待たせる方法はありますか?
使用しているDebianのバージョンは? – GwynBleidD
@GwynBleidD私はDebianのstretch/sid、inuxサーバ4.3.0-1-amd64#1を使用しています。SMP Debian 4.3.3-2(2015-12-17)x86_64 GNU/Linux、postgresql 9.4 – user2239318