ubuntu 搭建网络文件系统

Posted D·Kingson.Mo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 搭建网络文件系统相关的知识,希望对你有一定的参考价值。

一、安装 miniserver

sudo curl -L https://github.com/svenstaro/miniserve/releases/download/v0.4.1/miniserve-linux-x86_64 -o /usr/local/bin/miniserve
sudo chmod +x /usr/local/bin/miniserve

二、语法命令


USAGE:
    miniserve [FLAGS] [OPTIONS] [--] [PATH]

FLAGS:
    -D, --dirs-first
            List directories first

    -r, --enable-tar
            Enable uncompressed tar archive generation

    -g, --enable-tar-gz
            Enable gz-compressed tar archive generation

    -z, --enable-zip
            Enable zip archive generation

            WARNING: Zipping large directories can result in out-of-memory exception because zip generation is done in
            memory and cannot be sent on the fly
    -u, --upload-files
            Enable file uploading

    -h, --help
            Prints help information

    -P, --no-symlinks
            Do not follow symbolic links

    -o, --overwrite-files
            Enable overriding existing files during file upload

    -q, --qrcode
            Enable QR code display

        --random-route
            Generate a random 6-hexdigit route

    -V, --version
            Prints version information

    -v, --verbose
            Be verbose, includes emitting access logs


OPTIONS:
    -a, --auth <auth>...
            Set authentication. Currently supported formats: username:password, username:sha256:hash,
            username:sha512:hash (e.g. joe:123,
            joe:sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3)
    -c, --color-scheme <color-scheme>
            Default color scheme [default: squirrel]  [possible values: squirrel, archlinux,
            zenburn, monokai]
    -d, --color-scheme-dark <color-scheme-dark>
            Default color scheme [default: archlinux]  [possible values: squirrel, archlinux,
            zenburn, monokai]
        --header <header>...
            Set custom header for responses
        --index <index_file>
            The name of a directory index file to serve, like "index.html"

            Normally, when miniserve serves a directory, it creates a listing for that directory. However, if a
            directory contains this file, miniserve will serve that file instead.
    -i, --interfaces <interfaces>...
            Interface to listen on

    -p, --port <port>
            Port to use [default: 8080]

        --print-completions <shell>
            Generate completion file for a shell [possible values: zsh, bash, fish,
            powershell, elvish]
    -t, --title <title>
            Shown instead of host in page title and heading


ARGS:
    <PATH>
            Which path to serve

以上是关于ubuntu 搭建网络文件系统的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu搭建NFS

Ubuntu 下搭建 NFS 服务

Windows7+VirtualBox+Ubuntu本地开发环境搭建

Ubuntu利用ROS搭建手机移动网络摄像头(Android)

Ubuntu系统搭建SVN服务器

ARM开发板搭建NFS网络文件系统方法