美文网首页
supervisor + python3 下 UnicodeEn

supervisor + python3 下 UnicodeEn

作者: chenhjj | 来源:发表于2018-07-20 11:41 被阅读0次

由于supervisor是用python2.7写的, 因此嘛. print若含中文, 就会直接抛异常.

此时可以通过2种方法解决:

1. 修改系统locale为utf8

2. 在supervisord.conf的[supervisord]标签下加上以下一句:

    environment=LC_ALL='en_US.UTF-8',LANG='en_US.UTF-8'

然后重启supervisor服务. 就可以拉~

sudo service supervisor restart

相关文章

网友评论

      本文标题:supervisor + python3 下 UnicodeEn

      本文链接:https://www.haomeiwen.com/subject/qkvfmftx.html