JDK1.6ÔÚLINUXϵݲװÅäÖÃ
JDK1.6ÔÚLINUXϵݲװÊÇÈçºÎ½øÐеÄÄØ£¬ÈÃÎÒÃÇ¿ªÊ¼ÎÒÃǵÄÑÝʾ£º
Ubuntu LinuxÏÂjdkµÄ°²×°ÓëÅäÖÃ
1.JDK1.6°²×°×¼±¸
´Ósun¹«Ë¾ÍøÕ¾www.sun.comÏÂÔØlinux°æ±¾µÄjdk,ÎÒÏÂÔصİ汾ÊÇJDK 6 Update 7,
µØÖ·http://java.sun.com/javase/downloads/index.jsp
jdk-6u7-linux-i586.bin,´ò¿ªÖնˣ¬ÓÃcdÃüÁî½øÈëjdkËùÔÚĿ¼,Ö´Ðи´ÖÆÃüÁî
sudo cp jdk-6u7-linux-i586.bin /usr
¼´½«jdk¸´ÖƵ½/usrĿ¼ÏÂ,È»ºó½øÈë/usrĿ¼cd /usr
Ö´ÐÐȨÏÞ
chmod +x jdk-6u7-linux-i586.bin
Ö´Ðа²×°ÃüÁî
./jdk-6u7-linux-i586.bin
ÈçÓö´íÎ󣬿ÉÏÈÇл»ÖÁrootÓû§ÏÂ,su root£¬ÔÙÖ´Ðа²×°ÃüÁî
°²×°³É¹¦»áÔÚ/usrĿ¼ÏÂÉú³Éjdk1.6.0_07Ŀ¼£¬¾ÍÊÇjdkµÄ°²×°Ä¿Â¼
ÖØÆôµçÄÔ,´ò¿ªÖնˣ¬ÊäÈëjava -version
ÈçÈôÓÐÏÔʾjavaµÄ°æ±¾ÐÅÏ¢£¬Ôò±íʾ°²×°³É¹¦,
2.JDK1.6°²×°ºóµÄÅäÖÃ
°²×°³É¹¦ºóÐèÒªÅäÖÃjdk»·¾³±äÁ¿
ÓÃcdÃüÁî½øÈë/etcĿ¼sudo vi profile¼´Ö´Ðбà¼profileÎļþÃüÁî
ÔÚumas k022Ç°Ìí¼ÓÈçÏÂÄÚÈÝ:
export JAVA_HOME=/usr/jdk1.6.0_07
export JRE_HOME=/usr/jdk1.6.0_07/jre
export PATH=$PATH:/usr/jdk1.6.0_07/bin
export CLASSPATH=./:/usr/jdk1.6.0_07/lib:/usr/jdk1.6.0_07/jre/lib
±£´æÍ˳ö,ÖØÆôµçÄÔ
3.JDK1.6°²×°ÅäÖúóµÄ²âÊÔ
н¨Test.java
public class Test{ public static void main(String[] args){ System.out.println("Hello,Welcome to Linux World!"); } }
ÔÚÖÕ¶ËÓÃcdÃüÁî½øÈëTest.javaĿ¼,È»ºóÊäÈë
javac Test.java
java Test
ÈôÊä³ö
Hello,Welcome to Linux World!
Ôò±íÃ÷ÅäÖóɹ¦!
Èç²»ÄÜͨ¹ý±àÒ룬¿Éͨ¹ýÖØÐÂÆô¶¯ÏµÍ³ÊÔÊÔ
4.JDK1.6°²×°ÅäÖÃʱµÄ×¢ÒâÊÂÏî
ÔÚÓÃviÃüÁî±à¼profileÎļþʱ£¬Linux³õѧÕß¿ÉÄÜ»¹²»ÊìÓÃ
sudo vi profile½øÈë±à¼ÎļþºóÈç³öÏÖ
Press ENTER or type command to continue
Ôò°´»Ø³µÈ»ºó°´·½Ïò¼ü“Ï”ֱµ½umas k022Ç°Ò»ÐÐ
°´×Öĸo½øÈë±à¼×´Ì¬
ÊäÈë»·¾³±äÁ¿ÄÚÈÝ
»Ø³µ,°´¼¸´ÎESC¼ü£¬Ö±µ½Ìýµ½"àÖ"Éù£¬ÊäÈë
:x È»ºó»Ø³µ
¼´±£´æÍ˳ö
ÖÁ´Ë£¬Linux JDK1.6»·¾³±äÁ¿ÅäÖÃÍê³É£¬ÊDz»ÊǺܼòµ¥Ã´£¿¿ªÊ¼ÄãµÄ±à³Ì֮·°É¡£
Ïà¹ØÎĵµ£º
MySQL :: Linux ÏÂ×Ô¶¯±¸·ÝÊý¾Ý¿âµÄ shell ½Å±¾
Linux ·þÎñÆ÷ÉϵijÌÐòÿÌ춼ÔÚ¸üРMySQL Êý¾Ý¿â£¬ÓÚÊǾÍÏëÆðдһ¸ö shell ½Å±¾£¬½áºÏ crontab£¬¶¨Ê±±¸·ÝÊý¾Ý¿â¡£Æäʵ·Ç³£¼òµ¥£¬Ö÷Òª¾ÍÊÇʹÓà MySQL ×Ô´øµÄ mysqldump ÃüÁî¡£
½Å±¾ÄÚÈÝÈçÏ£º
#!/bin/sh
# File: /home/mysql/backup.sh
# Database info
DB_NAME=" ......
1¡¢ÏÂÔØMySQLµÄ°²×°Îļþ
°²×°MySQLÐèÒªÏÂÃæÁ½¸öÎļþ£º
MySQL-server-5.0.46.i386.rpm¡¡¡¡¡¡
MySQL-client-5.0.46.i386.rpm
2¡¢°²×°MySQL
rpmÎļþÊÇRed Hat¹«Ë¾¿ª·¢µÄÈí¼þ°²×°°ü£¬rpm¿ÉÈÃLinuxÔÚ°²×°Èí¼þ°üʱÃâ³ýÐí¶à¸´ÔÓµÄÊÖÐø¡£¸ÃÃüÁîÔÚ°²×°Ê±³£ÓõIJÎÊýÊÇ
ivh
,ÆäÖÐi±íʾ½«°²×°Ö¸¶¨µÄrmpÈí¼þ°ü£¬V±í ......
Æô¶¯mysql: /etc/rc.d/init.d/mysql start
ÐÞ¸ÄÃÜÂë: ¸ñʽ£ºmysqladmin -uÓû§Ãû -p¾ÉÃÜÂë password ÐÂÃÜÂë
ʹÓÃÃÜÂëµÇ¼: mysql -u root -p
ÏÔʾÊý¾Ý¿â: show databases;
Ñ¡ÔñÊý¾Ý¿â: use Êý¾Ý¿âÃû;
ÏÔʾ±í: show tables;
ÏÔʾ±í½á¹¹: descibe ±íÃû;
Ô¶³ÌµÇ¼mysqlÐèÒª¿ªÆôÈ ......
³ö´¦£ºhttp://blog.163.com/xiyong8260/blog/static/66514621200944115026359/ÍøÒײ©¿Í£ºxiyong
»ùÓÚs3c2440ºÍlinux£¬ÊµÏÖÁË3*4µÄ¾ØÕó¼üÅÌÇý¶¯¡£
¹¦ÄÜ£ºÑÓʱÏû¶¶£¬Öظ´°´¼ü£¬¶à¼üÆë°´£¨£¿£¿£©
¸üÏêϸµÄ˵Ã÷Îĵµ£º“»ùÓÚS3C24440ºÍǶÈëʽLinuxµÄ¾ØÕó¼üÅÌÉè¼Æ”£¬µç×Ó¼¼Êõ£¬2008,45(5):21-23
/**************** ......