推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
luzihang
V2EX  ›  Python

supervisor 中文日志乱码,搜索也没有结果,求助大家

  •  
  •   luzihang · Aug 9, 2019 · 5117 views
    This topic created in 2532 days ago, the information mentioned may be changed or developed.

    14 replies    2020-10-03 20:51:47 +08:00
    wuwukai007
        2
    wuwukai007  
       Aug 9, 2019
    supervisor 日志只是捕获你的控制台 info,乱码应该跟你的项目有关把
    bnm965321
        3
    bnm965321  
       Aug 9, 2019
    可能是 linux 的原因,要打语言包补丁
    luzihang
        4
    luzihang  
    OP
       Aug 9, 2019
    @wuwukai007 talf -f 和 supervisorctl tail 都是正常的
    luzihang
        5
    luzihang  
    OP
       Aug 9, 2019
    @bnm965321 talf -f 和 supervisorctl tail 都是正常的
    wuwukai007
        6
    wuwukai007  
       Aug 9, 2019
    你不用 supervisord 跑你的项目,控制台乱码吗
    lihongjie0209
        7
    lihongjie0209  
       Aug 9, 2019   ❤️ 1
    之前解决过, 它的 html 页面有问题, 编码是写死的, 我记得有一个更新修复了, 你可以去 github 看看, 或者用 pip 安装最新版
    wuwukai007
        8
    wuwukai007  
       Aug 9, 2019
    楼上真摸鱼,每个帖子都看到你
    misaka19000
        9
    misaka19000  
       Aug 9, 2019
    @lihongjie0209 #7 2333 你被楼下逮到了
    lowman
        10
    lowman  
       Aug 9, 2019
    @wuwukai007 我每天都摸-------咸鱼, 最近脚气好像又犯了, 香菇蓝瘦.............
    lihongjie0209
        11
    lihongjie0209  
       Aug 9, 2019
    @wuwukai007 #8 当你在凝视深渊的时候,深渊也正在凝视着你 兄弟, 你不摸鱼怎么知道我摸鱼.
    luzihang
        12
    luzihang  
    OP
       Aug 9, 2019
    @lihongjie0209 解决了,用 pip 版本就挺好
    ClericPy
        13
    ClericPy  
       Aug 10, 2019
    怎么解决的... 他们的 web ui 有问题, 在 taillog 的页面刷新一次中文可以正常, 所以我用了 chrome 插件强制指定了这个站点 utf8 编码, 但还是只能 tail 的, 看历史 log 的就不行
    hushao
        14
    hushao  
       Oct 3, 2020
    web 端乱码不能忍受,刚好需要,看到该问题~

    centos7,yum 安装的原来的版本是 3.1.4,现可以升级到 3.4.0 版本( yum 源最新版本),已经解决此问题,已不需 pip (但 pip 安装新版本也同样可以解决)

    ```bash
    Running transaction
    正在更新 : supervisor-3.4.0-1.el7.noarch 1/2
    清理 : supervisor-3.1.4-1.el7.noarch 2/2
    验证中 : supervisor-3.4.0-1.el7.noarch 1/2
    验证中 : supervisor-3.1.4-1.el7.noarch 2/2

    更新完毕:
    supervisor.noarch 0:3.4.0-1.el7

    完毕!
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 20:52 · PVG 04:52 · LAX 13:52 · JFK 16:52
    ♥ Do have faith in what you're doing.