Simply pull the image, create a container and run the container: docker run -d --restart=always \ --privileged=true \ --net=host \ --name=fastdfs \ -e IP=192.168.149.128 \ -e WEB_PORT=80 \ -v ${HOME}/fastdfs:/var/local/fdfs registry.cn-beijing.aliyuncs.com/tianzuo/fastdfs Where -v ${HOME}/fastdfs:/var/local/fdfs means: Mount the ${HOME}/fastdfs directory to the /var/local/fdfs directory in the container. So the uploaded files will be persisted to ${HOME}/fastdfs/storage/data. The IP is followed by your own server public network IP or virtual machine IP, -e WEB_PORT=80 specifies the nginx port Access the container: Append text information to the index.html file Upload this file? Printed a piece of information: This is FastDFS client test program v5.12 Copyright (C) 2008, Happy Fish / YuQing FastDFS may be copied only under the terms of the GNU General Public License V3, which may be found in the FastDFS source kit. Please visit the FastDFS Home Page http://www.csource.org/ for more details. [2020-08-12 17:35:41] DEBUG - base_path=/var/local/fdfs/storage, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0 tracker_query_storage_store_list_without_group: server 1. group_name=, ip_addr=my ip, port=23000 group_name=group1, ip_addr=my ip, port=23000 storage_upload_by_filename group_name=group1, remote_filename=M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13.html source ip address: 172.17.0.7 file timestamp=2020-08-12 17:35:41 file size=30 file crc32=421145555 example file url: http://myip/group1/M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13.html storage_upload_slave_by_filename group_name=group1, remote_filename=M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13_big.html source ip address: 172.17.0.7 file timestamp=2020-08-12 17:35:41 file size=30 file crc32=421145555 example file url: http://myip/group1/M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13_big.html You can access it by following the address generated by the prompt. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL 4 common master-slave replication architectures
>>: Some suggestions on Vue code readability
This article uses examples to illustrate the func...
Solution 1 Completely uninstall and delete all da...
When it comes to <fieldset> and <legend&...
Introduction to HTML page source code layout This...
Windows 10 now supports Linux subsystem, saying g...
This article shares the specific code of Vue to i...
Storage Engine What is a database storage engine?...
In this chapter, we will start to operate redis i...
Understanding of diff algorithm in React diff alg...
Overview For small and medium-sized projects, joi...
MySQL's CAST() and CONVERT() functions can be...
Problem Description By configuring nginx, you can...
Table of contents 1. View hook 1. Things to note ...
Table of contents Preface 1. Project Architecture...
1. Always close HTML tags In the source code of p...