centos7 安装 Minio
生活随笔
收集整理的這篇文章主要介紹了
centos7 安装 Minio
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#1.下載二進制安裝包
先創建一個存放的文件夾:/datadrive/user/local/minIO/bin
?在這個目錄下,然后直接下載,下載完后,直接給該文件變成可執行文件。
wget https://dl.minio.io/server/minio/release/linux-amd64/minio#2.給權限
chmod +x minio執行后,變成了可執行文件
可以查看版本號:
./minio version#3.啟動服務
./minio server /data如果這樣啟動的話,命令窗口不能關閉,可以設置后臺啟動方式?,這里還要注意:/data? 這個目錄,就是默認的根目錄下的data目錄,所以我們需要自定義一個自己先把文件存放的目錄。
注意:注意啟動顯示的 appkey secretkey是默認登錄賬戶,密碼
./minio server /datadrive/user/local/minIO/data &查看啟動的進程:
ps aux|grep minio#4.創建用戶組和創建用戶
groupadd minio useradd minio -g minio查看用戶信息
cat /etc/passwd#5.創建minIO的配置文件
先創建etc文件夾
vi minio.conf MINIO_VOLUMES="/datadrive/user/local/minIO/data" MINIO_OPTS="-C /datadrive/user/local/minIO/etc --address 192.168.1.103:9000" MINIO_ACCESS_KEY="root" MINIO_SECRET_KEY="123456"注意這里的ip要改成你們自己的ip地址,這里的ip特別注意,需要內網ip,否則服務起不來。
同時設置用戶名和密碼
#6.創建一個minio.service服務?
vim /etc/systemd/system/minio.service內容是:
[Unit] Description=MinIO Documentation=https://docs.min.io Wants=network-online.target After=network-online.target AssertFileIsExecutable=/datadrive/user/local/minIO/bin/minio[Service] # User and group User=minio Group=minio EnvironmentFile=/datadrive/user/local/minIO/etc/minio.conf ExecStart=/datadrive/user/local/minIO/bin/minio server $MINIO_OPTS $MINIO_VOLUMES # Let systemd restart this service always Restart=always# Specifies the maximum file descriptor number that can be opened by this process LimitNOFILE=65536 # Disable timeout logic and wait until process is stopped TimeoutStopSec=infinity SendSIGKILL=no[Install] WantedBy=multi-user.target#7.更改文件、目錄屬主屬組
chown -R minio:minio /datadrive/user/local/minIO#8.啟動服務
#? systemctl daemon-reload# systemctl enable minio.service#? systemctl start? minio.service#? systemctl status? minio.service# systemctl stop minio.service微信掃一掃:關注我個人訂閱號“猿小飛”,更多精彩文章在這里及時發布:
?
總結
以上是生活随笔為你收集整理的centos7 安装 Minio的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 多服务监听Redis key失效通知,并
- 下一篇: 查看systemctl或service启