LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò
Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
01 // P174: 2.±à³ÌÌâ (13)²»ÀûÓÃstrcmpº¯Êý£¬×Ô¼º±à³ÌʵÏÖÁ½¸öÈÎÒâ×Ö·û´®µÄ±È½Ï¡£
02
03 // The beginning of C program: test06-13.c.
04
05 // Header files included.
06 #include <stdio.h>
07
08 // Macro definition.
09 #define MAX_SIZE 100
10
11 // No.1: Subroutine: int getstr ( char ch[], int size );
12 int getstr ( char ch[], int size )
13 {
14 int i=0;
15 if ( size >= MAX_SIZE )
16 {
17 printf ( "Input error, data will overflow!\n" );
18 return (0);
19 }
20 do
21 {
22 ch[i] = getchar();
23 i++;
24 } while ( ch[i-1] != '\n' );
25 ch[i-1] = '\0';
26 // ·µ»Ø0±íʾµ÷Óøú¯ÊýÀ´»ñÈ¡×Ö·û´®Ê±»ñÈ¡Ê
Ïà¹ØÎĵµ£º
linuxÏ mysql µÄÐ¶ÔØºÍ°²×°
¹Ø¼ü×Ö: linuxÏ mysql µÄÐ¶ÔØºÍ°²×°
Ò»¡¢Ç°ÆÚ×¼±¸£º
1
.ÓÉÓÚredhat Enterprise 5 ÖÐ×Ô´øÒ»¸ömysqlµÄ°æ±¾£¬Èç¹ûÔÚ°²×°linuxǰδѡÔñmysqlµÄ°²×°´Ë²½¾Í¿ÉÌø¹ý£¬ÒòΪÎÒµ±Ê±°²×°ÁËÏÖÔÚ½«ÆäÐ¶ÔØ
£¬²½ÖèÈçÏ£º
&nb ......
Ò»¡¢»¨Éú¿ÇFor Linux°²×°²½Öè
¡¡¡¡ÏÂÔØÊʺÏÄúµÄunix/linux°æ±¾µÄ°²×°°üÎļþ,ʹÓÃrootÉí·Ý½âѹËõ°²×°°ü
¡¡¡¡# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz
¡¡¡¡°²×°°üÎļþ½«½âѹËõÖÁphlinux_installĿ¼ÖÐ
¡¡¡¡# cd phlinux_install
¡¡¡¡Ö´Ðа²×°½Å±¾
¡¡¡¡# ./install.sh
¡¡¡¡Ö´Ðа²×°½Å±¾ºó,½«×Ô¶¯ÒÔ»¥¶¯ÅäÖÃÄ ......
LinuxϹػú×îÒªÓÐÒÔÏ·½·¨£¬ÎÒÏëÕâЩ·½·¨×ãÒÔÂú×ãÄãµÄÐèÒª£º
[root@localhost /]# shutdown [-tÃë] [-arkhcncfF] [ʱ¼ä] [ÌáʾÐÅÏ¢]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t ºó¼ÓÃëÊý£¬¼´‘¹ý¼¸ÃëÖÓºó¹Ø»ú’µÄÒâ˼¡£
-k : ²»ÒªÕæµÄ¹Ø»ú£¬Ö»ÊÇ·¢ËÍÌáʾÐÅÏ¢¡£
......
ICW2 ÓÃÓÚÉèÖÃоƬËͳöµÄÖжϺŵĸß5λ¡£Ê²Ã´ÒâË¼ÄØ£¬¾ÍÊÇ˵´ÓÖжϿØÖÆÆ÷·¢³öµÄÖжÏÐźŵĸß5λ¾ÍÊÇÔÚICW2ÀïÉèÖõġ£
ÔÚlinux 0.11Àïϵͳ°ÑÖ÷ƬµÄICW2ÉèÖÃΪ0x20£¬¾Í±íʾÖжÏÇëÇóIR0~IR7ÖжϺŵķ¶Î§ÊÇ0x20~0x27(8259AоƬ²úÉúµÄIRQºÅ±ØÐëÊÇÁ¬ÐøµÄ£¬ËùÒÔÒ²Ö»ÐèÒªÉèÖÃÆðʼºÅ¾ÍokÁË£¡) ......
1.
¸ÅÊö
¸ù¾ÝÒÔǰѧϰÄÚºËÔ´ÂëµÄ¾Ñ飬ÔÚѧϰÎļþϵͳʵÏÖ֮ǰ£¬ÎÒ´ó¸Å¶¨Á˸öÄ¿±ê£º
1
¡¢
½¨Á¢Ò»¸öÇåÎúµÄÈ«¾Ö¸ÅÄΪ½«À´ÐèÒªÑо¿´úÂëϸ½Ú´òϼáʵ»ù´¡¡£
2
¡¢
Ö»Ñо¿ÐéÄâÎļþϵͳ VFS
µÄʵÏÖ£¬²»Ñо¿¾ßÌåÎļþϵͳ¡£
ΪʲôѡÔñ Linux 2.4.30
£¿ÒòΪ¿ÉÒԲο¼¡ ......