¡¾Nutch¡¿Linuxϵ¥»úÅäÖÃNutch
Linuxϵ¥»úÅäÖÃNutch
1.»·¾³½éÉÜ
²Ù×÷ϵͳ£ºRed hat linux 9
Nutch°æ±¾£ºnutch-0.9,ÏÂÔØ£ºhttp://apache.etoak.com/lucene/nutch/
JDK°æ±¾£ºJDK 1.6
Apache Tomcat°æ±¾£ºapache-tomcat-6.0.18
http://apache.etoak.com/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
2.ÅäÖÃÇ°Ìá
2.1 °²×°jdk 1.6
Ê×ÏÈÏÂÔØjdk°²×°°üjdk-1_6_0_13-linux-i586-rpm.bin
µÚÒ»²½£º# chmod +x jdk-1_6_0_13-linux-i586-rpm.bin (»ñµÃÖ´ÐÐȨÏÞ)
µÚ¶þ²½£º# ./jdk-1_6_0_13-linux-i586-rpm.bin (Éú³Érpm°²×°°ü)
µÚÈý²½£º# rpm -ivh jdk-1_6_0_13-linux-i586.Rpm(°²×°£Ê£Ä£Ë)
°²×°Íê±Ïºó£¬jdkĬÈÏ°²×°ÔÚ/usr/java/Ŀ¼Ï¡£
µÚËIJ½£ºÅäÖÃJAVA»·¾³±äÁ¿¡£
ÔÚ/etc/profileÖÐÉèÖû·¾³±äÁ¿
[root@red-hat-9 root]# vi /etc/profile
¼ÓÈëÒÔÏÂÓï¾ä£º
JAVA_HOME=/usr/java/jdk1.6.0_13
export JAVA_HOME
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib (×¢ÒâÊÇðºÅ)
export CLASSPATH
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
[root@red-hat-9 root]# chmod +x /etc/profile (Ö´ÐÐȨÏÞ)
[root@red-hat-9 root]# source /etc/profile (´ËºóÉèÖÃÓÐЧ)
2.2 °²×°Tombact
µÚÒ»²½£ºÉèÖû·¾³±äÁ¿(²»ÊDZØÐëµÄ)
[root@red-hat-9 program]# vi /etc/profile
export JDK_HOME=$JAVA_HOME
[root@red-hat-9 program]# source /etc/profile
µÚ¶þ²½£º°²×°tomnact£¬½âѹµ½Ä³Ä¿Â¼Ï¼´¿É
tar xf apache-tomcat-6.0.18.tar.gz
mv apache-tomcat-6.0.18 /zkl/progaram/
µÚÈý²½£ºÈçºÎʹÓÃApache Tomcat
¢ÙÊ×ÏÈÆô¶¯Tomcat£¬Ö»ÐèÖ´ÐÐÒÔÏÂÃüÁî
# /zkl/program/apache-tomcat-6.0.18/bin/startup.sh
¢ÚTomcatµÄÍøÒ³Ö÷Ŀ¼ÊÇ/zkl/program/apache-tomcat-6.0.18/webapps/£¬Ö»ÐèÔÚwebappsĿ¼ÖÐÌí¼ÓÏàÓ¦ÍøÒ³¼´¿ÉÔÚä¯ÀÀÆ÷·ÃÎÊ£¬TomcatĬÈÏĿ¼ÊÇwebappsϵÄROOTĿ¼¡£
http://127.0.0.1:8080/ ·ÃÎÊtomcatĬÈÏÖ÷Ŀ¼£¬ROOT
http://127.0.0.1:8080/luceneweb ½«luceneweb·ÅÈëwebappsÖÐ
¢ÛApache http·þÎñÆ÷µÄ¶Ë¿ÚÊÇ 80£¬http://127.0.0.1·ÃÎʵÄÊÇApacheÖ÷Ŀ¼
Apache Tomcat·þÎñÆ÷¶Ë¿ÚÊÇ8080£¬¶þÕß²»³åÍ»£¬ÈôÓгåÍ»£¬Ôò¿ÉÒÔÐÞ¸ÄtomcatÅäÖÃÎļþserver.xml
vi /zkl/program/apache-tomcat-6.0.18/c
Ïà¹ØÎĵµ£º
Ubuntu10.04¾µÏñ»á³öÏÖÎÞ·¨Ê¶±ð¼üÅÌÊäÈë¡£ÔڵǼ»Ãæʱ£¬²»ÄÜÊäÈëÃÜÂ룬ÎÞ·¨Õý³£½øÈëϵͳ¡£ ½â¾ö°ì·¨£º £¨1£© ¿ª»§ÆÁÄ»¼üÅ̹¦ÄÜ ÔÚÉÏͼ¿ª»ú½çÃæÔÚÓÒϽǵ¥»÷СÈËͼ°¸£¬ÔÙµ¥»÷“Universal Access Perferences”£¬³ö»÷“Universal Access Perferences”¶Ô»°¿ò£¬ÔÚ¶Ô»°¿òÖÐÑ¡ÖГUse on-screen keybo ......
1. ÍøÂç×Óϵͳ
* ϵͳµ÷ÓýӿÚ
* ÐÒéÎ޹زã
* ÐÒéʵÏÖ²ã
* Çý¶¯Î޹زã
* Çý¶¯³ÌÐò²ã
×¢£ºµ÷ÓýӿÚ<->ÐÒé²ã<->Çý¶¯³ÌÐò
2. Íø¿¨Çý¶¯³ÌÐò
* λÓÚÊý¾ÝÁ´Â·²ã
3. ¹Ø¼üÊý¾Ý½á¹¹
* struct net_device
* struct sk_buffer
4. ³õʼ»¯
* Éú³Énet_device£¬²¢³õʼ»¯Æä³ÉÔ±
* ¸ù¾ÝÐèÒª£¬¶ÔÍø¿¨×ÔÉí¼Ä´æÆ÷ ......
LINUX³£ÓÃÃüÁ»ù´¡£©
1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹û ......
nutchµÄÅÀ³æºÍËÑË÷¿ÉÒÔ˵ÊÇ·ÖÀëµÄÁ½¿é£¬ÅÀ³æ¿ÉÒÔÊÇM/R×÷Òµ£¬µ«ËÑË÷²»ÊÇM/R×÷Òµ¡£ËÑË÷ÓÐÁ½ÖÖ·½Ê½£ºÒ»Êǽ«ÅÀ³æÊý¾Ý(»òÕß³ÆË÷ÒýÊý¾Ý)·ÅÔÚ±¾µØÓ²ÅÌ£¬½øÐÐËÑË÷¡£¶þÊÇÖ±½ÓËÑË÷HDFSÖеÄÅÀ³æÊý¾Ý¡£
ÕâÀï½éÉÜÈçºÎʹÓÃnutch-1.0µÄWEBÇ°¶Ë¼ìË÷±¾µØÅÀ³æÊý¾Ý£º
(1)NutchµÄËÑË÷¿ÉÒÔ¶ÀÁ¢ÓÚhadoop¼¯Èº£¬Ö»Òª½«ÅÀ³æÏÂÀ´µÄÊý¾Ýcopyµ½ÈκλúÆ ......