标签:png under ESS ace inf cmd lease after 端口
CentOS7
IP:10.34.51.224
# mkdir /usr/local/minio ? # mkdir /usr/local/minio/bin ? # mkdir /usr/local/minio/etc ? # mkdir /usr/local/minio/data
# groupadd -g 2019 minio ? # useradd -r -u 2019 -g 2019 -c "Minio User" -s /sbin/nologin minio ? # id minio ? # cat /etc/passwd
#此处用curl不行,可用wget。若提示找不到命令请使用yum install -y wget
curl -O https://dl.minio.io/server/minio/release/linux-amd64/minio ? chmod 750 minio ? ./minio --help ? cp minio /usr/local/minio/bin
vim /usr/local/minio/etc/minio.conf
添加如下内容
MINIO_VOLUMES="/usr/local/minio/data"
?
MINIO_OPTS="-C /usr/local/minio/etc --address 192.168.1.103:9000"
vim /etc/systemd/system/minio.service
[Unit] ? Description=MinIO ? Documentation=https://docs.min.io ? Wants=network-online.target ? After=network-online.target ? AssertFileIsExecutable=/usr/local/minio/bin/minio #配置运行文件地址 ? [Service] ? # User and group ? User=minio #配置minio用户 ? Group=minio #配置minio所属组 ? EnvironmentFile=/usr/local/minio/etc/minio.conf #指定配置文件 ? ExecStart=/usr/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
chown -R minio:minio /usr/local/minio
systemctl daemon-reload
systemctl enable minio.service?
systemctl start minio.service?
systemctl status minio.service
firewall-cmd --zone=public --add-port=9000/tcp --permanent ? firewall-cmd --reload
打开浏览器,输入10.34.51.224:9000 进入MinioWeb界面
输入账号密码后进入:(账号密码可在步骤2.4中配置)
输入完毕,按Enter键即可;
wget https://dl.minio.io/client/mc/release/linux-amd64/mc
alias mc="./mc"
mc config host add minioName http://xxx.xxx.xxx.xxx:9000 username password S3v4
成功后如下图
更多命令参考:
https://docs.min.io/cn/minio-client-complete-guide.html
https://docs.min.io/cn/minio-client-quickstart-guide.html
略。见3.2.1
mc policy set public minio/pic
查看桶策略
mc policy get minio/jiancebaogao
参考文献
https://blog.csdn.net/michaelwoshi/article/details/95815353
标签:png under ESS ace inf cmd lease after 端口
原文地址:https://www.cnblogs.com/newz/p/12598899.html