由于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是用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
网友评论