LinuxÏ°²×°jdkºÍTomcat
Ò»¡¢ÏÂÔØjdk1.5
´Óhttp://www.sun.com/ÍøÕ¾ÏÂÔØjdk1.5
ÏÂÔØ£ºjdk-1_5_0_15-linux-i586-rpm.bin
¶þ¡¢°²×°jdk
1.
# chmod +x jdk-1_5_0_15-linux-i586-rpm.bin
# ./jdk-1_5_0_15-linux-i586-rpm.bin
°´Ìáʾ°´ÊäÈëyes,ÔÚͬһĿ¼»áµÃµ½Ò»¸öjdk-1_5_0_15-linux-i586-rpm
ͨ¹ý# rpm –ivh jdk-1_5_x-rc-linux-i586-rpm.binÀ´½øÐа²×°
ÏÂÃæÊǾßÌåµÄ²Ù×÷²½Öè
*************************************************************
[root@LIUJINLIN java]# chmod +x jdk-1_5_0_15-linux-i586-rpm.bin
[root@LIUJINLIN java]# ./jdk-1_5_0_15-linux-i586-rpm.bin
[root@LIUJINLIN java]# rpm –ivh jdk-1_5_x-rc-linux-i586-rpm.bin
*************************************************************
2.°²×°Íê±Ï,JDK°²×°ÔÚ/usr/java/Ŀ¼ÏÂ
3.ÉèÖû·¾³±äÁ¿
ÔÚ/etc/profileÎļþÖÐдÈëÒÔÏÂÓï¾ä£º
*****************************************************************
export JAVA_HOME=/usr/java/jdk1.5.0_15
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH=.:/usr/java/jdk1.5.0_15/lib:/usr/java/jdk1.5.0_15/jre/lib:$CLASSPATH
****************************************************************
4.¼ì²éÊÇ·ñ×°³É¹¦
ÓÃ# java -versionÃüÁî¼ì²éÊÇ·ñ°²×°³É¹¦£¬Èç¹û³öjavaµ½°æ±¾ÐÅÏ¢£¬ËµÃ÷°²×°³É¹¦¡£
*************************************************************
[root@LIUJINLIN java]# java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
[root@LIUJINLIN java]#
*************************************************************
°²×°³É¹¦ÁË¡£
Ò»¡¢ÏÂÔØapache-tomcat
´Óhttp://www.apache.orgÏÂÔØtomcat£º
apache-tomcat-5.5.26.tar.gz
¶þ¡¢°²×°tomcat
1.°²×°
ÏÂÃæÊÇ°²×°µÄÃüÁî:
*************************************************************
[root@LIUJINLIN java]# chmod +x apache-tomcat-5.5.26.tar.gz
[root@LIUJINLIN java]# tar zxpf apache-tomcat-5.5.26.tar.gz
*************************************************************
ÕâÊÇ»áÔÚͬĿ¼ÏÂÉú³ÉÒ»¸öÎļþ¼Ð:apache-to
Ïà¹ØÎĵµ£º
ÔÚLINUX»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkudzu̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢£ºcat /proc/memin ......
µÚÒ»²¿·Ö£ºÉèÖÃʱ¼ä
ÎÒÃÇÒ»°ãʹÓÓdate -s”ÃüÁîÀ´ÐÞ¸Äϵͳʱ¼ä (ÕâÀï˵µÄÊÇϵͳʱ¼ä£¬ÊÇlinuxÓɲÙ×÷ϵͳά»¤µÄ¡£)¡£±ÈÈ罫ϵͳʱ¼äÉ趨³É1996Äê6ÔÂ10ÈÕµÄÃüÁîÈçÏ¡£
#date -s 06/10/96
½«ÏµÍ³Ê±¼äÉ趨³ÉÏÂÎç1µã12·Ö0ÃëµÄÃüÁîÈçÏ¡£
#date -s 13:12:00
½«ÈÕÆÚʱ¼äÉèÖóÉ1996Äê6ÔÂ10ÈÕÏÂÎç1µã12·Ö0Ãë¿ÉÒ ......
1.failed to open PAM security session: No such file or directory
Òì³£ÃèÊö:²é¿´/var/log/cronʱ»á·¢ÏÖÈçÏÂÒì³£ÈÕÖ¾
May 14 09:10:01 localhost crond[20319]: (CRON) /export/home/username (No such file or directory)
May 14 09:10:01 localhost crond[20319]: CRON (username) ERROR: failed to open PAM securi ......
1¡¢²é¿´½ø³Ì·þÎñÊý£¬ÀýÈ磺ps -u ats3|grep Commer|wc -l
ÆäÖГ-u”£¬ºóÃæ¸úÓû§£¬“|grep Commer|”ÊÇ¿´ats3Óû§ÏµÄCommer·þÎñÊý£¬“|wc -l”¿´ÐÐÊý£»
2¡¢°´Ê±¼äÅÅÐò²é¿´Îļþ£ºls -lrt£»
3¡¢viÖеÄÃüÁ
:set nu ÏÔʾÐÐÊý
°´x¼ü£ºÉ¾³ý¹â±ê´¦µÄÒ»¸ö×Ö·û
°´dd¼ü£ºÉ¾³ý¹â±êËùÔÚµÄÐÐ
......
ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ö¸¶¨Îļþ£º
find . -name test.txt
ÔÚµ±Ç°Ä¿Â¼ÏÂÄ£ºýËÑË÷Îļþ£º
find . -name '*.txt'
ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ìض¨ÊôÐÔµÄÎļþ£º
find . -amin -10 # ²éÕÒÔÚϵͳÖÐ×îºó10·ÖÖÓ·ÃÎʵÄÎļþ
find . -atime -2 # ²éÕÒÔÚϵͳÖÐ×îºó48Сʱ·ÃÎʵÄÎļþ
find . -empty # ²éÕÒÔÚϵͳÖÐΪ¿ÕµÄÎļþ»òÕßÎļþ¼Ð
find . -g ......