VMWare ÔÚǶÈëʽLinux¿ª·¢µÄÓ¦ÓÃ
1.VMWare ¼ò½é
1.1 ʲôÊÇVMWare.
VMWareÊDZȽÏÁ÷ÐеÄÐéÄâÈí¼þ,Ëü¿ÉÒÔÔÚWindowsÉÏÄ£Äâһ̨ÐéÄâ»ú,°²×°ÈκλùÓÚX86µÄ²Ù×÷ϵͳ.
– ËüÒ²ÓÐLinux°æ±¾,ÕâÑù¿ÉÒÔÔÚLinux°²×°Windows
– ¸üеķþÎñÆ÷°æVMWare ESXÒѾ²»ÐèÒª²Ù×÷ϵͳÁË.Ö±ÔÚһ̨Ӳ¼þÉÏÐéÄâ³öN¸ö»úÆ÷,ÏÖÔںܶàIDC(»¥ÁªÍø·þÎñÆ÷ÉÌ)²ÉÓÃÕâÒ»¼¼Êõ,°Ñһ̨¶àºË»úÆ÷·Ö¸ô³ÉN̨ÐéÄâ»ú¸ø²»Í¬ÍøվʹÓÃ.
VMWareÒ²ÓÐLINUX°æ±¾.
1.2VMWareÓŵã
– ÍêÈ«ÀûÓÃËÞÖ÷»úµÄÓ²¼þ,ÐéÄâ³öÒ»Ì×±ê×¼Ó²¼þ.
– °²×°·½±ã,ËùÓÐÐÅϢʵ¼ÊÉÏ´æÔÚ¼¸¸öÎļþµ±ÖÐ,³ö´íɾ³ý¼´¿É,²»Ó°ÏìHOST,±¸·ÝÒ²ºÜÈÝÒ×.Ö±½Ó¿½±´Îļþ¾ÍÐÐ
– ¶øÇÒ¿ÉÒÔÈÎÒâÔÚÆäËü»úÆ÷ÉÏʹÓÃ,±ÈÈç°Ñ°²×°ÐéÄâ»úÎļþ·ÅÔÚÒƶ¯Ó²¼þÉÏ,¾Í¿ÉÒÔµ½´¦Ê¹ÓÃ
– Ö§³ÖÔÝÍ£¹¦ÄÜ,³¤Ê±¼ä²Ù×÷¿ÉÒÔÔÝʱͣÏÂÀ´.Ï´ÎÔÙÔËÐÐ.ÕæʵµÄ»úÆ÷ÎÞ·¨×öµ½ÕâÒ»µã
– ¿ÉÒÔÀûÓùâÅ̵ľµÏñÎļþÐéÄâ³É¹âÇý½øÐа²×°.ÕâÑù´ÓÍøÂçÏÂÔصĹâÅÌÎļþÎÞÐèÏóÕæʵ»úÆ÷Ò»Ñù¿Ì¼³É¹âÅ̲ÅÄÜ°²×°²Ù×÷ϵͳ
– ¿ÉÒÔÄ£Äâ³ö¸ü¶àÓ²¼þÓÃÓÚ²âÊÔ,ÈçÄ£Äâ³ö¶à¿éÍø¿¨µÄ»úÆ÷ÓÃÓÚ·À»ðǽ²âÊÔ.
1.3. VMWareµÄÓ¦Óó¡ºÏ
°²×°Ò»¸ö²Ù×÷ϵͳ,ÏëÊÔÓÃÁíÒ»¸ö²Ù×÷ϵͳ
– Èç°²×°Windows,¿ª·¢»ò²âÊÔʹÓÃLinux,ÓÃVMWare±È°²×°Ë«²Ù×÷ϵͳҪ°²È«µÄ¶à
²¡¶¾,ľÂí·ÖÎö
– ÓÃÒ»¸öÐéÄâ»úÈÃÕâЩ¼Ò»ïËæ±ãÕÛÌÚ,ÓÃÓÚ·ÖÎö
²Ù×÷ϵͳµ÷ÊÔ
– Èç°²×°ÔÚֱʵӲ¼þ,Ö»ÓÐһ̨»úʱ,ºÜ¶à¹¤¾ßÎÞ·¨Ê¹ÓÃ,ÓÃÐéÄâ»ú¾Í·½±ã²»ÉÙ.
1.4. ΪʲôÔÚVMWare°²×°Linux
½ÌѧµÄ»·¾³Õû¸öÌåϵ½á¹¹ÈÔÈ»ÊÇWindows.¶øÇÒѧÉú´ó¶àÊìϤWindows,ÒòΪÕû¸öѧϰºÍ¿ª·¢»·¾³»¹ÊÇÒÔWindowsΪÖ÷,×î¼ÑµÄ·½°¸»¹ÊÇÔÚVMWare°²×°
VMWareµÄLinux¿ÉÒÔÖ±½ÓÔÀ´ÐéÄâ»úÎļþÎÞÐè°²×°.
ѧÉúÒ²¿ÉÒÔ×ÔÐа²×°Óë½ÌѧÎ޹صÄÐéÄâ»ú
2.¹ØÓÚVMWare ÐéÄâ»úµÄÍøÂçÀàÐÍ
ÒòΪ¿ª·¢ÐéÄâ»úÐèÒª´óÁ¿ÓëÍâ½çͨѶ.Òò´ËÈçºÎÅäÖÃÐéÄâÍøÂçÖÁ¹ØÖØÒª.
2.1 VMWare ·ÖÈýÖÖ״̬
– Bridge ģʽ(ÇŽÓģʽ)
– HostOnly ģʽ
– NATģʽ
ÈýÖÖģʽ²ÉÓò»Í¬Í¨Ñ¶»úÖÆ,Bridge ģʽÊÇÔÚÕæʵµÄÍø¿¨ÉÏ°ó¶¨Ò»¸öFilter £¬HostOnly ģʽÊÇÔÚHost²Ù×÷ϵͳÖн¨Ò»¸öÐéÄâÍø¿¨VMnet1,È»ºóÐéÄâ»úÓëVMnet1ͨѶ£®NATģʽÔòÊÇʹÓÃVMnet8ÓëÐéÄâ»úͨѶ
2.2 Bridgeģʽ
Ç°ÌáÊDZØÐë½ÓÈëÍøÂçµ±ÖÐ,·ñÔò¸úHost¶¼ÎÞ·¨Í¨Ñ¶.ÒòΪÕæʵÍø¿¨±ØÐëÒªÁ¬ÈëÍøÂç²Å¼¤»î
2.3 Host Only ģʽ
ʹÓÃÐéÄâÍ
Ïà¹ØÎĵµ£º
ºÇºÇ£¬×î½ü×ÁÄ¥MySQL coredumpʱѧµ½µÄÒ»µãµã¶«Î÷¡£ÔÚLinuxÏÂÒª±£Ö¤³ÌÐò±ÀÀ£Ê±Éú³ÉcoredumpҪעÒâÕâЩÎÊÌ⣺
Ò»¡¢Òª±£Ö¤´æ·ÅcoredumpµÄĿ¼´æÔÚÇÒ½ø³Ì¶Ô¸ÃĿ¼ÓÐдȨÏÞ¡£´æ·ÅcoredumpµÄĿ¼¼´½ø³ÌµÄµ±Ç°Ä¿Â¼£¬Ò»°ã¾ÍÊǵ±³õ·¢³öÃüÁîÆô¶¯¸Ã½ø³ÌʱËùÔÚµÄĿ¼¡£µ«Èç¹ûÊÇͨ¹ý½Å±¾Æô¶¯£¬Ôò½Å±¾¿ÉÄÜ»áÐ޸ĵ±Ç°Ä¿Â¼£¬Õâʱ½ø³ÌÕæÕýµ ......
LinuxÉ豸Çý¶¯³ÌÐòѧϰ£¨1£©
-×Ö·ûÉ豸Çý¶¯³ÌÐò
½ñÌì½øÈë
¡¶LinuxÉ豸Çý¶¯³ÌÐò£¨µÚ3°æ£©¡·µÚÈýÕÂ×Ö·ûÉ豸Çý¶¯³ÌÐòµÄѧϰ¡£
ÕâÒ»ÕÂÖ÷Ҫͨ¹ý½éÉÜ×Ö·ûÉ豸
scull£¨Simple Character Utility for Loading Localities£¬ÇøÓò×°Ôصļòµ¥×Ö·û¹¤¾ß£©µÄ
Çý¶¯³ÌÐò±àд£¬À´Ñ§Ï°LinuxÉ豸Çý¶¯µÄ»ù
±¾ÖªÊ¶¡£scull¿ÉÒÔΪÕæÕýµÄÉè± ......
This document shows how to write a daemon in Linux using GCC. Knowledge of Linux and a familiarity with C are necessary to use this document. This HOWTO is Copyright by Devin Watson, under the terms of the BSD License.
1. Introduction: What is a Daemon?
2. Getting Started
3. Planning Your Daemo ......
°²×°»·¾³£º
1.ÉÏ´«jdk-6u17-linux-i586.binºÍapache-tomcat-6.0.20.tar.gzµ½/usr
2.°²×°JDK
¡¡¡¡$chmod a+x jdk-6u17-linux-i586.bin
¡¡¡¡$ ./jdk-6u17-linux-i586.bin
¡¡¡¡$ vi /etc/profile
¡¡¡¡#Ìí¼ÓÈçÏÂ
¡¡¡¡export JAVA_HOME=/usr/jdk1.6.0_17
¡¡¡¡export PATH=$JAVA_HOME/bin:$PATH
¡¡¡¡$echo $JAVA_H ......
1. ÐÞ¸ÄIPµØÖ· # vi /etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸ÄÒÔÏÂÄÚÈÝ
DEVICE=eth0 #ÃèÊöÍø¿¨¶ÔÓ¦µÄÉ豸±ðÃû£¬ÀýÈçifcfg-eth0µÄÎļþÖÐËüΪeth0
BOOTPROTO=static #ÉèÖÃÍø¿¨»ñµÃipµØÖ·µÄ·½Ê½£¬¿ÉÄܵÄÑ¡ÏîΪstatic£¬dhcp»òbootp£¬·Ö±ð¶ÔÓ¦¾²Ì¬Ö¸¶¨µÄ ipµØÖ·£¬Í¨¹ýdhcpÐÒé»ñµÃµÄipµØÖ·£ ......