启动 fdfs
sudo service fdfs_trackerd start
sudo service fdfs_storaged start
或者
sudo fdfs_trackerd /etc/fdfs/tracker.conf
sudo fdfs_storaged /etc/fdfs/storage.conf
启动nginx
sudo /usr/local/nginx/sbin/nginx
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
[-] Error: 111 connect to 192.168.158.141:22122. Connection refused.
Traceback (most recent call last):
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 137, in get_connection
conn = self._conns_available.pop()
IndexError: pop from empty list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
return self.application(environ, start_response)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
response = self.get_response(request)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 618, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 233, in inner
return view(request, *args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1518, in add_view
return self.changeform_view(request, None, form_url, extra_context)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 34, in _wrapper
return bound_func(*args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 30, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1469, in changeform_view
self.save_model(request, new_object, form, not add)
File "/home/python/Desktop/django/dailyfresh/apps/goods/admin.py", line 13, in save_model
super().save_model(request, obj, form, change)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1080, in save_model
obj.save()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/base.py", line 762, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/base.py", line 846, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/base.py", line 885, in _do_insert
using=using, raw=raw)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 973, in execute_sql
for sql, params in self.as_sql():
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 931, in as_sql
for obj in self.query.objs
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 931, in
for obj in self.query.objs
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 929, in
) for f in fields
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 314, in pre_save
file.save(file.name, file, save=False)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 93, in save
self.name = self.storage.save(name, content, max_length=self.field.max_length)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/core/files/storage.py", line 63, in save
name = self._save(name, content)
File "/home/python/Desktop/django/dailyfresh/utils/fdfs/storage.py", line 23, in _save
result = client.upload_by_buffer(datas)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/fdfs_client/client.py", line 125, in upload_by_buffer
store_serv = tc.tracker_query_storage_stor_without_group()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 374, in tracker_query_storage_stor_without_group
conn = self.pool.get_connection()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 142, in get_connection
conn = self.make_conn()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 122, in make_conn
sys.exit()
SystemExit