LINUXϹÒÔØusb
Ò»ÔçÉ϶¼ÊÇŪÔÚLINUXϹÒÔØusb£¬ºÜÎÞÓ¼¸ºõÕÒ±éÁËËùÓÐÍøÉÏÈ˼ҽéÉܵķ½·¨£¬¿É¶ÔÓÚÒ»¸öÐÂÊÖÀ´Ëµ£¬ËûÃǴ󶼽²µÄ²»Çå³þ²»³þ£¬×îºó»¹ÊǾõµÃÕâ¸ö±È½Ï·½·¨±È½Ï³É¹¦£¬ËùÒÔÌù³öÀ´´ó¼Ò·ÖÏí£¬Ëµ²»¶¨ÒÔºó»¹ÄÜÓõõ½
1.USBÒƶ¯´æ´¢É豸ͨ³£±»Ê¶±ðΪsda1£¬¾ßÌå¿ÉÒÔͨ¹ýfdisk -lÃüÁî²éѯ¡£Ò»°ãÍâ¹ÒµãµÄ×ÓĿ¼¶¼Êǽ¨Á¢ÔÚ/mntÀïÃæµÄ ʹÓÃmkdir /mnt/usb ½¨Á¢Ò»¸ö¹ÒÔص㣬Ȼºómount /dev/sda1 /mnt/usb ½øÐйÒÔØ
2.1. Ïȱð²åUÅÌ£¬/sbin/lsmod¿´ÊÇ·ñÓÐusb-storage¡£Èç¹ûûÓеĻ°£º
cd /lib/modules/2.4.20-8/kernel/drivers/usb
for v in *.o storage/*.o ;
do /sbin/insmod $v ; done
2. ÕâÀïÔÙ/sbin/lsmod£¬Ó¦¸ÃÓÐusbcore¡¢usb-ohci£¨»òusb-uhci£¬¸ù¾ÝÖ÷°åоƬ×é¶ø²»Í¬£©¡¢usb-storage¡¢scsi_modµÈ¡£Æä ÖÐ usb-storageµÄ״̬Ӧ¸ÃΪ £¨unused£©¡£
3. ²åÈëUÅÌ£¬²»Í£µÄ/sbin/lsmod£¬ÕâÆÚ¼äusb-storageµÄ״̬ӦΪInitializing£¬³ÖÐøʱ¼ä´óÔ¼°ë·ÖÖÓ£¬Æäʵ¾ÍÏ൱ÓÚWindowsÔÚÓÒϽDz»Í£µÄµ¯ÆûÇò:)
4. ³õʼ»¯½áÊøºó, /sbin/fdisk -l£¬Ó¦¸ÃÄÜ¿´µ½/dev/sda1É豸¡£Õâʱ£¬Ö´ÐÐmount /dev/sda1 /mnt/udisk ²ÅÄܳɹ¦¡£Èç¹ûÊÇMSDOS¸ñʽ£¬ÓÖÏë¿´µ½ÖÐÎÄ£¬¿ÉÒÔ mount -t vfat /dev/sda1 /mnt/udisk -o iocharset=gb2312¡£
(Ϊ·½±ã¿ÉÒÔ/etc/fstab¼ÓÒ»ÐУ¬ÒÔºó¾Í¿ÉÒÔ mount /mnt/udisk¾ÍÐÐÁË£©¡£
Ïà¹ØÎĵµ£º
ʹÓÃDDD+GDB¿ª·¢ARM Linux³ÌÐò
½ñÌìÓÖÈ¡µÃÁËһЩ½øÕ¹£¬¸Ï¿ìдÏÂÀ´ÒÔÃâ×Ô¼ºÍü¼Ç¡£
×Ô´ÓLinuxÔÚÎҵİå×ÓÉÏÅÜÆðÀ´Ö®ºó£¬ÎÒÒ»Ö±ÔÚÏëÒ»¸öÎÊÌ⣬Ôõôµ÷ÊÔ½«À´Ð´µÄ³ÌÐò¡£ÆäʵÎÒÔÚLinux¿ª·¢·½ÃæÕæµÃºÜÍâÐУ¬µ½Á˽ñÌì²ÅÖªµÀGDBµ½µ×ÊÇ ¸ÉʲôÓõģ¬ºÇºÇ¡£ÎÒÏàÐźܶàÈË´ÓBootloaderµ÷ÊÔ¿ªÊ¼Ò»Ö±¶¼Ê¹ÓÃLED°¡£¬printfÕâÑùµÄ·½·¨À´µ÷ÊÔ¡ ......
LinuxÏÂOracle×Ô¶¯±¸·Ý½Å±¾
http://freeglad.javaeye.com/blog/586444
½Å±¾Îļþ£º
backup.sh
rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp zjhk/zjhk_123 owner=zjhk file=/home/oracle/zjhk_$rq.dmp"
cronÊÇÒ»¸ölinuxϵĶ¨Ê±Ö´Ðй¤¾ß£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£ÓÉÓÚCron ÊÇLinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶ ......
which Óï·¨ which command ˵Ã÷ ÒÀÐò´Ópath»·¾³±äÁ¿ËùÁеÄĿ¼ÖÐÕÒ³öcommandµÄλÖ㬲¢ÏÔʾÍêÕû·¾¶µÄÃû³Æ¡£ÔÚÕÒµ½µÚÒ»¸ö·ûºÏÌõ¼þµÄ³ÌÐòÎļþʱ£¬¾ÍÁ¢¿ÌÍ£Ö¹ËÑË÷£¬Ê¡ÂÔÆäÓàδËÑË÷Ŀ¼¡£ ·¶Àý£¬ÕÒ³ölsÃüÁîµÄ³ÌÐòÎļþµÄλÖ㺠which ls ϵͳÊä³ö£º /usr/bin/ls whereis Óï·¨ whereis [option] name ˵Ã÷ ÕÒ³öÌض¨ ......
½ñÌìµÄÊÂÌ«¶à£¬Ã»ÓÐÈÏÕæµÄÍê³ÉÈÎÎñ£¬²»¹ý°Ñ·þÎñÆ÷¶ËµÄÎļþ´«Êä×öºÃÁË£¡
Ã÷Ìì°Ñ·þÎñÆ÷¶ËµÄ´úÂ뼯³ÉÆðÀ´²âÊÔһϣ¬²¢°ÑÍøÂç¿Í»§¶Ë³ÌÐò×öºÃ£¡
°Ñ´úÂëÌù³öÀ´°É£¡±ãÓÚ±£´æ£¡
Í·Îļþ£ºserver_udpsocket.h
#ifndef _SERVER_UDPSOCKET_H_
#define _SERVER_UDPSOCKET_H_
#include <stdio.h>
#include <stdlib.h>
......