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

linuxÆô¶¯·ÖÎö

 linuxµÄ/etcÏÂÃæµÄprofileÎļþ¼Ç¼ÁËһЩËùÓÐÓû§¹«ÓõĻ·¾³±äÁ¿£¬rc.local¼Ç¼Óû§µÇ½µÄʱºòÒªÖ´ÐеÄshellÃüÁî¡£¸÷¸öÓû§µÄhomeĿ¼ÏÂÒ²ÓÐ.bashprofileÓÃÓÚÅäÖÃÓû§×Ô¼ºµÄ»·¾³±äÁ¿,.bashrcÓû§µÇ½µÄʱºòÖ´ÐеÄÃüÁî¡£
linuxÓÐ×Ô¼ºÒ»Ì×ÍêÕûµÄÆô¶¯Ìåϵ£¬×¥×¡ÁËlinuxÆô¶¯µÄÂöÂ磬linuxµÄÆô¶¯¹ý³Ì½«²»ÔÙÉñÃØ¡£
±¾ÎÄÖмÙÉèinittabÖÐÉèÖõÄinit treeΪ£º
/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
/etc/rc.d/rc3.d
/etc/rc.d/rc4.d
/etc/rc.d/rc5.d
/etc/rc.d/rc6.d
/etc/rc.d/init.d
Ŀ¼
1. ¹ØÓÚlinuxµÄÆô¶¯
2. ¹ØÓÚrc.d
3. Æô¶¯½Å±¾Ê¾Àý
4. ¹ØÓÚrc.local
5. ¹ØÓÚbashÆô¶¯½Å±¾
6. ¹ØÓÚ¿ª»ú³ÌÐòµÄ×Ô¶¯Æô¶¯
1. ¹ØÓÚlinuxµÄÆô¶¯
initÊÇËùÓнø³ÌµÄ¶¥²ã
init¶ÁÈ¡/etc/inittab£¬Ö´ÐÐrc.sysinit½Å±¾
(×¢ÒâÎļþÃûÊDz»Ò»¶¨µÄ,ÓÐЩunixÉõÖÁ»á½«Óï¾äÖ±½ÓдÔÚinittabÖÐ)
rc.sysinit½Å±¾×÷Á˺ܶ๤×÷:
init $PATH
config network
start swap function
set hostname
check root file system, repair if needed
check root space
....
rc.sysinit¸ù¾ÝinittabÖ´ÐÐrc?.d½Å±¾
linuxÊǶàÓû§ÏµÍ³£¬gettyÊǶàÓû§Óëµ¥Óû§µÄ·ÖË®Áë
ÔÚgetty֮ǰÔËÐеÄÊÇϵͳ½Å±¾
2. ¹ØÓÚrc.d
ËùÓÐÆô¶¯½Å±¾·ÅÖÃÔÚ /etc/rc.d/init.dÏÂ
rc?.dÖзÅÖõÄÊÇinit.dÖнű¾µÄÁ´½Ó£¬ÃüÃû¸ñʽÊÇ:
S{number}{name}
K{number}{name}
S¿ªÊ¼µÄÎļþÏò½Å±¾´«µÝstart²ÎÊý
K¿ªÊ¼µÄÎļþÏò½Å±¾´«µÝstop²ÎÊý
number¾ö¶¨Ö´ÐеÄ˳Ðò
3. Æô¶¯½Å±¾Ê¾Àý
ÕâÊÇÒ»¸öÓÃÀ´Æô¶¯httpdµÄ /etc/rc.d/init.d/apache ½Å±¾£º
´úÂë:
#!/bin/bash
......
¿ÉÒÔ¿´³öËû½ÓÊÜstart,stop,restart,status²ÎÊý
È»ºó¿ÉÒÔÕâÑù½¨Á¢rc?.dµÄÁ´½Ó£º
´úÂë:
cd /etc/rc.d/init.d &&
ln -sf ../init.d/apache ../rc0.d/K28apache &&
ln -sf ../init.d/apache ../rc1.d/K28apache &&
ln -sf ../init.d/apache ../rc2.d/K28apache &&
ln -sf ../init.d/apache ../rc3.d/S32apache &&
ln -sf ../init.d/apache ../rc4.d/S32apache &&
ln -sf ../init.d/apache ../rc5.d/S32apache &&
ln -sf ../init.d/apache ../rc6.d/K28apache
4. ¹ØÓÚrc.local
¾­³£Ê¹ÓÃµÄ rc.local ÔòÍêÈ«ÊÇϰ¹ßÎÊÌ⣬²»ÊDZê×¼¡£
¸÷¸ö·¢ÐаæÓв»Í¬µÄʵÏÖ·½·¨£¬¿ÉÒÔÕâÑùʵÏÖ£º
´úÂë:
touch /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
ln -sf


Ïà¹ØÎĵµ£º

linux£¨ÎÞͼÐνçÃæ£©Í¨¹ýwindows´úÀí·þÎñÆ÷ÉÏÍø

 ±³¾°£ºÔÚÊÖ»úwap³ÌÐò¹¤×÷ÔÚlinuxÏ£¬Ðèͨ¹ýwindows´úÀí·þÎñÆ÷ÉÏÍø£¨http/https£©£¬ISA´úÀí¡£Ê¹ÓôúÀíÐèÒªÓòÃû\Óû§ÃûºÍÃÜÂë¡£
1¡¢ÏÈÖ´ÐÐÃüÁîÉèÖû·¾³±äÁ¿export http_proxy=http://192.168.24.254:8080/ºÍexport http_proxy=http://sywgdev.net\proteinx@192.168.24.254:8080/¡£µ«Ö´ÐÐʧ°Ü¡£±¨407´í£¬ÈÏ֤ʧ°Ü¡£
2¡ ......

cheat sheet for linux and unix

A small Linux cheat sheet, introducing the very basic and very essential commands for surviving at the Linux CLI.
Moving around in the file system
Command
Action
pwd
"Print working directory" - show what dir you're in.
ls
List the contents of a dir.
ls -l
List the contents of a dir and show ......

apache linuxÉϰ²×°

 1£ºÏµÍ³°²×°£¬ÕâÀï¾Í²»ËµÁË£¬ÍøÉÏÓкܶ࣬ҲºÜ¼òµ¥¡£Ë³±ã˵Ï£¬ÎÒÓõÄÊÇredhat 9£»
2£ºÔÚͼÐνçÃæÏÂÏÂÔØapache °²×°°ü£¬ÎÒϵÄÊÇ httpd-2.2.9.tar.gz Ô´Âë°²×°°ü£¬µØÖ·ÊÇhttp://httpd.apache.org/download.cgi
3£º½«ÏÂÔØÎļþ±£´æµ½/home/redhat/src Ŀ¼Ï£¬ÆðÖØredhatÊÇÆÕͨÓû§ËùÔÚÎļþ¼Ð£¬Ò²¿ÉÒÔ×Ô¼º½¨Á¢ÆäËûµÄ ......

³õѧLinuxÄÚºË

    ¶ÔÓÚÒ»¸ö³õѧLinuxµÄÐÂÊÖÀ´Ëµ£¬¸Õ¿ªÊ¼×îÈÃÎÒÃÔ»óµÄÊÇÄں˵Ť×÷ģʽ£¬ÒÔΪÓû§¿Õ¼äµÄģʽ——Èç¶à½ø/Ïß³ÌÒ²ÊÊÓÃÓÚÄںˣ¬µ«ÕâÑù¾Í²úÉúÁËÒ»¸öã£ÂÛ£¬Óû§¿Õ¼äµÄ½ø³Ìµ÷¶ÈÊÇÓÉÄÚºËÍê³ÉµÄ£¬ÄÇôÄں˿ռäµÄ½ø³Ìµ÷¶ÈÊÇÓÉË­Íê³ÉµÄ£¿Äª·ÇÄں˿ÉÒÔÖ±½Óµ÷¶È×Ô¼º²»³É£¿
    ºÝKÁ˼¸ÌìÊéºó£ ......

ǶÈëʽLinuxϵͳÖеĿìËÙÆô¶¯¼¼ÊõÑо¿


1 ǶÈëʽLinuxϵͳÆô¶¯Ê±Ðò
Ŀǰ£¬Ç¶ÈëʽϵͳµÄÓ²¼þƽ̨ºÍÓ¦Ó÷½ÏòÇø±ðºÜ´ó£¬µ«×ÜÌåÆô¶¯Á÷³ÌÒ»Öµġ£ÕâÀïµÄϵͳÆô¶¯ÊÇÖ¸´ÓÓû§Ö´ÐÐÉϵç/¸´Î»²Ù×÷£¬µ½ÏµÍ³¿ªÊ¼ÌṩÓû§¿É½ÓÊյķþÎñˮƽËùÐèÒªµÄ¹ý³Ì¡£µäÐ͵ÄÉϵç/¸´Î»Ê±ÐòÈç±í1ËùÁС£
2 Linux¿ìËÙÆô¶¯·½·¨
Ŀǰ£¬Ò»Ð©LinuxµÄ·¢Ðа汾ÒѾ­¶ÔÆô¶¯ËٶȽøÐÐÁËÓÅ»¯¡£Èç¹ûÀûÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ