Install Chinese fonts on centos7
After centos7 is purchased, it is generally blank. Many things need to be installed without any nonsense. install them directly:
1. First copy the font file in windows to the usr/share/fonts/win folder, and then run the following command:
New Font:
[Csharp] view plaincopy
- Modify the permission of the font file so that users other than the root user can also use chmod755 *
[root@iZ250234rf8ZTrueType]#mkfontscale[root@iZ250234rf8ZTrueType]#mkfontdir[root@iZ250234rf8ZTrueType]#fc-cache-fv
If the command mkfontscale is not found, install the command yum install mkfontscale (the same command is run for fc: yum install fontconfig)
If cocould not resolve host: mirrors.cloud.aliyuncs.com; Name or service not known "Trying other mirror ., if a similar error occurs, it is likely that the dns resolution problem occurs: in vi/etc/resolv. conf configures two dns:
Nameserver 8.8.8.8 # google Domain Name Server nameserver 8.8.4.4 # google Domain Name Server
Then restart the service network restart.
After the installation command is complete, view the font fc-list to view all fonts.
Restart the machine. If it does not take effect, restart the application reboot;
If not, execute the following:
[Csharp] view plaincopy
- # Yumgroupinstallchinese-support
- The console terminal must also be UTF-8 encoded.
- 1. garbled console Terminal
- Add the following content to the last line of the/etc/profile file:
- ExportLC_ALL = "zh_CN.utf8"