gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
使用nohup运行下列语句: MINIOROOTUSER=admin MINIOROOTPASSWORD=password ./minio server /mnt/data…
- User
使用nohup运行下列语句: MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password ./minio server /mnt/data --console-address ":9001"
- Assistant
nohup MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password ./minio server /mnt/data --console-address ":9001" &
输入后会输出一个进程ID,可以使用命令 ps -ef|grep minio 查看进程是否启动成功。
- User
nohup: failed to run command 'MINIO_ROOT_USER=admin': No such file or directory
- Assistant
这个错误是因为 shell 无法正确识别命令参数。可以尝试使用双引号括起参数,如下所示:
nohup "MINIO_ROOT_USER=admin" "MINIO_ROOT_PASSWORD=password" ./minio server /mnt/data --console-address ":9001" &这样就可以正确识别参数,并成功运行 nohup 命令了。