First modify the System configuration file/etc/locale.conf (the lower version corresponds to the file /etc/sysconfig/i18n) with the content lang= "ZH_CN. UTF-8 "Save exit and restart Linux.
Click to download Chinese man source package (link if invalid can download attachment file)
Upload the extracted manpages-zh-1.5.2.tar.bz2 to the server.
Extract:
GZ Unpacking command: TAR-ZXVF
bz2 unpacking command: TAR-JXVF
[Email protected]_13_60_centos tmp]# TAR-JXVF manpages-zh-1.5.2.tar.bz2 manpages-zh-1.5.2/manpages-zh-1.5.2/ missingmanpages-zh-1.5.2/copyingmanpages-zh-1.5.2/makefile.inmanpages-zh-1.5.2/changelogmanpages-zh-1.5.2/src/ Manpages-zh-1.5.2/src/mann/...
Through $? View command execution results,0 Success
#echo $? (0 success)
[Email Protected]_13_60_centos tmp]# Echo $?0
Enter the manpages-zh-1.5.2 directory and execute the ./configure--prefix=/usr/local/zhman--disable-zhtw
[Email protected]_13_60_centos tmp]# cd/tmp/manpages-zh-1.5.2/[[email Protected]_13_60_centos manpages-zh-1.5.2]# LSACLOCAL.M4 AUTHORS ChangeLog Configure configure.in COPYING DOCS INSTALL install-sh makefile.am makefile.in m Issing NEWS README src utils[[email protected]_13_60_centos manpages-zh-1.5.2]#./configure--prefix=/usr/local/zhman --disable-zhtw
#make && do install ( please yum or apt without the Do tool installed)
home directory creation .bash_profile file (paste alias cman= ' MAN-M  /USR/LOCAL/ZHMAN/SHARE/MAN/ZH_CN ' Save)
#source. bash_profile (to make the alias you just added take effect)
Test Chinese man:
# Cman Ln
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8C/9C/wKiom1hx47Xxc2UoAAGUhjdpUb0678.jpg "title=" Cman.jpg "alt=" Wkiom1hx47xxc2uoaaguhjdpub0678.jpg "/>
This article is from the "How Big Heart" blog, please be sure to keep this source http://qq512430.blog.51cto.com/5955081/1890155
Centos7.2 using Chinese man