ProxyPool icon indicating copy to clipboard operation
ProxyPool copied to clipboard

Windows 常规运行没反应

Open zhongjunlee opened this issue 1 year ago • 0 comments

启动后输出了如下日志:

  • Serving Flask app "proxypool.processors.server" (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://0.0.0.0:5555/ (Press CTRL+C to quit) 2024-02-23 17:10:24.077 | DEBUG | proxypool.scheduler:run_getter:48 - getter loop 0 start...

有两个问题: 1.为什么启动默认是production环境,正常应该是dev环境吧? 2.Windows环境应该不需要执行下面这些命令吧?

设置 host、port、password,如果 password 为空可以设置为空字符串,示例如下:

export PROXYPOOL_REDIS_HOST='localhost'
export PROXYPOOL_REDIS_PORT=6379
export PROXYPOOL_REDIS_PASSWORD=''
export PROXYPOOL_REDIS_DB=0

或者只设置连接字符串:

export PROXYPOOL_REDIS_CONNECTION_STRING='redis://localhost'

zhongjunlee avatar Feb 23 '24 09:02 zhongjunlee