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

linux¿ª»úÆô¶¯

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
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
source /etc/sysconfig/rc
source $rc_s
case "$1" in
        start)
                echo "Starting Apache daemon..."
                /usr/local/apache2/bin/apachectl -k start
                evaluate_retval
                ;;
        stop)
                echo "Stopping Apache daemon..."
                /usr/local/apache2/bin/apachectl -k


Ïà¹ØÎĵµ£º

LinuxÉÏÉÕ¼CD

Linux Ϊ´´½¨ CD ÌṩÁ˹¦ÄÜÇ¿´óÇÒÁé»îµÄ¹¤¾ß¡£
Äú¿ÉÒÔ´´½¨ÔÚ¼¸ºõÈκÎƽ̨É϶¼¿É¶ÁµÄÅÌ£¬»¹¿ÉÒÔ´´½¨ .iso ÎļþÒÔ¹©ÏÂÔغͷַ¢¡£
ÔÚÈκÎƽ̨ÉÏ´ÓÃüÁîÐÐÉÕ¼ CD ¶¼ÊÇÒ»¼þÁîÈ˷ѽâÇÒ·³ÔêµÄÊÂÇ飬Linux µ±È»Ò²²»ÀýÍâ¡£²»¹ý£¬ÓÉÓÚÔÚ¸÷ƽ̨ÉÏËùÓõ½µÄÃüÁîºÍÊõÓﶼʮ·ÖÏàËÆ£¬Òò´ËѧϰһÏÂÈçºÎÔÚ Linux ÉϿ̼ CD »¹ÊÇÊ®·ÖÓÐÓõġ ......

linux lua

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "include/lua.hpp"
bool g_bQuit = false;
void ......

LinuxÏÂij¸öĿ¼ÏµÄÎļþ°´´óСÅÅÐò

1. df -lh
²é´ÅÅÌʹÓÃÇé¿ö
2. du -s /usr/* | sort -rn
ÕâÊÇ°´×Ö½ÚÅÅÐò
3. du -sh /usr/* | sort -rn
ÕâÊÇ°´Õ×£¨M£©À´ÅÅÐò
4.Ñ¡³öÅÅÔÚÇ°ÃæµÄ10¸ö
du -s /usr/* | sort -rn | head
5.Ñ¡³öÅÅÔÚºóÃæµÄ10¸ö
du -s /usr/* | sort -rn | tail
˵Ã÷£º/usr/*Ò²¿ÉÒԸijÉÄãÏëµ½´ïµÄÈκÎĿ¼
Èç/usr/local/zhou/r ......

ÈçºÎѧϰlinuxϵÄc/c++±à³Ì

ÎҼƻ®µÄѧϰÀú³Ì£º
1. cºÍc++µÄ»ù´¡ÖªÊ¶£¬Õâ¸öºÍ²Ù×÷ϵͳÎ޹أ¬ÔÚwindowsÉÏÒ²¿ÉÒÔѧ¡£cÓïÑÔÓï·¨Ïà¶Ô¼òµ¥Ò»µã£¬c++²»ÐèÒª°ÑËùÓеÄ֪ʶµã¶¼Ñ§»á£¬ÒªÖªµÀ»ù±¾µÄ·â×°£¬¼Ì³Ð£¬¶à̬֮ÀàµÄ£¬»¹ÓÐSTL¡£¸üÉîÈëµÄѧϰӦ¸ÃÊÇÔÚÒÔºóµÄ¹¤×÷ÖÐÓöµ½ÎÊÌâÁËÔÙÈ¥²é×ÊÁÏ¡£
2. ¿´Ê顶APUE¡·£¬×öÊéÉϵÄÏ°Ì⣬ÕÆÎÕÎļþ£¬ÏµÍ³µ÷Óã¬Ï̡߳¢½ø³Ì¡¢ ......

7.1.1 Linux·ÖÇø¼ò½é

7.1.1  Linux·ÖÇø¼ò½é
Ëùν·ÖÇø£¬¾ÍÊÇ´ÅÅÌÉϽ¨Á¢µÄÓÃÓÚ´æ´¢Êý¾ÝºÍÎļþµÄµ¥¶ÀÇøÓò²¿·Ö¡£´ÅÅÌ·ÖÇø¿ÉÒÔ·ÖΪÖ÷·ÖÇøºÍÀ©³ä·ÖÇø£¬ÆäÖÐÖ÷·ÖÇø¾ÍÊÇ°üº¬²Ù×÷ϵͳÆô¶¯Ëù±ØÐëµÄÎļþºÍÊý¾ÝµÄ´ÅÅÌ·ÖÇø£»À©³ä·ÖÇøÒ»°ãÓÃÀ´´æ·ÅÊý¾ÝºÍÓ¦ÓóÌÐòÎļþ¡£Ò»¸ö´ÅÅÌ×î¶à¿É·ÖΪ4¸ö·ÖÇø£¬×î¶à¿ÉÒÔÓÐ4¸öÖ÷·ÖÇø£¬¼´È«²¿·ÖÇø¶¼±»»®·ÖΪÖ÷·ÖÇø¡£Èç¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ