CentOS7中安裝了rabbitmq,操作CLI工具時報如下錯誤:
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
解決方法是在/etc/profile環境變量配置文件末尾加上如下配置:
export LC_ALL=en_US.UTF-8
然後執行:
source /etc/profile
GitHub地址:https://github.com/mingyang66/spring-parent/tree/master/spring-boot-control-rabbitmq-service