当前位置:网站首页>Tencent ECS installs the Minio object storage tool

Tencent ECS installs the Minio object storage tool

2022-06-24 04:04:00 Xuxunlonely

minio The management port of is 9000

Tencent cloud server security group policy has been released 9000 port , If it is still inaccessible , You need to use ssh open nfw A firewall (ubuntu firewall) Set up , command :ufw allow 9000

The following command enables traffic to all incoming ports , Range from 9000 To 9010.

ufw allow 9000:9010/tcp

1, Bare metal direct deployment minio

wget http://dl.minio.org.cn/server/minio/release/linux-amd64/minio( Choose the right one according to your host minio edition )

chmod +x minio( change minio Executive authority )

./minio server /data( function minio, In this step, you can specify the running port as required , Add... At the end of the order :--console-address": The port number you specified ")

2,docker Deploy minio

(1) Use daocloud Script installation docker:

curl -sSL https://get.daocloud.io/docker | sh

(2) Check the installation status

sudo service docker status

perhaps docker -v

(3) install minio

docker pull minio/minio

(4) function mino Containers

docker run -p 9000:9000 --name minio1 -v /mnt/data:/data -v /mnt/config:/root/.minio minio/minio server /data --console-address ":3XXX5"

After installation, the local access address will be returned :

API: http://10.206.0.13:9000 http://172.17.0.1:9000 http://127.0.0.1:9000

RootUser: minioadmin

RootPass: minioadmin

Console: http://10.206.0.13:43969 http://172.17.0.1:43969 http://127.0.0.1:43969

RootUser: minioadmin

RootPass: minioadmin

After opening the corresponding port, it will http://127.0.0.1:9000 Medium 172.17.0.1 Replace with the server address for remote access console port ( It will jump automatically )

picture

*Centos How to open the specified port of firewall

For enabled firewall-cmd (CentOS) The host , You can use firewall-cmd Command to allow traffic on a specific port . Use the following command to allow access to the port 9000

firewall-cmd --get-active-zones

This command gets the active area . Now? , Apply the port rule to the relevant area returned above . for example , If the area is public, Please use

firewall-cmd --zone=public --add-port=9000/tcp --permanent

Please note that ,“permanent” Make sure that the rules start at the firewall 、 Is persistent on restart or reload . Finally, reload the firewall for the changes to take effect .

firewall-cmd --reload

iptables

For enabled iptables The host (RHEL、CentOS etc. ), You can use iptables Enable all traffic to enter a specific port . Use the following command to allow visit 9000 port

iptables -A INPUT -p tcp --dport 9000 -j ACCEPT

service iptables restart

The following command enables traffic to all incoming ports , Range from 9000 To 9010.

iptables -A INPUT -p tcp --dport 9000:9010 -j ACCEPT

service iptables restart

原网站

版权声明
本文为[Xuxunlonely]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/09/20210913171624752T.html