½â¾öLinuxÉϲ»ÁËÍøµÄÎÊÌâ
Ìø³ö¹ßÐÔ˼ά½â¾öLinuxÉϲ»ÁËÍøµÄÎÊÌâ
(À´×Ôhttp://hi.baidu.com/zfxwyh1985/blog/item/b3882a1285fa3cc8c3fd78c2.html)
2008-10-29 09:54
һ̨½»»»»ú£¬ һ̨Win2003µÄ»úÆ÷×öΪ¾ÖÓòÍøµÄÍø¹Ø£¨ÆäIPµØÖ·ÉèΪ192.168.0.1£©£¬µçÐŹ«Ë¾¸øÎÒÃÇÒ»¸öÉÏÍøÕʺſÉÒÔ¼¸Ì¨»úÆ÷ͬʱ²¦ºÅ¡£ÆäËü»úÆ÷µÄIP µØÖ·Éè³É192.168.0.×£¬¿ÉÒÔͨ¹ýÍø¹Ø¹²ÏíÉÏÍø£¬ËùÒÔ²¦²»²¦ºÅ¶¼¿ÉÒÔÉÏÍø¡£ÎҵĻúÆ÷°²×°ÁËÁ½¸ö²Ù×÷ϵͳ£¬Ò»¸öWindowsXP£¬ÁíÒ»¸öLinux¡£
ÓÐÒ»ÌìͻȻ³öÏÖÁËÆæ¹ÖµÄÎÊÌ⣬ÎÒµÄLinuxϵͳÉϲ»ÁËÍø,¾¼ì²épingÍø¹Ø192.168.0.1²»Í¨£¬ÖØÆôµçÄÔ½øÈëWindowsXPϵͳ£¬ÕÕ³£¿ÉÒÔÉÏÍø¡£ÎÒ»¹ÒÔΪÊÇÎÒµÄLinux³öÁËÎÊÌ⣬°´ÕÕÔÚgoogleÉÏËѳöÀ´µÄ·½·¨ÖØÐÂÅäÖÃÎÒµÄLinuxϵͳ£¬»¹ÊDz»ÐС£ÎÒÖØа²×°ÁËLinuxϵͳ£¬»¹ÊÇÉϲ»ÁËÍø£¬Ò²ping²»Í¨Íø¹Ø¡£ÎÒ³¢ÊÔÓùýÁíÍâÒ»¸öLinux°æ±¾£¬»¹ÊDz»ÐС£
¼ÙÉèÎҵĻúÆ÷ÉèΪÍø¹Ø£¬Äܲ»ÄÜÉÏÍøÄØ£¿¼ÈÈ»µçÐÅÌṩ¸øÎÒÃǹ«Ë¾µÄÕʺſÉÒÔ¶àÈËͬʱ²¦ºÅ£¬ÄÇÎÒ¿ÉÒÔ½«ÎÒ×Ô¼ºµÄ»úÆ÷ÉèΪµ¥¶À×齨ÁíÍâÒ»¸ö¾ÖÓòÍø£¬ÎÒ×Ô¼ºµÄ»úÆ÷×÷ΪÍø¹Ø£¨ÎªÁ˲»ºÍWin2003µÄIPµØÖ·³åÍ»£©µØַΪ£º192.168.1.1¡£
Á¢¼´¶¯ÊÖ¡£
#ifconfig eth0 192.168.1.1 netmask 255.255.255.0
#ifconfig eth0 up
#pppoe-setup½«²¦ºÅÉèÖúÃ
#pppoe-start
Ìáʾ£ºDeleting all exist defaultroute ....
.. Connected!
¾ÓÈ»³É¹¦ÁË¡£
#ping 192.168.1.1
ͨÁË
#ping 202.106.0.20 (±±¾©ÍøͨDNS µØÖ·£©
ͨÁË
ÔõôÎÒÒÔǰûÓÐÏëµ½ÕâÑù×öÄØ£¿¸ãµÃÎÒÁ½¸ö¶àÔÂûÓÐÓÃLinuxÉÏÍøÁË¡£
ÏÖÔÚÖÕÓÚºÃÁË¡£
Ïà¹ØÎĵµ£º
»ùÓÚI/O RegionµÄ²Ù×÷º¯Êý__XXX_region()£¬LinuxÔÚÍ·Îļþinclude/linux/ioport.hÖж¨ÒåÁËÈý¸ö¶ÔI/OÄÚ´æ×ÊÔ´½øÐвÙ×÷µÄºê£º
¡¡¡¡¢Ùrequest_mem_region()ºê£¬ÇëÇó·ÖÅäÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ´¡£
¡¡¡¡¢Úcheck_ mem_region()ºê£¬¼ì²éÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ´ÊÇ·ñÒѱ»Õ¼Óá£
¡¡¡¡¢Ûrelease_ mem_region()ºê£¬ÊÍ·ÅÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ ......
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/types.h>
#include<dirent.h>
#define MAX 1024
char path[100];
char *strmin(char *des,const char *min)
{
int i=strlen(des);
&nbs ......
ÏñLinuxÄÚºËÕâÑùÅÓ´ó¶ø¸´ÔӵijÌÐò¿´ÆðÀ´È·ÊµÈÃÈËÍû¶øÉú磬ËüÏóÒ»¸öºÜ´óµÄÇò£¬Ã»ÓÐÆðµãºÍÖյ㡣ÔÚ¶ÁÔ´´úÂëµÄ¹ý³ÌÖУ¬Äã»áÓöµ½ÕâÑùµÄÇé¿ö£¬µ±¶Áµ½Äں˵Äijһ²¿·ÖʱÓÖ»áÉæ¼°µ½ÆäËü¸ü¶àµÄÎļþ£¬µ±·µ»Øµ½ÔÀ´µÄµØ·½Ïë¼ÌÐøÍù϶Áʱ£¬ÓÖÍüÁËÔÀ´¶ÁµÄÄÚÈÝ¡£ÔÚinternetÉÏ£¬ºÜ¶àÈËΪ´Ë¸¶³öÁ˺ܴóµÄŬÁ¦£¬ÖÆ×÷³öÁËÔ´´úÂëµ¼º½Æ÷£ ......
LINUXϲ鿴Apache²¢·¢ÇëÇóÊý¼°ÆäTCPÁ¬½Ó״̬ ÊÕ²Ø
2007-7-20 18:30 ÕÅÑç
²é¿´httpd½ø³ÌÊý£¨¼´preforkģʽÏÂApacheÄܹ»´¦ÀíµÄ²¢·¢ÇëÇóÊý£©£º
LinuxÃüÁ
ps -ef | grep httpd | wc -l
·µ»Ø½á¹ûʾÀý£º
¡¡¡¡1388
¡¡¡¡±íʾApacheÄܹ»´¦Àí1388¸ö²¢·¢ÇëÇó£¬Õâ¸öÖµApache¿É¸ù¾Ý¸ºÔØÇé¿ö×Ô¶¯µ÷Õû£¬ÎÒÕâ×é·þÎñÆ÷Ö ......