linux配置jdbc



1.下载jdbc

2.解压文件包

比如文件名为mysql-connector-java-5.1.25.tar.gz

解压存放路径为cp /home/soft/mysql-connector-java-5.1.25/mysql-connector-java-5.1.25-bin.jar

3.查看配置文件

cat /etc/profile

或者

env

找到jdk路径及tomcat路径

tomcat 路径

CATALINA_HOME=/usr/local/apache-tomcat-6.0.37

JDK 路径

JAVA_HOME=/usr/JDK

4.拷贝文件

jar文件拷贝到/usr/local/apache-tomcat-6.0.37/lib

cp /home/soft/mysql-connector-java-5.1.25/mysql-connector-java-5.1.25-bin.jar  /usr/local/apache-tomcat-6.0.37/lib

jar文件拷贝到/usr/JDK/jre/lib/ext

cp /home/soft/mysql-connector-java-5.1.25/mysql-connector-java-5.1.25-bin.jar  /usr/JDK/jre/lib/ext

标签: linux, mysql, tomcat, jdbc

相关文章

评论已关闭