SequoiaDB 简介
快速入门
安装部署
数据库实例
分布式引擎
SAC 管控中心
SequoiaPerf 性能分析工具
参考手册
常见问题及解答(FAQ)
版本信息
部署 web 应用使用的 JNDI 数据源,将 PostgreSQL 对应的驱动 jar 包放到 tomcat 服务器的 /usr/local/apache-tomcat-7.0.68/lib
目录下
Note:
用户可以去 PostgreSQL 官网下载对应版本
配置 JNDI,在 /usr/local/apache-tomcat-7.0.68/conf/context.xml
文件中新增如下内容:
<Resource name="jdbc/pg" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="sdbadmin" password="sdbadmin" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/sample"/>
重启 tomcat 使配置参数生效
# /usr/local/apache-tomcat-7.0.68/bin/shutdown.sh # /usr/local/apache-tomcat-7.0.68/bin/startup.sh