J2EEÏîĿǨÒÆ(window >linux)
1. download & setup jdk
2. download eclipse and test a simple example of java
3. setup mysql use yum(or download & setup by hand)
yum install mysql
problem1:linux mysql configuration & use
solution1:
mysql -uroot -p
password:******
problem2:ERROR 1045(28000)Access denied for user 'root'@'localhost'(using password:NO)
solution:
#mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
#mysql -u root mysql
mysql> select host,user,password from user;
next, you can operator the user table and confirm it without null user;
if there are null user, you can delete it use delete sql.
problem3:how to migrate data to linux
solution1:window ,use mysql-front to output a backup-file name package.sql
1. change mysql setting as follows:
mysql> update mysql.user set host='%' where host='localhost';
mysql> grant all privileges on *.* to root@"%";
mysql> flush privileges;
2. in window, use mysql-front to connect it.
solution2:just linux (not tested)
out:mysqldump databasename > filename.sql
in:mysqladmin create databasename;
shell:mysql databasename < filename.sql
4. download & setup Tomcat
Filename:apache-tomcat-5.5.28.tar.gz -> unpack & directly can use,
first thing must do if you want use it is configure JDK, like PATH & CLASS_PATH
vim /etc/profile
use eclipse to check the jdk setup-directory
PATH = %PATH:/usr/java/jdk1.6.0_13/bin
CLASS_PATH=.:/usr/java/jdk1.6.0_13/lib
then, come in the unpa
Ïà¹ØÎĵµ£º
ÏÂÃæÒÔÅäÖÃjava
»·¾³±äÁ¿ÎªÀý½éÉÜÈýÖÖÅäÖû·¾³±äÁ¿µÄ·½·¨¡£
1.ÐÞ¸Ä/etc/profileÎļþ
Èç¹ûÄãµÄ¼ÆËã»ú½ö½ö×÷Ϊ¿ª·¢Ê¹ÓÃʱÍƼöʹÓÃÕâÖÖ·½·¨£¬ÒòΪËùÓÐÓû§
µÄshell
¶¼ÓÐȨʹÓÃÕâЩ»·¾³±äÁ¿£¬¿ÉÄÜ
»á¸øϵͳ
´øÀ´°²È«ÐÔÎÊÌâ¡£
(1)ÓÃÎı¾±à¼Æ÷´ò¿ª/etc/profile
(2)ÔÚprofileÎļþĩβ¼ÓÈ룺
JA ......
Linux¿ª»ú¹ý³ÌÀí½â
Ò»£® Power on
¶þ£® BIOS¼Óµç×Լ죺
1£® ¼ì²âËùÓÐÖܱßÓ²¼þ
2£® Ñ°ÕÒÆô¶¯µÄ´ÅÅÌ(cd-rom,floppy,IDE HDD,usb deviceµÈ)
Èý£® & ......
ºÍ
WindowsϵͳһÑùLinuxÒ²Óо²Ì¬/¶¯Ì¬Á´½Ó¿â£¬ÏÂÃæ½éÉÜ´´½¨ºÍʹÓ÷½·¨£º
¼ÙÉèÓÐÏÂÃ漸¸öÎļþ£º
Í·ÎļþString.h£¬ÉùÃ÷Ïà¹Øº¯ÊýÔÐΣ¬ÄÚÈÝÈçÏ£º
Strlen.c£º
º¯ÊýStrlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬ÄÚÈÝÈçÏ£º
Strlnen.c£ºº¯Êý
StrNlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬Èç¹ûÊäÈë×Ö·û´®µÄ³¤¶È´óÓÚÖ¸¶¨µÄ×î´ó³¤¶È£¬Ô ......
Ê×ÏÈÔÚLinuxϵͳÉÏ°²×°samba
È»ºóÆô¶¯WindowsÐéÄâ»ú£¬ÔÚ×ÊÔ´¹ÜÀíÆ÷Öн«sambaµÄµØÖ·£¨ÀýÈç//192.168.1.10/share£©Ó³ÉäΪһ¸öÐéÄâÅÌ·ûZ
×îºóÆô¶¯SourceInsight£¬ÔÚZÅÌÉϽ¨Á¢¹¤³Ì£¬²¢µ¼ÈëÎļþ¡£
×¢Ò⣺ÒÔºóÿ´ÎʹÓÃSourceInsight֮ǰÏÈÒªÁ¬½Ósamba·þÎñÆ÷£¬±ÈÈç˵´ò¿ªÅÌ·ûZ¡£ ......