linux ϵͳ±àÂë
Ò»¡£linuxϵͳµÄĬÈϱàÂëÉèÖá£
/etc/sysconfig/i18n
Controls the system font
settings. The language variables are used in /etc/profile.d/lang.sh. An
example i18n file:
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
ÒÔ
ÉÏÊÇ°ÑϵͳµÄĬÈÏ×Ö·û¼¯ÉèÖÃΪGB2312.ÏÖÔںܶàϵͳĬÈϱàÂë×Ö·û¼¯ÊÇUTF-8¡£¿ÉÒÔͨ¹ýÉèÖÃÕâ¸öÎļþÀ´¸Ä±äϵͳµÄĬÈÏ×Ö·û¼¯¡£
ÁíÍ⣬Ҳ¿É
ÔÚÓû§µÄ»·¾³±äÁ¿»òÕßÓû§µÄ»·¾³±äÁ¿Îļþ¼ÓÈë·¾¶±äÁ¿µÄÉùÃ÷£º
ÔÚϵͳµÄÔ¤´¦ÀíÎļþÖÐÉùÃ÷£¬ÕâÑù¶ÔÕû¸öϵͳÆð×÷Óãº
#vi
/etc/profile
ÔÚÎļþβ¼ÓÈë
LC_ALL="zh_CN.GBK"
export
LANG="zh_CN.GBK"
ÔÚÓû§µÄÔ¤´¦ÀíÎļþÖÐÉùÃ÷£¬¶Ôµ¥¶ÀµÄÓû§Æð×÷Óãº
#vi
/root/.bash_profile
ÔÚÎļþβ¼ÓÈë
export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"
ÒÔÉÏÅäÖÃÖØÐÂÆô¶¯·þÎñÆ÷ʹ¸ü¸ÄÉúЧ¡£
¶þ¡£²é¿´ÏµÍ³µ±Ç°×Ö·û¼¯¡£
locale:local
encode,¼´±¾µØ±àÂëµÄÒâ˼¡£Õâ¸öÃüÁî²»´øÈκβÎÊý¾ÍÊÇÏÔʾµ±Ç°ÏµÍ³µÄ×Ö·û¼¯±àÂë¡£Ò²¿ÉÒÔÉèÖû·¾³±äÁ¿£¬È«Ìå²ÎÊýman locale
Èý¡£
°²×°×ÖÌå¡£
#mkdir Òª´æ·Å×ÖÌåµÄÎļþ¼Ð
#cp *.ttf ¸Õ²Å´´½¨µÄÎļþ¼Ð
Éú³É fonts.dir Îļþ
#ttmkfdir
> fonts.dir
×¢£ºmkfontdir ÓÃÓÚÉú³ÉµãÕó×ÖÌåµÄ fonts.dir Îļþ£¬ttmkfdir ÓÃÓÚÉú³É
TrueType ×ÖÌåµÄ fonts.dir Îļþ¡£ÓÉÓÚ ttmkfdir ²»ÄÜʶijЩºº×ÖTTFµÄ±àÂ룬ÐèÊÖ¹¤Ð޸ġ£
Éú³ÉµÄ
fonts.dir ÈçÏ£º
fonts.dir
======
simsun.ttf
-misc-SimSun-medium-r-normal--0-0-0-0-p-0-ascii-0
¸ÄΪ£º
simsun.ttf
-misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
Éú³É
fonts.alias Îļþ
#cat fonts.dir > fonts.alias
½« fonts.alias
ÄÚÈݸÄΪ£º
SimSun -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
½«×ÖÌåµÄ·¾¶Ìí¼ÓµÄFontPathÖÐ
#vi /etc/X11/XF86Config
ÔÚ´ËÎļþÖÐÌí¼Ó¸Õ²Å´´½¨µÄ·¾¶
#step
#fc_cache
¸Õ²Å´´½¨µÄ·¾¶£¬Ç¿ÖÆË¢ÐÂ×ÖÌ建´æ£¬Ê¹×ÖÌåÉúЧ¡£
ËÄ¡£vim±àÂë¡£
encoding—-¸ÃÑ¡ÏîʹÓÃÓÚ»º³åµÄÎ
Ïà¹ØÎĵµ£º
²Î¿¼¡¶linuxÄÚºËÍêȫעÊÍ¡·ºÍÍøÉÏÏà¹ØÎÄÕÂ
/*
* ¿ØÖÆ̨ÏÔʾ²Ù×÷
*/
/*
* linux/kernel/console.c
*
* (C) 1991 Linus Torvalds
*/
/*
* console.c
*
* This module implements the console io functions
* 'void con_init(v ......
±¾ÎÄ´Ó¸÷·½Ãæ²ûÊöÁËRed Hat LinuxµÄ°²È«ÅäÖ÷½·¨£¬Èç¹ûÄúʹÓõÄÊÇWindows Server 2003·þÎñÆ÷µÄ»°£¬Çë¿´Windows Server 2003 ϵͳÅäÖ÷½°¸¡£
ÍøÂ簲ȫÊÇÖ¸ÍøÂçϵͳµÄÓ²¼þ¡¢Èí¼þ¼°ÆäϵͳÖеÄÊý¾ÝÊܵ½±£»¤£¬²»ÊÜżȻµÄ»òÕ߶ñÒâµÄÔÒò¶øÔâµ½ÆÆ»µ¡¢¸ü¸Ä¡¢Ð¹Â¶£¬ÏµÍ³Á¬Ðø¿É¿¿Õý³£µØÔËÐУ¬ÍøÂç·þÎñ²»Öжϡ£
ÍøÂ簲ȫ´ÓÆä±¾ÖÊÉÏÀ´ ......
2¡¢APACHEµÄ°²×°
1£©µ±È»»¹ÊÇÏÂÔØÔ´Âë°ü£¬È磺httpd-2.0.55.tar.gz£¬µØÖ·×Ô¼ºÕÒ……
2£©½âѹËõ£¬>tar -zxvf httpd-2.0.55.tar.gz
3£©½øÈë½âѹºóµÄhttpd-2.0.55£¬>cd httpd-2.0.55
4£©°²×°ÅäÖã¬>./configure --prefix=/opt/apache --enable-cgi
5£©±àÒ룬>make
6£©°²×°£¬>make install
......
bin/mail»áĬÈÏʹÓñ¾µØsendmail·¢ËÍÓʼþ£¬ÕâÑùÒªÇ󱾵صĻúÆ÷±ØÐë°²×°ºÍÆô¶¯Sendmail·þÎñ£¬ÅäÖ÷dz£Âé·³£¬¶øÇÒ»á´øÀ´²»±ØÒªµÄ×ÊÔ´Õ¼Ó᣶øͨ¹ýÐÞ¸ÄÅäÖÃÎļþ¿ÉÒÔʹÓÃÍⲿSMTP·þÎñÆ÷£¬¿ÉÒÔ´ïµ½²»Ê¹ÓÃsendmail¶øÓÃÍⲿµÄsmtp·þÎñÆ÷·¢ËÍÓʼþµÄÄ¿µÄ£º
ÐÞ¸Ä
/etc/mail.rc
set from=fromUser@domain.com
smtp=smtp.domain. ......
MEMCACHED°²×°
Ò»¡¢·þÎñ¶Ë¡£ÏÈ°²×°libevent£¬ÔÙ°²×°memcached¡££¨×¢£ºlibeventÊÇÒ»Ì׿çƽ̨µÄʼþ´¦Àí½Ó¿ÚµÄ·â×°£¬Äܹ»¼æÈÝ°üÀ¨£ºWindows/Linux/BSD/SolarisµÈ²Ù×÷ϵͳµÄʼþ´¦Àí£©
1¡¢ÏÂÔØ×îа汾µÄlibeventºÍmemcached£¬±ÊÕߵݲװĿ¼Ϊ/soft
>cd /soft
>wget http://www.dange.com/memcached/dist/memcach ......