Official website Instructions: http://iscute.cn/chfs
The following is Centos Installation Method:
1. Download chfs package and unzip
wget http://iscute.cn/tar/chfs/1.10/chfs-linux-amd64-1.10.zip
2. Add the executable permission to chfs opt directory under the command
chmod +x /opt/chfs
3. Install the rear end of the dependent packages
yum -y install screen
4. Switch to opt directory, and start the service chfs
cd /opt
screen -dmS chfs ./chfs --path="/mnt/" --port=8080 --rule="::r|xianyu:123:rwd" --file="/opt/chfs.cnf"
Above //: --path specify the shared directory, do not specify the default directory for the program to run,
--port listening port
--rule user rights assigned, with a plurality of users separated by |, having a first read access for the anonymous user, the second user has read and write permissions tandabao (default anonymous user to have access)
--file specify the configuration file, the file may not exist, in case you need to change the configuration to be later
Other parameters Examples:
// anonymous users what permissions are not (by default anonymous user to have access)
// account admin, password admin123, has read and write access // account zhangsan, password zhangsan123, permissions on the root directory is not read and write, but read and write permissions chfs --rule to zhangsanfiles directory = ":: | admin : admin123: rw | zhangsan: zhangsan123 :: zhangsanfiles: rw "
// whitelist mode, allowing 192.168.1.2-192.168.1.100 and 192.168.1.200 access chfs --allow = "192.168.1.2-192.168.1.100,192.168.1.200" // blacklist mode, prohibit 192.168.1.2-192.168 .1.100 and 192.168.1.200 access chfs --allow = "not (192.168.1.2-192.168.1.100,192.168.1.200)"
5. View chfs service port
netstat -tnulp | grep 8080
6. Enter ip + port access chfs service page in a browser
windows run the tool more convenient, only after extracting a console program chfs.exe
Open a command line window, shift + right-parameter syntax and linux as an administrator in the path
Enter the following after the run
Then you can use a web page