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

Linux´®¿Ú±à³Ì

 
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¡·
´®¿Ú²Ù×÷
´®¿Ú²Ù×÷ÐèÒªµÄÍ·Îļþ
#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/ttyS0", O_RDWR);
if (-1 == fd){
/* ²»ÄÜ´ò¿ª´®¿ÚÒ»*/
perror(" Ìáʾ´íÎó£¡");
}
ÉèÖô®¿Ú
×î»ù±¾µÄÉèÖô®¿Ú°üÀ¨²¨ÌØÂÊÉèÖã¬Ð§ÑéλºÍֹͣλÉèÖᣴ®¿ÚµÄÉèÖÃÖ÷ÒªÊÇÉèÖà struct termios ½á¹¹ÌåµÄ¸÷³ÉÔ±Öµ¡£
struct termio
{ unsigned short c_iflag; /* ÊäÈëģʽ±êÖ¾ */
unsigned short c_oflag; /* Êä³öģʽ±êÖ¾ */
unsigned short c_cflag; /* ¿ØÖÆģʽ±êÖ¾*/
unsigned short c_lflag; /* local mode flags */
unsigned char c_line; /* line discipline */
unsigned char c_cc[NCC]; /* control characters */
};
ÉèÖÃÕâ¸ö½á¹¹ÌåºÜ¸´ÔÓ£¬ÎÒÕâÀï¾Íֻ˵˵³£¼ûµÄһЩÉèÖãº
²¨ÌØÂÊÉèÖÃ
ÏÂÃæÊÇÐ޸IJ¨ÌØÂʵĴ


Ïà¹ØÎĵµ£º

LinuxϵÄDhcp°²×°(·þÎñÆ÷ÃûDHcpd)

 
Ò» °²×°DHCP·þÎñÆ÷
1.ÏȲ鿴ϵͳÊÇ·ñ°²×°DHcp
#rpm -qa|grep dhcp
2.°²×°RPM°ü,Èç¹ûÊÇRea Hat LInux9°²×°°üÔÚµÚ¶þÕ¹âÅÌ,¹ÒÔÚÁ˹âÇýºó¿ÉÓòéÕÒÃüÁîÕÒDHCP°ü
#find /mnt/cdrom/ -name "dhcp"
3.²é¿´findÃüÁîËѳöÀ´µÄÎļþ·¾¶½øÐа²×°
#rpm -ivh/mnt/cdrom/RedHat/RPMS/dhcp*/dhcpd*(¸ù¾Ý×Ô¼ºÊµ¼ÊÎļþ·¾¶)
4. ......

ǶÈëʽLinux¿ª·¢¼ò½é£¨¶þ£©

 
Linux ÕýÔÚǶÈëʽ¿ª·¢ÁìÓòÎȲ½·¢Õ¹¡£ÒòΪ Linux ʹÓà GPL£¨Çë²ÎÔı¾ÎĺóÃæµÄ²Î¿¼×ÊÁÏ
£©£¬ËùÒÔÈκζԽ« Linux ¶¨ÖÆÓÚ
PDA¡¢ÕÆÉÏ»ú»òÕß¿ÉÅå´øÉ豸¸ÐÐËȤµÄÈ˶¼¿ÉÒÔ´ÓÒòÌØÍøÃâ·ÑÏÂÔØÆäÄں˺ÍÓ¦ÓóÌÐò£¬²¢¿ªÊ¼ÒÆÖ²»ò¿ª·¢¡£Ðí¶à Linux ¸ÄÁ¼Æ·ÖÖÓ­ºÏÁËǶÈëʽ£¯ÊµÊ±Êг¡¡£ËüÃÇ°üÀ¨
RTLinux£¨ÊµÊ± Linux£©¡¢uclinux£¨ ......

Linux¹Ø»úÃüÁîÏê½â

 ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡ 1.shutdown
   shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ ÓÐЩÓû§»áʹÓÃÖ±½Ó¶Ïµôµç ......

Oracle 11g R1 for Linux(RHEL5)°²×°


1
¡¢°²×°Ç°µÄ×¼±¸
1.1
¼ì²éÓ²¼þ
ÎïÀíÄڴ棺
# grep
MemTotal /proc/meminfo
½»»»¿Õ¼ä£º
# grep
SwapTotal /proc/meminfo
½»»»¿Õ¼äµÄ´óСÊǸù¾ÝÎïÀíÄÚ´æµÄ´óСÀ´ÉèÖõģ¬ÎïÀíÄÚ´æÉÙÓÚ
2G
µÄÔò½»»»¿Õ¼äÉèΪÎïÀíÄÚ´æµÄÁ½±¶£¬ÎïÀíÄÚ´æ´óÓÚ
2G
µÄÔò½»»»¿Õ¼äºÍÎïÀíÄÚ´æ´óСһÑù¡£Èç¹û²»·ûºÏÉÏÊö¹æ¶¨£¬ÄÇô¾ÍÐèÒª ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ