9 年前

ImportError: cannot import name 'byte_string'

pycrypto  

这是因为依赖包的版本问题,解决方案如下 卸载依赖包 pip uninstall pycrypto pip uninstall pycryptodemo 重新安装依赖包 pip install pycrypto pip install pycryptodemo pip install -e .…

9 年前

Nginx 设置 忽略和跳转favicon.ico

favicon 404  

前言 当站点仅仅是为了某些业务写了一个小接口的时候,肯定不会去特意放置favicon.ico文件,所以会造成日志内记录大量的类似西面的错误日志,一点作用没有,还暂用空间。如下: 123*****.32 - - [03/Feb/2018:07:05:48 +0800] "GET /favicon.ico HTTP/1.1" 404 0 "http://*****.com/QianDao/index.…

9 年前

Falcon-Nginx 服务器状态监控

nginx falcon   运维监控  

falcon 接口 http://127.0.0.1:1988/v1/push 配置nginx 编译nginx时添加--with-http_stub_status_module参数 配置nginx_status server { listen 80; server_name 127.0.0.1; location /monitor/nginx_st…