VMwareÍøÂçÉèÖã¨WindowsXP+ÐéÄâRet Hat Linux 9£©
ËÞÖ÷»ú£ºWindows XP Professinoal SP2
VMware:Red Hat Linux 9
ÍøÂ磺ADSL¾ÖÓòÍø512M
ËùÓÃÈí¼þ£º
VMware-workstation-6.0.0-45731.exe
Red Hat Linux 9
°²×°¹ý³Ì£º
1.°²×°VMware-workstation-6.0.0-45731.exe
2.¿ªÆôVMware.°²×°Linux.
°²×°Ê±¿ÉÖ±½ÓÓÃÓ²ÅÌisoÎļþ.
VMware=>VM=>Settings=>CD-RoM=>Use ISO image(Ñ¡ÔñisoλÖÃ,°²×°Ò»ÕÅ,ÔÚ»»ÁíÒ»¸öisoÎļþ)
3.°²×°VMwareºó,»áÔÚXPÉÏ×Ô¶¯°²×°2¸öÐéÄâÍø¿¨:
VMware Virtual Ethernet Adapter for VMnet1
VMware Virtual Ethernet Adapter for VMnet8
XPÔËÐÐcmd=>ipconfig/all
»á²é¿´µ½2¸öÐéÄâÍø¿¨¼°ÕæʵÍø¿¨µÄIPÅäÖÃ.
ÒòÕâ2¸öÐéÄâÍø¿¨ÊÇ×°ÔÚXPϵͳÉϵģ¬ËùÒÔXPÉÏ¿ÉÒÔPingͨ.
4.´ËÍâ,ÐéÄâ»úÉϵÄLinuxÒ²ÓÐ1¸öÐéÄâÍø¿¨,ËüµÄÅäÖÃÎļþΪ
/etc/sysconfig/network-scrīpts/ifcfg-eth0
5.ÎÒÃÇ¿ÉÒÔ°ÑLinuxµÄÍø¹ØÉèÖÃΪXPϵͳÐéÄâÍø¿¨µÄIPµØÖ·,
ÕâÑùLinux¾Í¿ÉÒÔºÍXPͨÐÅÁË.
6.VMware=>VM=>Settings=>Ethemet=>Custom:Specific virtual network Ñ¡VMnet1(Host-only)
½«VMware Virtual Ethernet Adapter for VMnet1µØÖ·
ÉèÖÃΪ: 192.168.0.1
255.255.255.0
ÐÞ¸Äifcfg-eth0ÎļþÈçÏÂ:
DEVICE=eth0
ōNBOOT=yes
BOOTPROTO=none
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
PEERDNS=no
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
±£´æºó¸üÐÂÏÂ# service network restart
Ò²¿ÉÒÔ´ò¿ªLinux¿ªÊ¼=>ϵͳÉèÖÃ=>ÍøÂç,½øÐÐÉèÖÃ.
7.ÕâʱXPºÍLinux¿ÉÒÔͨÐÅÁË.
XPÔËÐÐ:ping 192.168.0.2 OK
8.´ËÍâSecureCRTÊǸö²»´íµÄÖն˷ÃÎÊÈí¼þ.¿ÉÒÔ×°ÔÚXPÉÏ£¬·ÃÎÊLinux.
9.Èç¹ûÏëÈÃÐéÄâ»úµÄLinuxÒ²ÉÏÍøµÄ»°.
¿ÉÒÔÔÚXP=>±¾µØÁ¬½ÓÊôÐÔ=>¸ß¼¶=>ÔÊÐíÆäËûÍøÂçÓû§Í¨¹ý´Ë¼ÆËã»úµÄInternetÁ¬½ÓÀ´Á¬½Ó
(ÔÚ¼ÒÍ¥ÍøÂçÁ¬½ÓÖÐÑ¡ÔñVMware Network Adapter VMnet1)
linux Ö÷DNS 192.168.0.1
ÕâÑù¾Í¿ÉÒÔÔÚÐéÄâLinuxÉÏÍøÁË.
Ïà¹ØÎĵµ£º
ÕâÕó×ÓÔÚlinuxϵÄÒ»¸öÏîÄ¿ÐèÒªÓõ½epollÀ´³ÐÊÜÍøÂçµÄ¸ß¸ºÔØ£¬µ«ÊÇÔÚʹÓõĹý³ÌÖоÍÓöµ½ÁËһЩÎÊÌâ¡£
ÔÚÕû¸ö¹ý³ÌÖУ¬ÎÒÊÇÓÃEPOLL µÄ±ßÔµ´¥·¢Ä£Ê½À´ÊµÏÖÎÒÏëÒªµÄ¹¦ÄÜ¡£
ÎÒÊÇÕâÑùʵÏֵģºÔÚEPOLLÀïÃæ°Ñ¼àÌýµÄÃèÊö·û¸ø¼ÓÁ˽øÈ¥£¬È»ºóµ÷ÓÃepoll_waitÀ´¶Ô¿Í»§¶ ......
ºÍBashµÄ»·¾³É趨ÓйصÄÎļþÓÐ
/etc/profile (Ö÷Òª)
$HOME/.bash_profile (Ö÷Òª)
$HOME/.bash_login
$HOME/.profile
$HOME/.bash_logout (Ö÷Òª)
$HOME/.bashrc (Ö÷Òª)
/etc/bashrc
˵Ã÷ÈçÏ£º
µÇÈë(login)ʱ
ÏÈÖ´ÐÐ /etc/profile
½Ó×Åbash»á¼ì²éʹÓÃÕßµÄ×Ô¼ÒĿ¼ÖУ¬ÊÇ·ñÓÐ .bash_profile »òÕß .bash_login»òÕß ......
ÖÜÐ÷ºê
http://zxuhong.blog.51cto.com/368977/74442
1.1 ¸ÅÊö
ÊÀ½ç±ê׼ʱ¼ä£¨Coordinated Universal Time£¬UTC£©£¬Ò²¾ÍÊÇ´ó¼ÒËùÊìÖªµÄ¸ñÁÖÍþÖαê׼ʱ ¼ä£¨Greenwich Mean Time£¬GMT£©¡£ÊÀ½ç¸÷µØʱ¼äÒ²ÊÀ½ç±ê׼ʱ¼äΪ»ù×¼»®·ÖΪ²»Í¬µÄʱÇø£¬ÀýÈ磬ÖйúµÄ±±¾©Ê±¼äÓëUTCµÄʱ²îΪ+8£¬Ò²¾ÍÊÇUTC+8¡£ÃÀ¹úÊÇUTC-5¡£
& ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
µ±½ñ£¬²»ÉÙ
Linux
Óû§Ò²Ê¹ÓÃÆäËû²Ù×÷ϵͳ£¬ÓÐʱÕâÑù£¬ÓÐʱÄÇÑù£¬ÄÑÓÚ¾«È·Í³¼Æ¡£Ö¤¾ÝºÎÔÚ£¿
5
ÔÂ
7
ÈÕ£¬
www.w3couter.com
ÍøÕ¾·¢²¼Ã¿ÔÂͳ¼ÆÊý ......
Ô´³ÌÐò±àÒë
MakefileµÄ±àд
³ÌÐò¿âµÄÁ´½Ó
³ÌÐòµÄµ÷ÊÔ
Í·ÎļþºÍϵͳÇóÖú
1.Ô´³ÌÐòµÄ±àÒë
ÔÚLinuxÏÂÃæ,Èç¹ûÒª±àÒëÒ»¸öCÓïÑÔÔ´³ÌÐò,ÎÒÃÇҪʹÓÃGNUµÄgcc±àÒëÆ÷. ÏÂÃæÎÒÃÇÒÔÒ»¸öʵÀýÀ´ËµÃ÷ÈçºÎʹÓÃgcc±àÒëÆ÷.
......