Linux following the deployment of tomcat + struts2 + hibernate3 + spring3 + mysql in java project the strongest Raiders

2010-04-24  来源:本站原创  分类:Java  人气:238 

The first step: the completion of the file-sharing LINUX and WINDOWS

If LINUX and WINDOWS to file sharing function, so must their IP addresses must be in the same network segment, you enter the command in a virtual machine: ifconfig, will be displayed

eth0 Link encap: Ethernet HWaddr 00:0 C: 29: F2: 62: D2
inet addr: 192.168.76.18 Bcast: 192.168.76.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 52 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 63 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 100
RX bytes: 6997 (6.8 Kb) TX bytes: 7359 (7.1 Kb)
Interrupt: 10 Base address: 0x1400
You can find a virtual machine on my LINUX above IP address: 192.168.76.18, and we installed a virtual machine when the windows will be found in two of the above will be more virtual network card, and one above my WINDOWS a virtual network card IP address: 192.168.76.1.

So both of our cards on the same network segment soon had. Some people may ask, how old my ifconfig command shows no eth0 network card configuration information?

That is eth0 is not activated by default!

Step two: start eth0 network card

Enter the command above in the virtual machine setup, the menu that appears select the Network configuration menu inside, and then configure your IP address, configuration is complete, restart your LINUX operating system.

The third step: file transfer to achieve WINDOWS and LINUX

Are we going to use the land to the SAMBER servers do not work, is now generally realized between WINDOWS and LINUX file transfer, using VSFTP, first of all we have to start linux in the vsftp server, enter the command service vsftpd start. And it is set to default boot, use the command

chkconfig vsftpd on. This opens the vsftp server.

Jump back to the WINDOWS, enter the cmd command ping + LINUX ip address, if the ping unreasonable, then there may be problems linux firewall, enter the command service iptables stop. ping through later, indicating a successful information exchange WINDOWS and LINUX.

For safety considerations, root user is forbidden ftp server login using vi editing / etc / vsftpd.ftpusers this file, found a root, then it commented out, / etc / vsftpd.user_list this file which also has a root, it commented. Well, we can use the root user in windows platform to pass up the paper. I'm using leapFtp software.

End of this software to set the IP address of LINUX, you can find it listed in the file directory LINUX.

Step four: Install tomcat6, mysql5, jdk6.

The tomcat.tar.gz, jdk.bin, mysql.rpm upload to your linux on virtual machine. First install JDK6, my software is jd6.bin, then use the command ./jdk6.bin, the system is installed by default, if permission is not enough, then use the command chmod u + x jdk6.bin.

Installed jdk6, we have to configure the java environment variables. Modify / etc / profile file, set the java environment variable Vi / etc / profile in its last line with JAVA_HOME = / usr/java/jdk1.6.

相关文章
  • Linux following the deployment of tomcat + struts2 + hibernate3 + spring3 + mysql in java project the strongest Raiders 2010-04-24

    The first step: the completion of the file-sharing LINUX and WINDOWS If LINUX and WINDOWS to file sharing function, so must their IP addresses must be in the same network segment, you enter the command in a virtual machine: ifconfig, will be displaye

  • Linux following the deployment of tomcat + struts2 + hibernate3 + spring3 + mysql in java projects the strongest Raiders 2 2010-04-24

    Installing MYSQL, I use the software is MySQL-server-5.1.7-0.i386.rpm and MySQL-client-5.1.7-0.i386.rpm, upload them to the linux, then use the command rpm-ivh MySQL- server-5.1.7-0.i386.rpm, which is installed server-side, and then use the command M

  • struts2+hibernate3.2+spring2.5+tomcat6+sqlserver2000+jndi配置 2010-08-08

    搞了两天的东西原来只有几行代码,就解决问题了,真是让自己啼笑皆非.折腾了1天之久,不想后面的朋友继续走上我的错误之路,把过程给贴出来. 1.添加struts2&&hibernate3.2&&spring2.5 所需jar包,注意还要添加struts2-spring-plugin-2.1.8.1.jar. 2.删除冲突asm2.23.jar 3.添加jdbc驱动.jar添加到 %tomcat%/lib 下 4.修改%tomcat%/cfg/context.xml文件在<

  • MyEclipse搭建SSH框架 Struts2.1+Spring3.0+hibernate3.3 2014-12-21

    1. 配置Tomcat 配置Tomcat所在路径 配置Tomcat使用JDK版本 如果Tomcat为7.0则添加Tomcat-juli.jar包 2. new一个web project. 2.右键项目,为项目添加Struts支持. 点击Finish.src目录下多了struts.xml配置文件. 3.使用MyEclipse DataBase Explorer建立数据源. new一个数据源.填入数据源信息. jdbc:Oracle:thin:@localhost(数据库所在服务器):1521(默认

  • In linux installed on the system tomcat, jdk, mysql 2010-08-25

    jdk-6u21-linux-i586-rpm.bin (JDK) apache-tomcat-6.0.29.tar.gz (Tomcat install program) Java SDK installation steps: First implementation # Chmod a + x jdk-6u21-linux-i586-rpm.bin #. / Jdk-6u21-linux-i586-rpm.bin # Rpm-ivh jdk-6u21-linux-i586-rpm In /

  • Spring2.5 + Struts2 + Hibernate3 integration [1 / 2] 2010-11-02

    Spring2.5 + Struts2 + Hibernate3 integration Struts2, Spring2.5, Hibernate3 integration 1. In the / WEB-INF/lib directory has been placed under the jar package: commons-logging-1.0.4.jar freemarker-2.3.15.jar struts2-core-2.1.8.1.jar xwork-core-2.1.6

  • Spring2.5 + Struts2 + Hibernate3 integration [2 / 2] 2010-11-02

    Previous Spring2.5 + Struts2 + Hibernate3 integration [1 / 2] 1. Modify spring configuration file, configure hibernate integration In / WEB-INF/classes/spring.xml added: <! - Configure dataSource -> <bean "dataSource" "org.apache.c

  • Linux Shell脚本实现检测tomcat 2014-06-26

    这篇文章主要介绍了Linux Shell脚本实现检测tomcat的方法,推荐给小伙伴们,需要的朋友可以参考下 Linux Shell脚本检测tomcat并自动重启 后台运行命令 sh xxx.sh & 查看后台任务:jobs 召唤到前台:fg jobs编号 可以删掉while循环的代码放到crontab里面定时执行,可以将脚本直接后台运行, #!/bin/bash while [ true ] do url="http://www.jb51.net/"; httpOK=`cur

  • Rod Johnson talk Spring.OSGi.Tomcat and the future of enterprise-class Java 2009-05-30

    Rod Johnson talk Spring.OSGi.Tomcat and the future of enterprise-class Java

  • Debug Tomcat error occurs when the solution java.library.path 2010-05-12

    Tomcat, library, java, path, solve the When I downloaded and installed eclise Tomcat6.0.16, when any construction of a project, even if only one jsp page works will start after Tomcat has a "warning" message (on the project with the page display

  • linux operating system to achieve pure manually install the MySQL source 2010-08-09

    linux operating system to achieve pure manually install the MySQL source This paper is to introduce a more efficient way to achieve linux operating system source code to pure manually install MySQL, the following specific programs are described, hope

  • Linux iptables open port to allow remote access to Mysql 2010-10-16

    Linux iptables open port to allow remote access to Mysql Modify the firewall configuration file: vi / etc / sysconfig / iptables Add the following line: -A RH-Firewall-1-INPUT-m state-state NEW-m tcp-p tcp-dport 3306-j ACCEPT If you want to open port

  • Apache 2.2 + Tomcat 7.0 + jdk-6u23 + MySQL 5.1 + mod_jk + php 5.2.6 2010-12-24

    Apache 2.2 + Tomcat 7.0 + jdk-6u23 + MySQL 5.1 + mod_jk + php 5.2.6 1. [If the original server has JDK, you want to uninstall] Find old jdk command: rpm-qa | grep gcj Executive rpm-e - nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 And enter the java

  • Configure Tomcat's JNDI database mysql link error. 2011-04-25

    Mysql in tomcat's jndi in the configuration data source, the results start old mistakes. Which contains the information: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

  • Tomcat: IOException while loading persisted sessions: java.io.EOFException 2011-07-22

    Tomcat: IOException while loading persisted sessions: java.io.EOFException The reason is tomcat's session on the hard disk read failure, complete solution to this: to work the following file empty, mostly *. ser files, or just delete session.ser that

  • struts2 + hibernate3.2 + spring2.0 instance configuration + Getting Started 2010-04-13

    eclipse3.2, myeclipse5.0, Jboss4.0.3, sql server2000 sp3 Principle of In the java enterprise applications, ejb powerful ejb configuration with the complex and difficult to learn as well known. But in the past and what we do? Just bite the bullet and

  • Examples of small user rights struts2.18 + spring3.0 + hibernate3.5 + annotation (source) 2010-12-31

    Today is the last day of 2010, in which individuals share a few months ago to write a small project for everyone 1. System Framework: struts2.8 + hibernate3.5 + spring3.0 2. Browser: Because development is always use chrome, only to find after the de

  • SSH2 Configuration Shan Xiang Jie (Struts2 Hibernate3 Spring) 2010-02-23

    web.xml configuration <? xml version = "1.0" encoding = "UTF-8"?> <web-app version = "2.5" xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:

  • Linux operating system automatically starts Tomcat 2010-05-28

    There are many ways to Tomcat automatically at boot time to run, I am here to introduce two methods, a simple, another complex and specialized. Before introducing the two methods you should install JDK, Tomcat. Tomcat installation is simple, download

  • Struts2 + Hibernate3.2 + Spring2.5 + Compass Integration 2010-10-10

    Compass is now before the integration of learning under the ssh2 + Compass A lot of information online to find a complete demo I did not write one-step demo for people to share less hope everyone roundabout take the point will not be integrated if th