cute http file server 使用教程及开发API下载git下载地址

https://download.csdn.net/download/sitelist/10758972

D:\>chfs --help
usage: chfs [<flags>]

Flags:
  --help            Show context-sensitive help (also try --help-long and
                    --help-man).
  --path=DIRECTORY  Directory where stores shared files(Default is current
                    directory).
  --port=PORT       HTTP listening port(Default is 80).
  --allow=LIST      Allowed IPv4 addresses(Allow any address by default).

                    White list mode: "listitem1[,listitem2,...]" e.g.
                    "192.168.1.2-192.168.1.10,192.169.1.222" allows this 10
                    addresses.

                    Black list mode: "not(listitem1[,listitem2,...])" e.g.
                    "not(192.168.1.2-192.168.1.10,192.169.1.222)" bans this 10
                    addresses!
  --rule=LIST       Access rules(anybody can access any thing by default).

                    List defines like:"USER:PWD:MASK[:DIR:MASK...][|...]":

                      1,USER and PWD is account name and password
                      2,MASK:''=NO present,'r'=read,'w'=write,'d'=delete
                      3,r=view+download,w=r+upload+create+rename,d=w+delete
                      4,DIR is directory name, allows wildcard('*' & '?')
                      5,The 3rd field is access mask of shared root directory
                      6,The optional fields is pairs of sub-directory and mask
                      7,The optional sub-directory's mask overwrite parent's
                      8,You should avoid '|' ':' and white space(exclude DIR)

                    For instance: "::|root:123456:rw" bans guest, and defines a
                    account 'root' can do anything
  --log=DIRECTORY   Log directory(Default is './logs'). Empty value will disable

                    log.
  --file=FILE       A configuration file which overwrites the settings.
  --version         Show application version.

猜你喜欢

转载自blog.csdn.net/sitelist/article/details/83626287