Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚlinux»·¾³±äÁ¿Îļþ

/etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ.²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖÃ.
/etc/bashrc:Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_profile:ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ±Óû§µÇ¼ʱ,¸ÃÎļþ½ö½öÖ´ÐÐÒ»´Î!ĬÈÏÇé¿öÏÂ,ËûÉèÖÃһЩ»·¾³±äÁ¿,Ö´ÐÐÓû§µÄ.bashrcÎļþ.
~/.bashrc:¸ÃÎļþ°üº¬×¨ÓÃÓÚÄãµÄbash shellµÄbashÐÅÏ¢,µ±µÇ¼ʱÒÔ¼°Ã¿´Î´ò¿ªÐµÄshellʱ,¸Ã¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_logout:µ±Ã¿´ÎÍ˳öϵͳ(Í˳öbash shell)ʱ,Ö´ÐиÃÎļþ.
ÁíÍâ,/etc/profileÖÐÉ趨µÄ±äÁ¿(È«¾Ö)µÄ¿ÉÒÔ×÷ÓÃÓÚÈκÎÓû§,¶ø~/.bashrcµÈÖÐÉ趨µÄ±äÁ¿(¾Ö²¿)Ö»Äܼ̳Ð/etc/profileÖеıäÁ¿,ËûÃÇÊÇ\"¸¸×Ó\"¹ØÏµ.
~/.bash_profile Êǽ»»¥Ê½¡¢login ·½Ê½½øÈë bash ÔËÐеÄ
~/.bashrc Êǽ»»¥Ê½ non-login ·½Ê½½øÈë bash ÔËÐеÄ
ͨ³£¶þÕßÉèÖôóÖÂÏàͬ£¬ËùÒÔͨ³£Ç°Õß»áµ÷ÓúóÕß¡£
--------------------------------------------------------------------------------
ÔڵǼLinuxʱҪִÐÐÎļþµÄ¹ý³ÌÈçÏ£º
ÔڸյǼLinuxʱ£¬Ê×ÏÈÆô¶¯ /etc/profile Îļþ£¬È»ºóÔÙÆô¶¯Óû§Ä¿Â¼Ï嵀 ~/.bash_profile¡¢ ~/.bash_login»ò ~/.profileÎļþÖÐµÄÆäÖÐÒ»¸ö(¸ù¾Ý²»Í¬µÄlinux²Ù×÷ϵͳµÄ²»Í¬£¬ÃüÃû²»Ò»Ñù)£¬
Ö´ÐеÄ˳ÐòΪ£º~/.bash_profile¡¢ ~/.bash_login¡¢ ~/.profile¡£
Èç¹û ~/.bash_profileÎļþ´æÔڵϰ£¬Ò»°ã»¹»áÖ´ÐÐ ~/.bashrcÎļþ¡£
ÒòΪÔÚ ~/.bash_profileÎļþÖÐÒ»°ã»áÓÐÏÂÃæµÄ´úÂ룺
if [ -f ~/.bashrc ] ; then
. ./bashrc
fi
~/.bashrcÖУ¬Ò»°ã»¹»áÓÐÒÔÏ´úÂ룺
if [ -f /etc/bashrc ] ; then
. /bashrc
fi
ËùÒÔ£¬~/.bashrc»áµ÷Óà /etc/bashrcÎļþ¡£×îºó£¬ÔÚÍ˳öshellʱ£¬»¹»áÖ´ÐÐ ~/.bash_logoutÎļþ¡£
Ö´ÐÐ˳ÐòΪ£º/etc/profile -> (~/.bash_profile | ~/.bash_login |~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout
¹ØÓÚ¸÷¸öÎļþµÄ×÷ÓÃÓò£¬ÔÚÍøÉÏÕÒµ½ÁËÒÔÏÂ˵Ã÷£º
£¨1£©/etc/profile£º ´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ. ²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖá£
£¨2£©/etc/bashrc: Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡¡£
£¨3£©~/.bash_profile: ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ


Ïà¹ØÎĵµ£º

LinuxÏÂApache ÅäÖÃÎļþÏê½â


### Section 1: Global Environment
//µ±·þÎñÆ÷ÏìÓ¦Ö÷»úÍ·£¨header£©ÐÅϢʱÏÔʾApacheµÄ°æ±¾ºÍ²Ù×÷ϵͳÃû³Æ
ServerTokens OS
//ÉèÖ÷þÎñÆ÷µÄ¸ùĿ¼
ServerRoot "/etc/httpd"
#ScoreBoardFile run/httpd.scoreboard
//ÉèÖÃÔËÐÐApacheʱʹÓõÄPidFileµÄ·¾¶
PidFile run/httpd.pid
//Èô300ÃëºóûÓÐÊÕµ½»òËͳöÈκÎÊ ......

Linux ¹ÜÀí¹¤¾ß½éÉÜ

¡¾IT168 ·þÎñÆ÷
ѧԺ
¡¿
  LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ
£¬ËýÓÐÍêÃÀµÄÓû§¹ÜÀí¹¤¾ß£¬ÕâЩ¹¤¾ß°üÀ¨Óû§µÄ²éѯ¡¢Ìí¼Ó¡¢Ð޸ģ¬ÒÔ¼°Óû§Ö®¼äÏ໥Çл»µÄ¹¤¾ßµÈ£»Í¨¹ýÕâЩ¹¤¾ß£¬ÎÒÃÇÄܰ²È«
¡¢ÇáËɵÄÍê³ÉÓû§¹ÜÀí£»
    ÔÚÕâÀïÎÒÃÇÒªÒýÈëÓû§¿ØÖƹ¤¾ßµÄ¸ÅÄ±ÈÈç¶ÔÓû§Ìí¼ÓµÄuseradd»òadduser £¬¶ÔÓû§ ......

Tuning TCP for Linux 2.4 and 2.6

Tuning TCP for Linux 2.4 and 2.6
NB: Recent versions of Linux (version 2.6.17 and later) have full autotuning with 4 MB maximum buffer sizes. Except in some rare cases, manual tuning is unlikely to substantially improve the performance of these kernels over most network paths, and is not generally ......

Linux¸÷¸öÎļþ¼ÐµÄÖ÷Òª×÷ÓÃ

linuxϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev Éè±¸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎļþ
/ ......

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐò

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐòdemo
1: °²×°±àÒë»·¾³
sudo yum install qt4-devel curl-devel gcc glibc-devel
2: È¥ http://www.libfetion.cn/Linux_demoapp_download.html ÏÂÔØ×îеÄlibfetion GUIÔ´´úÂë
3: ʹÓýâѹÃüÁî½âѹÏÂÔØºóµÄÎļþ
tar -zxvf linux-fetion-***.tar.gz (***Ϊ³ÌÐò°æ±¾ºÅ)
4: ½øÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ