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 unpack tomcat directory/bin and do this: ./startup.sh
  open firefox, input http://localhost:8080/ in the address bar, and It's OK

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值