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

linuxÏÂc±àÒëϵͳ(ת)

 
±àÒë¹ý³Ì¸ÅÊö
Á˽âһЩ±àÒë֪ʶµÄ¶ÁÕ߶¼ÖªµÀ£¬Ëùν±àÒ룬¾ÍÊÇÔÚ±àÒë³ÌÐò¶ÁÈ¡Ô´³ÌÐò£¨×Ö·ûÁ÷£©£¬¶ÔÖ®½øÐдʷ¨ºÍÓï·¨µÄ·ÖÎö£¬½«¸ß¼¶ÓïÑÔÖ¸Áîת»»Îª¹¦ÄܵÈЧµÄ»ã±à´úÂ룬ÔÙÓÉ»ã±à³ÌÐòת»»Îª»úÆ÷ÓïÑÔ£¬²¢ÇÒ°´ÕÕ²Ù×÷ϵͳ¶Ô¿ÉÖ´ÐÐÎļþ¸Ðл¸ñʽµÄÒªÇóÁ´½ÓÉú³É¿ÉÖ´ÐгÌÐò¡£
UNIX»·¾³ÏµÄC±àÒëϵͳËù×ñÑ­µÄÒ²ÊÇÕâôһ¸öÒ»°ãµÄ¹ý³Ì¡£ÖµµÃ×¢ÒâµÄÊÇÕâ¸ö¹ý³Ì²¢²»ÊÇÓÐij¸öµ¥¸ö³ÌÐòÍê³ÉµÄ£¬¶øÊÇÓжà¸ö·Ö±ðÍê³Éijһ·½Ã湤×÷µÄ³ÌÐò×éºÏÍê³ÉµÄ¡£ÕâÒ»Éè¼Æ˼ÏëͬÎÒÃÇ×î³õÌáµ½µÄUNIXϵͳÈí¼þ¹¦ÄÜרһµÄÌصãÊÇÏà·ûµÄ¡£
¹éÄÉÆðÀ´£¬¿ÉÒÔ½«UNIX»·¾³ÏÂC±àÒëϵͳµÄ¹¤×÷¹ý³ÌÏÂͼËùʾ¡£
CÔ´³ÌÐòÍ·Îļþ£­£­>Ô¤±àÒë´¦Àí£¨cpp)£­£­>±àÒë³ÌÐò±¾Éí£­£­>ÓÅ»¯³ÌÐò£­£­>»ã±à³ÌÐò£­£­>Á´½Ó³ÌÐò-->¿ÉÖ´ÐÐÎļþ
Ò»°ãÎÒÃÇÓÃccÃüÁîÀ´Íê³É¶ÔÔ´³ÌÐòµÄ±àÒ빤×÷¡£´ËccÃüÁî²¢²»ÊÇÒ»¸ö¶þ½øÖƵĿÉÖ´ÐгÌÐò£¬¶øÊÇÒ»¸öshellÃüÁîÎļþ¡£ËüµÄ¹¤×÷¾ÍÊÇÒÀ´Îµ÷ÓÃÎÒÃÇÉÏÃæËùÁгöµÄ¸÷¸öÍê³Éij²¿·Ö¹¤×÷µÄ¾ßÌå³ÌÐò£¬½«Ö¸¶¨µÄcÔ´³ÌÐòת»»³É¿ÉÖ´ÐеĴúÂë¡£
1.±àÒëÔ¤´¦Àí
Ôڴ˽׶Σ¬Ô¤±àÒë³ÌÐò¶ÁÈ¡cÔ´³ÌÐò£¬¶ÔÆäÖеÄαָÁÒÔ#¿ªÍ·µÄÖ¸ÁºÍÌØÊâ·ûºÅ½øÐд¦Àí¡£CÓïÑÔÖеÄαָÁîÖ÷Òª°üÀ¨ÒÔÏÂËĸö·½Ãæ
(1)ºê¶¨ÒåÖ¸ÁÈç# define Name
TokenString,#undefµÈ¡£¶ÔÓÚÇ°Ò»¸öαָÁԤ±àÒëËùÒª×÷µÃµÄÊǽ«³ÌÐòÖеÄËùÓÐNameÓÃTokenStringÌæ»»£¬µ«×÷Ϊ×Ö·û´®³£Á¿
µÄNameÔò²»±»Ìæ»»¡£¶ÔÓÚºóÕߣ¬Ôò½«È¡Ïû¶Ôij¸öºêµÄ¶¨Ò壬ʹÒÔºó¸Ã´®µÄ³öÏÖ²»ÔÙ±»Ìæ»»¡£
£¨2£©Ìõ¼þ±àÒëÖ¸ÁÈç#ifdef,#ifndef,#else,#elif,#endif,µÈµÈ¡£ÕâЩαָÁîµÄÒýÈëʹµÃ³ÌÐòÔ±¿ÉÒÔͨ¹ý¶¨Ò岻ͬµÄºêÀ´¾ö¶¨±àÒë³ÌÐò¶ÔÄÄЩ´úÂë½øÐд¦Àí¡£Ô¤±àÒë³ÌÐò½«¸ù¾ÝÓйصÄÎļþ£¬½«ÄÇЩ²»±ØÒªµÄ´úÂë¹ýÂ˵ô
£¨3£©Í·Îļþ°üº¬Ö¸ÁÈç#include "FileName"»òÕß#include
<FileName>µÈ¡£ÔÚÍ·ÎļþÖÐÒ»°ãÓÃαָÁî#define¶¨ÒåÁË´óÁ¿µÄºê£¨×î³£¼ûµÄÊÇ×Ö·û³£Á¿£©£¬Í¬Ê±°üº¬Óи÷ÖÖÍⲿ·ûºÅµÄÉùÃ÷¡£²ÉÓÃ
Í·ÎļþµÄÄ¿µÄÖ÷ÒªÊÇΪÁËʹijЩ¶¨Òå¿ÉÒÔ¹©¶à¸ö²»Í¬µÄCÔ´³ÌÐòʹÓá£ÒòΪÔÚÐèÒªÓõ½ÕâЩ¶¨ÒåµÄCÔ´³ÌÐòÖУ¬Ö»Ðè¼ÓÉÏÒ»Ìõ#includeÓï¾ä¼´¿É£¬¶ø²»±ØÔÙ
ÔÚ´ËÎļþÖн«ÕâЩ¶¨ÒåÖظ´Ò»±é¡£Ô¤±àÒë³ÌÐò½«°ÑÍ·ÎļþÖеĶ¨Òåͳͳ¶¼¼ÓÈëµ½ËüËù²úÉúµÄÊä³öÎļþÖУ¬ÒÔ¹©±àÒë³ÌÐò¶ÔÖ®½øÐд¦Àí¡£
°üº¬µ½cÔ´³ÌÐòÖеÄÍ·Îļþ¿ÉÒÔÊÇϵͳÌṩµÄ£¬ÕâЩͷÎļþÒ»°ã±»·ÅÔÚ/usr/includeĿ¼Ï¡£ÔÚ³ÌÐòÖÐ#includeËüÃÇҪʹÓüâÀ¨ºÅ
£¨<>)¡£ÁíÍ⿪·¢ÈËÔ±Ò


Ïà¹ØÎĵµ£º

ºìñÆóÒµLinux»ù´¡¸ÅÊö£¨RH033£©

 ³ÉΪһÃûÓÅÐãµÄºìñÆóÒµLinuxÓû§£¬¿ÉÒÔʹÓúͶ¨ÖÆÒ»¸öºìñϵͳÀ´½øÐÐÆÕͨÃüÁîÐд¦ÀíºÍÌá¸ß×ÀÃæϵͳµÄÉú²úÁ¦£¬ÎªÑ§Ï°ÏµÍ³¹ÜÀí£¨RH131£©¿Î³Ì×öºÃ³ä·ÖµÄ×¼±¸¡£
   ±¾¿Î³ÌÊʺÏLinux ÐÂÊÖÒÔ¼°ÒÔǰûÓÐʹÓÃLinux »ò UNIX ÃüÁîÐеľ­Ñ飬ÏëÕÆÎÕºÍÁ·Ï°Ê¹ÓúͿØÖÆLinuxϵͳËùÐè»ù±¾¼¼ÄܵÄÓû§¡£
Ö÷ҪĿ±êÎ ......

linux ¿ª»ú×Ô¶¯ÔËÐÐ

 ÒýÓÃhttp://blog.csdn.net/johnny_mcoc/archive/2008/05/15/2447174.aspx
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length>300) ......

Linuxʵս¹¥ÂÔÖ®NFS·þÎñÆ÷°²×°ÅäÖÃ

http://server.it168.com/a2008/1016/208/000000208085.shtml
 Èç¹ûÔÚRed Hat Enterprise Linux 5°²×°Ê±ÒѾ­Ä¬ÈÏ°²×°ÁËNFS×é¼þ£¬½ÓÏÂÀ´µÄ¹¤×÷Ö÷ÒªÊÇÅäÖÃÏà¹ØÎļþʹ·þÎñÆ÷ÌṩNFS·þÎñ£¬²½ÖèÈçÏ¡£
¡¡¡¡£¨1£©É趨ij̨¼ÆËã»úΪNFS·þÎñÆ÷£¬²¢ÔÚºǫ́Æô¶¯Ïà¹ØµÄÊØ»¤½ø³Ì£¨ÔÚ"·þÎñÅäÖÃ"ÖÐÆô¶¯£©¡£Ò»°ãÀ´Ëµ£¬Èç¹ûNFS·þÎñÆ÷Òª ......

Linux ÏÂ Squid °²×°

Ŀ¼
 
Ò»¡¢È·±£Linux ϵͳÖÐ×°ÓÐNET-SNMP ЭÒé... 1
1.Net-snmp »ñÈ¡Óë°²×°... 1
2.Net-snmp µÄÅäÖÃ... 1
3.Net-snmp ³£ÓÃÃüÁî... 2
¶þ¡¢Squid. 3
1.¼ì²élinuxÊÇ·ñ´æÔÚsquidÀÏ°æ±¾... 3
2.Squid »ñÈ¡Óë°²×°... 3
3.Squid ÅäÖÃ... 4
4.Squid ²âÊÔ... 4
5.Squid ³£ÓÃÃüÁî... 5
6.Squid ÆäËû... 6
7.Squid. ......

CÉî¶È½âÆÊÎÊÌâ´úÂë·ÖÎö±Ê¼Ç1

#include <stdio.h>
int main()
{
int a[5]={1,2,3,4,5};
int *ptr1=(int*)(&a+1);
int *ptr2=(int*)((int)a+1);
printf("%p,%x,%p\n",(int)a,*(ptr2+1),ptr1);//(int*)(&a));
printf("%d\n",(int*)(&a-16));
printf("%d,%x\n",ptr1[-1] ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ