个人使用
nginx的conf
//安装jdk
yum install java-1.8.0-openjdk.x86_64
//查看jdk是否安装
java -version
//在宝塔里面安装nignx,安装docker,在docker里面安装mysql、redis
//一般将图片放在nginx的html下
//yaml文件
#数据库配置
spring:
datasource:
url: jdbc:mysql://ip:33001/hertz?useSSL=true&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
thymeleaf:
prefix: classpath:/static6/
suffix: .html
redis:
host: ip
port: 6390
password:
lettuce:
pool:
max-active: 10
max-idle: 10
min-idle: 1
time-between-eviction-runs