V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 ·
    luzihang123 · 2019-08-09 17:06:46 +08:00 · 4056 次点击
    这是一个创建于 1693 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    完毕!
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3747 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:37 · PVG 18:37 · LAX 03:37 · JFK 06:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.