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

LinuxÉèÖÃIP

ÔÚÍøÉϲéÕÒÁËÅäÖÃlinuxÅäÖÃIPµÄ·½·¨£¬¼òµ¥µÄÓÐÏÂÃæÁ½ÖÖ£º
×î
³£ÓõĸøÍø¿¨ÅäÖÃipµÄÃüÁîΪ
££ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
˵Ã÷£º
eth0
ÊǵÚÒ»¸öÍø¿¨£¬ÆäËûÒÀ´ÎΪeth1£¬eth*
192.168.0.1ÊǸøÍø¿¨ÅäÖõĵÚÒ»¸öÍø¿¨ÅäÖõÄipµØÖ·
netmask 255.255.255.0 Åä
ÖõÄÊÇ×ÓÍøÑÚÂë
upÊDZíʾÁ¢¼´¼¤»î
 ifconfigµÄ¸ü¶à²ÎÊý˵Ã÷²é¿´Ïà¹Ø°ïÖú
ÊÖ¶¯¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0Îļþ
vi´ò¿ªifcfg-eth0Îļþ
Ô­ÄÚÈÝ£º
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:03:47:2C:D5:40
ONBOOT=yes
TYPE=Ethernet
¸Ä
Ϊ£º
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.223
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
HWADDR=00:0uu3:47:2C:D5:40
ONBOOT=yes
TYPE=Ethernet
·Ö
±ðÖ´ÐÐÃüÁî
/sbin/ifdown eth0
/sbin/ifup eth0
/etc/init.d/network
restart  //ʹÉèÖõÄÍø¹ØÂíÉÏÉúЧ
ifup £­ ´ú±í²¦ºÅµÄÁ¬½ÓÃüÁ¸ÃÃüÁîÖ»ÒªÔÚÃüÁîÐлòÖÕ¶ËÖпÉÒԳɹ¦Ö´ÐоͿÉÒÔÁË
ifdown
- ´ú±í¶Ï¿ªÁ¬½ÓµÄÃüÁͬÑù¸ÃÃüÁîÖ»ÒªÔÚÃüÁîÐлòÖÕ¶ËÖпÉÒԳɹ¦Ö´ÐоͿÉÒÔÁË
ÉèÖÃDNS
/etc/resolv.conf
nameserver 202.102.24.35 Ö¸¶¨ÁËdns·þÎñÆ÷µÄµØÖ·


Ïà¹ØÎĵµ£º

linuxѧϰ

ÎÒ·¢ÏÖÏÖÔÚ¹Ø×¢linuxµÄÈËÌرð¶à£¬µ«ÍùÍù¶¼²»ÖªµÀ´ÓÄÄÈëÊÖ£¬ÎÒÏ£Íû´ó¼Ò¿´ÍêÁËÕâƪÎÄÕºóÄÜÄúһЩÆôʾ£¬Í¬Ê±Ò²ÏàÐÅÆäʵÈëÐв¢²»ÄÑ£¬ÄѵÄÊÇѧ¾«µÄµÀÀí¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡ µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ²»µ½¸ÃĿ¼£¬ÎÒÒªÈçºÎÏÞÖÆÊ ......

LinuxÄں˵Äioctlº¯Êýѧϰ

 ÎÒÕâÀï˵µÄioctlº¯ÊýÊÇÔÚÇý¶¯³ÌÐòÀïµÄ£¬ÒòΪÎÒ²»ÖªµÀ»¹ÓÐûÓбðµÄ³¡ºÏÓõ½ÁËioctl£¬ ËùÒԾ͹涨ÁËÎÒÃÇÌÖÂ۵ķ¶Î§¡£ÎªÊ²Ã´ÒªÐ´ÆªÎÄÕÂÄØ£¬ÊÇÒòΪÎÒÇ°Ò»Õó×Ó±»ioctl¸ø¸ã»ìÁË£¬Õ⼸Ìì²ÅŪÃ÷°×Ëü£¬ÓÚÊÇÔÚÕâÀïÇåÀíÒ»ÏÂÍ·ÄÔ¡£
Ò»¡¢ ʲôÊÇioctl¡£
ioctlÊÇÉ豸Çý¶¯³ÌÐòÖжÔÉ豸µÄI/OͨµÀ½øÐйÜÀíµÄº¯Êý¡£Ëùν¶ÔI/OͨµÀ½øÐÐ ......

linux¹ØÓÚbashrcÓëprofileµÄÇø±ð


bashrcÓëprofileµÄÇø±ð
Òª¸ãÇåbashrcÓëprofileµÄÇø±ð£¬Ê×ÏÈҪŪÃ÷°×ʲôÊǽ»»¥Ê½shellºÍ·Ç½»»¥Ê½shell£¬Ê²Ã´ÊÇlogin shell ºÍnon-login shell¡£
½»»¥Ê½Ä£Ê½¾ÍÊÇshellµÈ´ýÄãµÄÊäÈ룬²¢ÇÒÖ´ÐÐÄãÌá½»µÄÃüÁî¡£ÕâÖÖģʽ±»³Æ×÷½»»¥Ê½ÊÇÒòΪshellÓëÓû§½øÐн»»¥¡£ÕâÖÖģʽҲÊÇ´ó¶àÊýÓû§·Ç³£ÊìϤµÄ£ºµÇ¼¡¢Ö´ÐÐһЩÃüÁǩÍË¡ ......

linux°²×°mysql

1¡¢°²×°°ü
ÏÂÔØÍøÖ·£ºhttp://dev.mysql.com/downloads/mysql/
mysql-5.1.38.tar.gz£¨°æ±¾£º5.1.38£©
2¡¢Ìí¼ÓmysqlÓû§ÓëȺ
groupadd mysql
useradd -g mysql -s /sbin/nologin mysql
3¡¢½âѹÓë±àÒë
tar zxvf mysql-5.1.38.tar.gz
cd mysql-5.1.38/
./configure --prefix=/usr/local/mysql/ --enable-assembler --w ......

LINUX°²×°Íø¿¨Çý¶¯Ê±ÌáʾÕÒ²»µ½.autoconf.h

ÔÚfc8µÄdom0ÉÏ°²×°e1000eÍø¿¨Çý¶¯
#make
#Linux kernel source not configured: missing autoconf.h
½â¾ö·½·¨£º
ÔÚ±àÒëxenʱδʹÓÃmake config
´Ëʱ¿ÉÒÔÕÒµ½Ô´Â룬ÆäÖаüº¬.configÎļþ£¬ÔËÐÐmake oldconfig¼´¿ÉÉú³Éautoconf.h
´Ó¶ø¿ÉÒԳɹ¦±àÒë°²×°Äںˡ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ