Home >Operation and Maintenance >CentOS >centos terminal Chinese display garbled characters

centos terminal Chinese display garbled characters

王林
王林Original
2020-03-17 11:24:402221browse

centos terminal Chinese display garbled characters

1. Execute the following command:

vi /etc/sysconfig/i18n

Paste the following text

LANG="zh_CN.UTF-8"

(Recommended tutorial: centos usage tutorial)

2. Continue to execute the command:

vi /etc/profile

Paste the following text

export LANG="zh_CN.UTF-8"

3. Finally, restart the server.

Related video tutorial sharing: linux video tutorial

The above is the detailed content of centos terminal Chinese display garbled characters. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn