Openshift 设置JBoss Web Server 3.1 Apache Tomcat 8 + MySQL (with https)

本文档详细介绍了如何在 Openshift 平台上设置 JBoss Web Server 3.1,集成 Apache Tomcat 8 和 MySQL 数据库,并实现 HTTPS 安全连接。首先,创建一个名为 'kang' 的命名空间,接着创建项目并部署代码。关键步骤包括创建用于安全内容服务的 'jws-app-secret' 秘钥,以及配置数据库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一,设置免费的java空间


二,过程设置
1,创建命名空间kang

2,创建空间项目
项目代码的连接地址:

https://github.com/tomek-servlets/db-servlet-connection-pool

A new persistent JWS application for Apache Tomcat 8 (using MySQL) has been created in your project. The username/password for administering your JWS is GPOjGLI2/GCti4WBL. For accessing the MySQL database "root" use the credentials <div class="blockcode"><blockquote>user1L8/GBnU4cEo

. Please be sure to create the secret named "jws-app-secret" containing the server.crt file used for serving secure content.

3,打开空间制作秘钥:jws-app-secret

 

 

 

4,创建数据库

cd /
ls
cd tmp
mkdir data
cd data
curl https://raw.githubusercontent.com/tomek-servlets/db-servlet-connection-pool/master/SQL/lllc.sql --output lllc.sql

ls

cat lllc.sql

//账号密码之前获取user1L8/GBnU4cEo
mysql -u user1L8 -p root
//执行数据库
source lllc.sql

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

康耶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值