Comments (10)
- 最好给出错误栈
- 查看下配置文件(或配置的环境变量),看下picbed_redis_url值,是否匹配redis服务密码
from sapic.
from sapic.
我得看下你的 配置文件
from sapic.
# -*- coding: utf-8 -*-
"""
config
~~~~~~~
The program configuration file, the preferred configuration item,
reads the system environment variable first.
:copyright: (c) 2019 by staugur.
:license: BSD 3-Clause, see LICENSE for more details.
"""
from os import getenv
GLOBAL = {
"ProcessName": "picbed",
# 自定义进程名.
"Host": getenv("picbed_host", "0.0.0.0"),
# 监听地址
"Port": int(getenv("picbed_port", 5050)),
# 监听端口
"LogLevel": getenv("picbed_loglevel", "DEBUG"),
# 应用日志记录级别, 依次为 DEBUG, INFO, WARNING, ERROR, CRITICAL.
"HookReloadTime": int(getenv("picbed_hookreloadtime", 600)),
# 钩子管理器默认重载时间,单位:秒
"SecretKey": getenv("picbed_secretkey"),
# Web应用密钥,默认随机。如果设置,那么登录态cookie在重启应用后仍有效。
}
#: 存储上传图片的数据,使用redis单实例,请开启持久化!
REDIS = getenv("picbed_redis_url","redis://[]@127.0.0.1:6379/db")
# Redis数据库连接信息,格式:
# redis://[]@127.0.0.1:6379/db
# host,port必填项,如有密码,记得密码前加冒号
#: 存储一些非核心数据的相关设置
STORAGE = {
"Method": getenv("picbed_storage_method", "redis"),
#: 存储方法,目前支持: local, redis
"LocalPath": getenv("picbed_storage_local_path"),
#: 当存储方法为local时此值有效,格式: path
#: -- path总是建议为绝对目录,默认为: SysTempDir/picbed.dat
"RedisURL": getenv("picbed_storage_redis_url","redis://[]@127.0.0.1:6379/db") or REDIS,
#: 当存储方法为redis时此值有效,格式参考REDIS
#: -- 仅使用redis单库的一个hash,默认为: picbed:dat
}
from sapic.
嗯 redis配置是: REDIS = getenv("picbed_redis_url","redis://[]@127.0.0.1:6379/db")
?
from sapic.
这格式有问题
from sapic.
以前这样填的可以,,,我就是小白,照着配置文件上面的格式抄的,,,
from sapic.
。。。 你的redis没密码是吧, 那么设置改为 redis://@127.0.0.1:6379
试试
from sapic.
嗯
from sapic.
行了,谢谢,谢谢
from sapic.
Related Issues (20)
- 请问能否增加上传到s3的钩子? HOT 3
- 请问Docker images使用的是多少端口呢,不需要开端口吗 我run的时候使用-P(大写的P)run 并没有随机给端口 HOT 3
- 启动失败 HOT 8
- docker-compose下如何保存用户信息? HOT 4
- 图片上传覆盖的问题 HOT 1
- Chrome图片无法显示的时候返回200导致透明无法选中删除 HOT 12
- 安装up2oss插件后,没有生效,显示module not found HOT 1
- 测试账户应该被人篡改偷偷作为己用了,请小心 HOT 1
- docker compose启动报错:ImportError: Error loading shared library libstdc++.so.6 HOT 4
- 能否自动将图片转为webp格式,减小图片体积 HOT 5
- 请问并发情况怎么样?谢谢 HOT 3
- Docker compose环境下pillow加载错误 HOT 2
- [BUG]图片名称的中文部分被忽略 HOT 3
- 很棒的系统 HOT 1
- 从http转到https时图片存储的链接依然是http的 HOT 3
- [Feature]希望作者加一个backblaze B2云存储的钩子 HOT 3
- 镜像回源功能-<用户访问您的域名图片时,图片自动上传到我们的图床> HOT 3
- 无法正常使用docker-compose启动 HOT 5
- CERT HAS EXPIRED HOT 2
- 拉取官方镜像,docker-compose运行时似乎没有js文件 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapic.