Minio / Start Minio Server Custom Port
Start Minio Server Custom Port
Minio command syntax to start minio server custom port. Copyable examples, output expectations, and common mistakes.
$
Terminal minio server --address ":<port>" --console-address ":<port>" <path/to/data_directory> minio server --address ":<port>" --console-address ":<port>" <path/to/data_directory> #!/bin/bash
# Start Minio Server Custom Port
minio server --address ":{{port}}" --console-address ":{{port}}" {{path/to/data_directory}} import subprocess
# Start Minio Server Custom Port
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"minio",
"server",
"--address",
"\":<port>\"",
"--console-address",
"\":<port>\"",
"<path/to/data_directory>"
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: minio not found. Please install it first.")
if __name__ == "__main__":
run_command() Command Breakdown
What each part is doing
-
minio - Base Command
- The executable that performs this operation. Here it runs Minio before the shell applies any redirect operators.
-
<port> - port
- The port value supplied to this command.
-
<path/to/data_directory> - path to data directory
- The directory path supplied to this command.
-
--address - Command Option
- Tool-specific option used by this command invocation.
-
--console-address - Command Option
- Tool-specific option used by this command invocation.
Alternative Approaches
Comparable commands in other tools
Alternative filesystem tools for the same job.
Ispell / Check Typos In File
ispell <path/to/file> Cat / Write Stdin To File cat - > <path/to/file> Sfdisk / Restore Partition Layout From File sudo sfdisk < <path/to/file.dump> </dev/sdX> Dirname / Calculate Parent Directory Single Path dirname <path/to/file_or_directory> Command / Process File Redirect To Another <command> < <path/to/file.txt> > <path/to/file2.txt>