当前位置:网站首页>minio 单机版安装
minio 单机版安装
2022-08-02 23:27:00 【快乐是你的与我无关了】
Minio 单机版安装
1.linux下载minio二进制文件
wget https://dl.min.io/server/minio/release/linux-amd64/minio
官网下载不下来下载下面链接
链接:https://pan.baidu.com/s/1DkSK-uL1f9M7XaS8JwSpow 提取码:cu07
–来自百度网盘超级会员V6的分享
2.给当前下载的minio应用赋予权限
chmod +x minio
设置账号密码
nginx 配置代理
# minio 控制台端口
upstream minioconsoleserver{
server 127.0.0.1:9000;
}
# minio 后端server端口
upstream minioserver {
server 127.0.0.1:9001;
}
# 代理 minio后端server
server {
listen 443 ssl default_server;
server_name sxweb.sjzc.edu.cn;
#ssl on;
ssl_certificate /etc/nginx/star_sjzc_edu_cn.pem;
ssl_certificate_key /etc/nginx/myprivate.key;
#必须 防止请求头丢失
underscores_in_headers on;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://minioserver;
client_max_body_size 100g;
client_body_buffer_size 100m;
index index.html index.htm;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
# 代理minio控制台
server{
listen 8080;
#域名,根据实际情况修改
server_name sxweb.sjzc.edu.cn;
client_max_body_size 20m;
access_log /var/log/nginx/host.access.log main;
#前台,根据实际情况修改
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_connect_timeout 300;
# 设置最大请求体最大大小 (因为要上传大量视频,设置到最大,如果太小会报413 Request Entity Too Large)
client_max_body_size 100g;
client_body_buffer_size 100m;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://minioconsoleserver;
}
}
注:用nginx为minio管理端配置二级路径会导致静态资源找不到,所以只能用http访问了。
3.控制台运行
# 创建文件夹
mkdir /home/minio/data
# 设置文件存放地址 设置端口号 后台运行minio服务
MINIO_SERVER_URL=https://sxweb.sjzc.edu.cn MINIO_ROOT_USER=train MINIO_ROOT_PASSWORD=[email protected] nohup ./minio server /home/minio/data > /home/minio/logs/minio.log --console-address=":9000" --address=":9001" 2>&1 &
参数解释:
- MINIO_SERVER_URL minio服务端地址,如果配置了代理这里必须设置,否则默认以内网ip 为serverUrl ,生成的图片地址访问不到
- MINIO_ROOT_USER 控制台用户名
- MINIO_ROOT_PASSWORD 密码
- –console-address 控制台端口号
- –address 服务端 端口号
# 设置文件存放地址 设置端口号 后台运行minio服务
MINIO_SERVER_URL=https://sxweb.sjzc.edu.cn MINIO_ROOT_USER=train [email protected] nohup ./minio server /home/nfs/data/minio > /home/nfs/data/minio/logs/minio.log --console-address=":9000" --address=":9001" 2>&1 &
补充:docker方式部署
docker run -d \
--name minio \
--restart=always \
-p 9000:9000 \
-p 8080:9001 \
-e "MINIO_ROOT_USER=minioroot" \
-e "MINIO_ROOT_PASSWORD=minioroot" \
-e "MINIO_SERVER_URL=http://sxweb.sjzc.edu.cn:8080"
-v /home/minio/data:/data \
-v /home/minio/config:/root/.minio minio/minio:RELEASE.2022-02-12T00-51-25Z server /data --console-address ":9001"
边栏推荐
- 21天学习挑战赛(1)设备树的由来
- APT level comprehensive free kill with Shell
- # DWD层及DIM层构建## ,220801 ,
- Cholesterol-PEG-Amine,CLS-PEG-NH2,胆固醇-聚乙二醇-氨基脂两亲性脂质衍生物
- 智能电视竞争白热化,利用小程序共建生态突围
- 优秀论文以及思路分析01
- 十年架构五年生活-03作为技术组长的困扰
- 【问题征集】向 iPod 之父、iPhone 联合设计者、Google Nest 创始人 Tony Fadell 提问啦
- 十三、数据回显
- Cholesterol-PEG-Acid,胆固醇-聚乙二醇-羧基保持在干燥、低温环境下
猜你喜欢

Connect the Snowflake of CKAN tutorial CKAN to release to open data portal

Apache Doris 1.1 特性揭秘:Flink 实时写入如何兼顾高吞吐和低延时

js基础知识整理之 —— Math

Swift中的类型相关内容

js基础知识整理之 —— 五种输出方式

I have been in the software testing industry for nearly 20 years, let me talk to you about today's software testing

主流定时任务解决方案全横评

嵌入式分享合集26

redis的学习笔记

MySQL最大建议行数2000w, 靠谱吗?
随机推荐
典型相关分析CCA计算过程
Pytest配置项-pytest.ini
No code development platform data ID introductory tutorial
如何突破测试/开发程序员思维?一种不一样的感觉......
公司招个程序员,34岁以上两年一跳的不要,开出工资以为看错了
D with json
Based on two levels of decomposition and the length of the memory network multi-step combined forecasting model of short-term wind speed
Jmeter secondary development to realize rsa encryption
十年架构五年生活-05第一次出差
IDEA 重复代码的黄色波浪线取消设置
threejs dynamically adjust the camera position so that the camera can see the object exactly
MySQL的多表查询(1)
Image recognition from zero to write DNF script key points
Test | ali internship 90 days in life: from the perspective of interns, talk about personal growth
js基础知识整理之 —— 全局作用域
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
Directing a non-relational database introduction and deployment
【多线程】Thread类的基本用法
【斯坦福计网CS144项目】Lab5: NetworkInterface
scala 集合通用方法