linux°²×°JDK
Ê×ÏÈ£¬´Óhttp://java.sun.comÖÐÏÂÔØjdk,Îҵİ汾ÊÇjdk1.6.0_20
È»ºó£¬ÖÕ¶ËÊäÈë
´úÂë:
sudo chmod u+x /£¨Â·¾¶Ãû³Æ£©/jdk1.6.0_12.bin
ÐÞ¸ÄbinÎļþȨÏÞ£¬Ê¹Æä¿ÉÖ´ÐÐ
È»ºó£¬Ö´ÐÐ
´úÂë:
sudo £¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20.bin
½«»á³öÏÖ×ÖÄ»£¬³ÖÐø°´»Ø³µ¼ü£¬Ö±ÖÁÆÁÄ»ÏÔʾҪÇóÊäÈë yes/no£¬´ËʱÊäÈëy»Ø³µ£¬½«»á°Ñjdk½âѹµ½Îļþ¼Ð£¬µÃµ½jdk1.6.0_20Ŀ¼£¨ÔÚÖ÷Ŀ¼homeϵÄÓû§ÃûÎļþ¼ÐÏ£©¡£
´Ëʱ£¬jdkÒѰ²×°Íê±Ï£¬ÏÂÃæ½øÐÐÅäÖÃ
Ö´ÐÐ
´úÂë:
sudo gedit /etc/environment
ÔÚenvironmentÖÐÐ޸쬳öÏÖÈçϲ¿·Ö
ÒýÓÃ:(·¾¶Ãû³ÆÎª½âѹºóÎļþ¼ÐËùÔÚ·¾¶£¬»òÔÚÔÚÖ÷Ŀ¼homeϵÄÓû§ÃûÎļþ¼ÐÏÂ)
PATH£½"......:£¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20/bin"
CLASSPATH=.:£¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20/lib
JAVA_HOME=£¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20
ÓÉÓÚubuntuÖпÉÄÜ»áÓÐĬÈϵÄjdk£¬Èçopenjdk£¬ËùÒÔ£¬ÎªÁËʹĬÈÏʹÓõÄÊÇÎÒÃǰ²×°µÄjdk£¬»¹Òª½øÐÐÈçϹ¤×÷¡£
Ö´ÐÐ
´úÂë:
update-alternatives --install /usr/bin/java java £¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20/bin/java 300
update-alternatives --install /usr/bin/javac javac £¨Â·¾¶Ãû³Æ£©/jdk1.6.0_20/bin/javac 300
ͨ¹ýÕâÒ»²½½«ÎÒÃǰ²×°µÄjdk¼ÓÈëjavaÑ¡µ¥¡£
È»ºóÖ´ÐÐ
´úÂë:
update-alternatives --config java
ͨ¹ýÕâÒ»²½Ñ¡ÔñϵͳĬÈϵÄjdk
ÕâÑù£¬ÔÙÔÚshellÖÐÊäÈë
´úÂë:
java -version
ʱ£¬¾Í»áÏÔʾϵͳʹÓõÄjavaÊÇsunµÄjava¡£
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
ÕâÁ½Ìì´î½¨ÁËÒ»×éApache·þÎñÆ÷£¬Ã¿Ì¨·þÎñÆ÷4GÄڴ棬²ÉÓõÄÊÇpreforkģʽ£¬Ò»¿ªÊ¼ÉèÖõÄÁ¬½ÓÊýÌ«ÉÙÁË£¬ÐèÒª½Ï³¤µÄʱ¼äÈ¥ÏìÓ¦Óû§µÄÇëÇ󣬺óÀ´ÐÞ¸ÄÁËÒ»ÏÂApache 2.0.59µÄÅäÖÃÎļþhttpd.conf£º
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes ......
½ñÌìÔÚÐéÄâ»úÏÂÓÖ֨װÁËlinux£¬ÏÂÃæÊÇ´ÓÍøÉÏËѵ½µÄlinuxÐéÄâ»úµÄÍøÂçÅäÖãº
1¡¢ Äã×°ºÃÐéÄâ»úºó,Äã»á·¢ÏÖ¶à³öÀ´Á½¸öÍø¿¨ ,Ò»¸ö1,Ò»¸ö8,
2¡¢ ¹²Ïí¶ÔÍâµÄÍø¿¨£º“±¾µØÁ¬½Ó—ÊôÐÔ—¸ß¼¶” Ñ¡ÖÐ
ÔÊÐíÆäËûÍøÂçÓû§Í¨¹ý´Ë¼ÆËã»úµÄInternetÁ¬½ÓÀ´Á¬½Ó
£¨Õâʱ“ÔÊÐíÆäËûÍ ......
´ÓÕâ¸ö×ܽáÕýʽ¿ªÊ¼ÁËÎÒµÄÇý¶¯Ö®Âã¬ÐÄÇé²»ÃâÓе㼤¶¯£¬¾¡¹ÜÏÖÔÚ¶ÔÇý¶¯µÄ±àд»¹ºÜÄ£ºý£¬µ«»¹ÊÇÓмÍÄîÒâÒåµÄ……
¿ª·¢Æ½Ì¨£º
ÐéÄâ»úÏÂRedHat9£¬ÄÚºË2.4.20.8
½»²æ±àÒë±àÒëÆ÷£ºÌìǶ¹«Ë¾ÌṩµÄarm-linux-gcc 4.3.3
ÄÚºËÊ÷£º/h ......