CentOS提示 Failed to set locale, defaulting to C的解決方法

現象
locale

//解決方法,執行locale能夠看到當前系統支持字符,按需設置。
//設置系統環境變量
# echo "export LC_ALL=en_US.UTF-8"  >>  /etc/profile
# source /etc/profile
//或設置個人環境變量
# echo "export LC_ALL=en_US.UTF-8"  >>  ~/.bashrc
# source ~/.bashrc

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章