Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

minio client docker

cd ~
wget https://dl.min.io/server/minio/release/linux-amd64/minio

sudo useradd --system minio --shell /sbin/nologin
sudo usermod -L minio
sudo chage -E0 minio

sudo mv minio /usr/local/bin
sudo chmod +x /usr/local/bin/minio
sudo chown minio:minio /usr/local/bin/minio

sudo touch /etc/default/minio
sudo echo 'MINIO_ACCESS_KEY="minio"' >> /etc/default/minio
sudo echo 'MINIO_VOLUMES="/usr/local/share/minio/"' >> /etc/default/minio
sudo echo 'MINIO_OPTS="-C /etc/minio --address :9000"' >> /etc/default/minio
sudo echo 'MINIO_SECRET_KEY="miniostorage"' >> /etc/default/minio

sudo mkdir /usr/local/share/minio
sudo mkdir /etc/minio

sudo chown minio:minio /usr/local/share/minio
sudo chown minio:minio /etc/minio

cd ~

wget https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service

sed -i 's/User=minio-user/User=minio/g' minio.service
sed -i 's/Group=minio-user/Group=minio/g' minio.service

sudo mv minio.service /etc/systemd/system

sudo systemctl daemon-reload
sudo systemctl enable minio
sudo systemctl start minio

sudo systemctl status minio

cd ~

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 9000
sudo ufw enable
sudo ufw allow http
sudo ufw allow https
sudo ufw status verbose

sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update
sudo apt install certbot
sudo certbot certonly --standalone -d minio-server.your_domain
sudo cp /etc/letsencrypt/live/minio-server.your_domain_name/privkey.pem /etc/minio/certs/private.key
sudo cp /etc/letsencrypt/live/minio-server.your_domain_name/fullchain.pem /etc/minio/certs/public.crt
sudo chown minio:minio /etc/minio/certs/private.key
sudo chown minio:minio /etc/minio/certs/public.crt
sudo systemctl restart minio
Comment

PREVIOUS NEXT
Code Example
Shell :: dracula theme gnome terminal 
Shell :: vim delete word without yank 
Shell :: linux install software without sudo 
Shell :: upload on s3 
Shell :: flask make how public 
Shell :: Remove Files and Directories 
Shell :: no devices connected android studio 
Shell :: give full permission to folder and subfolders in linux 
Shell :: dir files 
Shell :: aws s3 change bucket region 
Shell :: github rust action 
Shell :: search for substring 
Shell :: git hub nvm 
Shell :: github cli download 
Shell :: conda uninstall tensorflow 
Shell :: bash list columns 
Shell :: Examples of add-apt-repository and updating the APT cache 
Shell :: commit to create a customised image 
Shell :: centos open port pid 
Shell :: github clone failed 443 
Shell :: install stegsnow ubuntu 
Shell :: ssh change pasword to key file 
Shell :: failed. CAfile: none CRLfile: none 
Shell :: ignore pre-commit hook 
Shell :: you need to install the imagick extension to use this back end xampp 
Shell :: compressing files on cmd line using winrar 
Shell :: deploy command for ropsten network 
Shell :: sslkeylogfile not working linux 
Shell :: how to put access.log in gitignore 
Shell :: sc windows 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =