linuxСϵͳ֧³ÖÖÐÎĵÄÎÊÌâ
×î½üÔÚµ÷ÊÔlinuxСϵͳ£¬ÏëÈÃСϵͳ֧³ÖÖÐÎÄ£¬¾¹ý¼¸ÌìµÄµ÷ÊÔ£¬Õâ¸öÎÊÌâÖÕÓÚµÃÒÔ½â¾ö£¬ÏÂÃæ×ܽáÒ»ÏÂÓöµ½µÄÎÊÌâºÍ½â¾ö°ì·¨¡£
ÔÚconsoleÏÂÃæÖ§³ÖÖÐÎÄÎÒÑ¡ÔñµÄÊDzÉÓÃÍâ¹Òʽƽ̨µÄ°ì·¨£¬²¢²»ÕæÕýºº»¯Äںˣ¬ÒòΪµ£Ðĺº»¯Äں˻áÓнϴóµÄ·çÏÕ£¬ËùÒÔÑ¡ÓÃÍâ¹ÒµÄ·½Ê½¡£²ÉÓÃÍâ¹ÒµÄ·½Ê½±ØÐëµÃ×¼±¸Èí¼þ°ü£¬ÖîÈçzhcon¡¢chdrv¡¢autoconvert¡¢cceÖ®À࣬µ«ÕâЩԴÂë°üÔÚÎÒµÄÐéÄâ»úϱàÒëʼÖÕ²»Í¨¹ý£¬»¨ÁËÒ»¶¨Ê±¼äÔÚÐÞ¸ÄzhconÔ´ÂëÉÏ£¬Ô´ÂëÖÐijЩ½á¹¹ÌåµÄÉùÃ÷ÔÚÆäËûÍ·ÎļþÖбàÒëʱ²»ÈÏʶ£¬ÓÉÓÚ¶Ôgcc¡¢viÔËÓñȽÏÉúÊ裬²éÕҸоõ±È½ÏÂé·³¶øÇÒ»¨·Ñʱ¼ä½Ï¶à£¬ÓÚÊÇ·ÅÆúÁËÕâÌõ·£¬Ñ¡Ôñ´Órpm°üµÄ·½Ê½°²×°£¬½á¹ûrpm°²×°zhconºóÌáʾÔËÐÐÌáʾcannot open framebuffer£¬²é¿´ÄÚºËÑ¡Ïî·¢ÏÖÖ§³Öframebuffer£¬½«Æô¶¯·½Ê½¸ÄΪvga=***£¬cat /proc/device·¢ÏÖȷʵÓÐfbºóÈÔÈ»²»ÄÜʹÓÃzhcon£¬µ±Ê±»³ÒÉrpm¿ÉÄܲ»¿¿Æ×£¬ÒòΪÏÂÔصÄrpm°üºÍÎÒµÄredhat4.7°æ±¾²î±ð½Ï´ó£¬¹û¶Ï·ÅÆúÁËrpm¾ö¶¨Ò»ÐÄÒ»Òâ»ØÍ·È¥±àÒëÔ´Â룬˳±ãÌáµ½Ò»µã¾ÍÊÇ¿¼Âǵ½ÎÒÃÇÏîÄ¿×éÄÚ·þÎñÆ÷ºÍÎÒµÄredhat±ê׼ϵͳÊÇÒ»¸ö°æ±¾£¬ÄÚºËΪ2.6.9£¬ÀïÃæ¸÷ÖÖ¿âÊ®·ÖÆëÈ«¶øÇÒºÜÎȶ¨£¬½«zhcon¿½±´µ½·þÎñÆ÷ÉϱàÒëͨ¹ý£¬È»ºóÔÚ·þÎñÆ÷ÉϲâÊÔzhconÄܹ»Õý³£ÔËÐУ¬½«·þÎñÆ÷zhconÒÆÖ²µ½ÎÒµÄϵͳÖÐÈ´²»ÄܸɻîͬÑùÊÇcannot open framebufferÕâʱºòËƺõÊÇÇ¿¼¼ÇîÁË£¬ÓÚÊÇÅÜÈ¥Çë½ÌÖÓsir£¬ÖÓsir¸æ֪ͨ¹ýstrace²éÕÒÔÒò¡£
straceÊÇlinuxÖÐÓÃÀ´¸ú×Ùϵͳµ÷ÓõÄÃüÁ¹¦Äܷdz£Ç¿´ó¡£
ÒÆÖ²zhconÎÒ²ÉÓõÄ˼·ÊÇÔÚÐéÄâ»ú±ê׼ϵͳ£¨ÄÚºË2.6.9£©µÄconsoleϲâÊÔ£¬È»ºóÔÚбàÒëµÄÄÚºËϵͳ£¨ÄÚºË2.6.33£©Ï²âÊÔ£¬×îºó²âÊÔminiϵͳ¡£
ÔÚÐéÄâ»ú±ê׼ϵͳ£¨ÄÚºË2.6.9£©ÏÂstraceµ÷ÊԱȽÏ˳Àû£¬strace·¢ÏÖȱÉÙ/etc/zhcon.confÅäÖÃÎļþ´Ó·þÎñÆ÷ÉÏcopy¹ýÀ´¼´¿É¡£
ÔÚбàÒëµÄÄÚºËϵͳ£¨ÄÚºË2.6.33£©ÖвâÊÔ£¬straceÖ®ºó·¢ÏÖ/dev/ÏÂÃæºÜ¶àÎļþÌáʾcannot open£¬ÓÚÊǽ«ÕâЩÉ豸Îļþmknod£¬mknodµÄÖ÷ÒªÉ豸ÎļþÓÐpty¡¢ptmx¡¢vc¡¢mem¡¢zeroµÈÉ豸Îļþ£¬Ö®ºózhconÄÜÕý³£ÔËÐУ¬×öµ½ÕâÒ»µã¾Í·Ç³£ºÃ°ìÁË£¬ÒòΪбàÒëµÄÄÚºËϵͳÄܹ»ÔËÐУ¬miniϵͳÊǿ϶¨¿ÉÒÔÔËÐеġ£µ«ÊÇËÖªµÀÔÚminiϵͳÖвâÊÔµÄʱºòÓöµ½Á˺ܶàÎÊÌ⣬ËäÈ»ÎÒ¶ÔÄܹ»½«zhconÒÆÖ²µ½miniϵͳÉϵĿÉÐÐÐÔÕâÒ»µãÉîÐŲ»ÒÉ£¬ºóÃæ»á̸µ½ÕâÒ»µã¡£
ÒÆÖ²µ½miniϵͳÖÐzhconÒ»°Ñ£¬¹ûÈ»ÊDz»ÄÜ
Ïà¹ØÎĵµ£º
FIFO
£¬ÓÖ³ÆÃüÃû¹ÜµÀ
£¬ÊÇLinuxÏ£¨unix»·¾³Ï£©Ò»ÖÖ½ø³Ì¼äͨÐŵĻúÖÆ£¬Ó¦Óù㷺¡£
º¯Êýmkfifo
ÓÃÓÚ´´½¨ÃüÃû¹ÜµÀ£¬Ê¹ÓÃÃüÁîman 3 mkfifo
¿É²é¿´´Ëº¯ÊýÐÅÏ¢¡£
FIFO´´½¨ºó£¬¿ÉÒÔÏñÆÕͨÎļþÒ»Ñù¶ÔÆä·ÃÎÊ¡£
LinuxÏÂÒ»¸öͬÃûÃüÁîmkfifo
Ò²ÓÃÓÚ´´½¨FIFO£¬ÀýÈ磺
Ö´ÐÐÃüÁî
$ mkfifo /tmp/fifo
$ cat /tmp/fifo
³ÌÐò×èÈ ......
Linux ²Ù×÷ϵͳ´ÓÒ»¿ªÊ¼¾Í¶Ô´®ÐпÚÌṩÁ˺ܺõÄÖ§³Ö£¬±¾ÎÄ¾Í Linux ϵĴ®ÐпÚͨѶ±à³Ì½øÐмòµ¥µÄ½éÉÜ¡£ ´®¿Ú¼ò½é ´®ÐпÚÊǼÆËã»úÒ»ÖÖ³£ÓõĽӿڣ¬¾ßÓÐÁ¬½ÓÏßÉÙ£¬Í¨Ñ¶¼òµ¥£¬µÃµ½¹ã·ºµÄʹÓᣳ£ÓõĴ®¿ÚÊÇ RS-232-C ½Ó¿Ú£¨ÓÖ³Æ EIA RS-232-C£©ËüÊÇÔÚ 1970 ÄêÓÉ ......
¿ª»ú×ÔÆô¶¯ÈÎÎñµÄÉ趨
ͨ³£Çé¿öÊDZà¼rc.local£¬½«ÒªÆô¶¯µÄÄÚÈÝдÔÚÀïÃæ¼´¿É
Eg:
¿ª»ú×Ô¶¯¿ªÆô3306¶Ë¿Ú
#vi /etc/rc.local
iptables -I RH-Firewall-1-INPUT -p tcp --dport 3690 -j ACCEPT
µ±È»£¬ÓеķþÎñ£¬ÏëÒªÉ趨¿ª»ú×ÔÆô¶¯»¹Òª×öһЩÆäËüµÄÅäÖã¬Æ©È磬É趨oracle¿ª»ú×ÔÆô¶¯¡£
crontabÓÐ兩 ......
°²×°Tomcat6.0ºÍJDK1.6
ÔÚlinuxϵͳÉÏ°²×°tomcatºÍjdkÓ¦¸Ã˵ÊÇÎÒѧϰlinux֪ʶµÄµÚÒ»¿ÎÁË£¬Ö®Ç°Ö»
ÊÇÌý˵¹ý£¬´Óû½Ó´¥¹ý£¬µ«ÎÒÃǹ«Ë¾ÏîÄ¿¶¼ÊDz¿ÊðÔÚlinuxϵͳÉϵģ¬ÄÇÌìÉÏ˾ͻ
È»¸øÎÒ·¢Á˼¸¸öÎĵµ£¬ÈÃÎÒ¿´Ò»Ï£¬È»ºóÔÚÕýʽµÄ·þÎñÆ÷ÉÏ£¬°²×°jdkºÍtomcat£¬Ò»¿ªÊ¼Óеã¶ù»Å£¬ÏÈÔÚ±¾»ú×°Á˸öÐéÄâ»ú£¬·´¸´ÃþË÷²âÊÔÁ˼¸±é£¬Óöµ ......