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

LinuxϵĴ®¿Ú±à³Ì

Linux ²Ù×÷ϵͳ´ÓÒ»¿ªÊ¼¾Í¶Ô´®ÐпÚÌṩÁ˺ܺõÄÖ§³Ö,±¾ÎÄ¾Í Linux ϵĴ®ÐпÚͨѶ±à³Ì½øÐмòµ¥µÄ½éÉÜ¡£
´®¿Ú¼ò½é
´®ÐпÚÊǼÆËã»úÒ»ÖÖ³£ÓõĽӿÚ,¾ßÓÐÁ¬½ÓÏßÉÙ,ͨѶ¼òµ¥,µÃµ½¹ã·ºµÄʹÓᣳ£ÓõĴ®¿ÚÊÇ RS-232-C ½Ó¿Ú£¨ÓÖ³Æ EIA RS-232-C£©ËüÊÇÔÚ 1970 ÄêÓÉÃÀ¹úµç×Ó¹¤ÒµÐ­»á£¨EIA£©ÁªºÏ±´¶ûϵͳ¡¢ µ÷Öƽâµ÷Æ÷³§¼Ò¼°¼ÆËã»úÖÕ¶ËÉú²ú³§¼Ò¹²Í¬Öƶ¨µÄÓÃÓÚ´®ÐÐͨѶµÄ±ê×¼¡£ËüµÄÈ«ÃûÊÇ"Êý¾ÝÖÕ¶ËÉ豸£¨DTE£©ºÍÊý¾ÝͨѶÉ豸£¨DCE£©Ö®¼ä´®Ðжþ½øÖÆÊý¾Ý½»»» ½Ó¿Ú¼¼Êõ±ê×¼"¸Ã±ê×¼¹æ¶¨²ÉÓÃÒ»¸ö 25 ¸ö½ÅµÄ DB25 Á¬½ÓÆ÷,¶ÔÁ¬½ÓÆ÷µÄÿ¸öÒý½ÅµÄÐźÅÄÚÈݼÓÒԹ涨,»¹¶Ô¸÷ÖÖÐźŵĵçƽ¼ÓÒԹ涨¡£´«Êä¾àÀëÔÚÂëÔª»û±äСÓÚ 4% µÄÇé¿öÏÂ,´«ÊäµçÀ³¤¶ÈӦΪ 50 Ó¢³ß¡£
Linux ²Ù×÷ϵͳ´ÓÒ»¿ªÊ¼¾Í¶Ô´®ÐпÚÌṩÁ˺ܺõÄÖ§³Ö,±¾ÎÄ¾Í Linux ϵĴ®ÐпÚͨѶ±à³Ì½øÐмòµ¥µÄ½éÉÜ,Èç¹ûÒª·Ç³£ÉîÈëÁ˽â,½¨Òé¿´¿´±¾ÎÄËù²Î¿¼µÄ¡¶Serial Programming Guide for POSIX Operating Systems¡·
 
¼ÆËã»ú´®¿ÚµÄÒý½Å˵Ã÷
¡¡ ¡¡
ÐòºÅ
ÐźÅÃû³Æ
·ûºÅ
Á÷Ïò
¹¦ÄÜ
2
·¢ËÍÊý¾Ý
TXD
DTE→DCE
DTE·¢ËÍ´®ÐÐÊý¾Ý
3
½ÓÊÕÊý¾Ý
RXD
DTE←DCE
DTE ½ÓÊÕ´®ÐÐÊý¾Ý
4
ÇëÇó·¢ËÍ
RTS
DTE→DCE
DTE ÇëÇó DCE ½«Ïß·Çл»µ½·¢ËÍ·½Ê½
5
ÔÊÐí·¢ËÍ
CTS
DTE←DCE
DCE ¸æËß DTE Ïß·ÒѽÓͨ¿ÉÒÔ·¢ËÍÊý¾Ý
6
Êý¾ÝÉ豸׼±¸ºÃ
DSR
DTE←DCE
DCE ×¼±¸ºÃ
7
ÐźŵØ
 
 
    ÐźŹ«¹²µØ
8
Ôز¨¼ì²â
DCD
DTE←DCE
±íʾ DCE ½ÓÊÕµ½Ô¶³ÌÔز¨
20
Êý¾ÝÖÕ¶Ë×¼±¸ºÃ
DTR
DTE→DCE
DTE ×¼±¸ºÃ
22
ÕñÁåָʾ
RI
DTE←DCE
±íʾ DCE ÓëÏß·½Óͨ,³öÏÖÕñÁå
´®¿Ú²Ù×÷
´®¿Ú²Ù×÷ÐèÒªµÄÍ·Îļþ
#include <stdio.h> /*±ê×¼ÊäÈëÊä³ö¶¨Òå*/
#include <stdlib.h> /*±ê×¼º¯Êý¿â¶¨Òå*/
#include <unistd.h> /*Unix ±ê×¼º¯Êý¶¨Òå*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> /*Îļþ¿ØÖƶ¨Òå*/
#include <termios.h> /*PPSIX Öն˿ØÖƶ¨Òå*/
#include <errno.h> /*´íÎóºÅ¶¨Òå*/
´ò¿ª´®¿Ú
ÔÚ Linux Ï´®¿ÚÎļþÊÇλÓÚ /dev ϵÄ
´®¿ÚÒ» Ϊ /dev/ttyS0
´®¿Ú¶þ Ϊ /dev/ttyS1
´ò¿ª´®¿ÚÊÇͨ¹ýʹÓñê×¼µÄÎļþ´ò¿ªº¯Êý²Ù×÷£º
int fd;
/*ÒÔ¶Áд·½Ê½´ò¿ª´®¿Ú*/
fd = open( "/dev


Ïà¹ØÎĵµ£º

ÔÚlinuxÏÂʵÏÖweb qqµÄ×ÀÃ滯


´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ­°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......

Linux×Ö·û¼¯ ÒÔ¼° ÍøÂçͨÐżàÌý

²é¿´µ±Ç°ÅäÖÃ×Ö·û¼¯ locale 
²é¿´È«²¿×Ö·û¼¯ locale -a
ÉèÖÃ×Ö·û¼¯ export LANG=zh_CN.gbk
easy
tcpdump Ò»¸ölinux¼àÌýÍøÂç·ÃÎʵŤ¾ß
¼àÌý·þÎñÆ÷¼°¶Ë¿Ú
tcpdump -nn -i eth0 src host www.codigg.com and src port 80
ÕýÔÚʹÓõÄsql
tcpdump -s 0 -l -w - dst port 3306 | strings ......

linux Æô¶¯Ð­Òé·ÖÎö ÓÉboot.txt·­Òë¶øÀ´

ÔÚx86ƽ̨ÉÏ£¬linuxÄÚºËÓÃÁËÒ»¸ö±È½Ï¸´ÔÓµÄÆô¶¯Ð­Òé¹æ·¶£¬Ö÷ÒªÓÉÓÚÀúÊ·Ô­Òò£¬ÔçÆÚÏë°ÑÄÚºË×ö³É¿ÉÆô¶¯Ó³Ïñ£¬¸´ÔӵļÆËã»úÄÚ´æÄ£ÐͺÍÓÉÓÚʵģʽDOS³ÉΪÖ÷Á÷²Ù×÷ϵͳ¶øÓ°ÏìµÄ.
 
  ÏÖÔÚÓÐÏÂÁÐÆô¶¯Ð­Òé´æÔÚ£º
¾É°æÄںˣºÖ»Ö§³ÖzImageºÍImage.
2.00£ºÔö¼ÓbzImageºÍinitrdÖ§³Ö£¬Ò²ÓµÓÐÁËÒ»ÖÖÕý¹æ»¯µÄ·½·¨À´ÊµÏÖÆô¶ ......

Linuxϵͳµ÷Óà sigactionº¯ÊýÏê½â(Ò»)

¹¦ÄÜÃèÊö£º 
´¦ÀíÐźš£¼È¿ÉÓÃÓÚÉ趨¶ÔÈÎÒâÐźŵĴ¦Àí·½Ê½£¬Ò²¿ÉÓÃÓÚ¼ìÑé¸ÃÐźŵÄÄ¿Ç°Ô¤Éè´¦Ö÷½Ê½¡£
 
  
Ó÷¨£º 
#include <signal.h>
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
       
 &n ......

Linux Ï MysqlÅäÖÃÎÊÌ⼯

Ò»Ö±ÒÔÀ´ÎÒµÄÎÄÕ¶¼ÊÇÒÔ¹¤×÷±Ê¼ÇµÄÐÎʽ´æÔÚ¡£Õâ¶ÔÓÚ×Ô¼º¶ÁÆðÀ´Ã»Ê²Ã´´ó°­£¬µ«ÊǶÔÓÚÆäËû¶ÁÕß¿ÉÄܾÍÓÐЩÃÔã¡£ÎÒ¾¡Á¿¸Ä¸Ä£¬»»ÖÖ·½Ê½¡£
1. MySQL µÄ°æ±¾
Èç¹ûÒªÖ§³Ö·ÖÇø±í£¬ÔòÓ¦¸ÃʹÓà5.1.x ÒÔÉϵİ汾¡£Èç
mysql> show variables like '%version%';
+-------------------------+------------------------------ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ