## 客户端
upstream minio {
##minio服务器1,权重越高被分配到的几率越大
server 192.168.0.37:9001 weight=1;
##minio服务器2
server 192.168.0.38:9001 weight=1;
##minio服务器3
server 192.168.0.39:9001 weight=1;
}
server{
listen 9001;
server_name localhost;
location / {
proxy_pass http://minio;
# 添加websocket支持
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
# 客户端请求服务器最大允许大小-不限(文件大小)
client_max_body_size 0;
## 服务端
upstream minioServer {
##minio服务器1,权重越高被分配到的几率越大
server 192.168.0.37:9000 weight=1;
##minio服务器2
server 192.168.0.38:9000 weight=1;
##minio服务器3
server 192.168.0.39:9000 weight=1;
}
server{
listen 9000;
server_name localhost;
location / {
proxy_pass http://minioServer;
# 添加websocket支持
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
docker-compose 配置
先上 docker-compose.yml 的内容
hh-job:
image: hh-job
container_name: hh-job
environment:
# 时区上海
TZ: Asia/Shanghai
LANG: C.UTF-8
LC_ALL: C.UTF-8
ports:
- "9209:9209"
volumes:
# 配置文件
- /docker/hh-job/logs/:/hh-job/logs
- /data/fonts:/usr/share/fonts
privileged: true
restart: always
networks:
ruoyi_net:
ipv4_address: 172.30.0.113
1)可以进入到容器查看当前字体是什么。
命令:locale -a

(2)查看已经安装的中文字体
命令:fc-list :lang=zh
(3)手动重载系统字体
命令:fc-cache -fv
登录nacos控制台(http://localhost:8848/nacos/), 访问命名空间 -> 新建命名空间
命名空间ID: 57d41ddd-c089-449f-8921-bd0e8af14ddc
命名空间名称:lamp-cloud
描述:lamp-cloud开源版


--- # nacos 配置
spring:
cloud:
nacos:
# nacos 服务地址
server-addr: 0.0.0.0:8848
discovery:
# 注册组
group: DEFAULT_GROUP
#要和上面的命名空间一致
namespace: c06db00a-601d-4e59-94ed-a5149a98ef2e
config:
# username: nacos
# password: nacos
# 配置组
group: DEFAULT_GROUP
namespace: c06db00a-601d-4e59-94ed-a5149a98ef2e
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- data-id: application.${spring.cloud.nacos.config.file-extension}
refresh: true



1、pip install -r requirements.txt
使用清华大学的镜像源:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
使用阿里云的镜像源:
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/