A method, device, equipment and medium for automatically deploying IPFS network
The IPFS network is quickly built through automatic deployment programs and packaging tools, which solves the tedious and error-prone problems of the traditional manual construction process and achieves rapid deployment and efficient installation of the IPFS network.
Patent Information
- Application Number
- CN202111404922.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The traditional manual process of building an IPFS network is cumbersome and error-prone, making it difficult to deploy quickly.
Use the pre-installed packaging tool to package the IPFS installation files into the preset packaging software, use the automatic deployment program to determine the configuration file according to the preset installation steps of the specified device, automatically connect and deploy IPFS network nodes, and achieve rapid deployment.
It achieves rapid installation and deployment of IPFS networks, avoids errors in the traditional manual configuration process, and improves user experience and installation efficiency.
Smart Images

Figure CN114124938B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for automatically deploying an IPFS network. Background Art
[0002] InterPlantary File System (IPFS) is a network transmission protocol designed to create persistent and distributed storage and shared files. It is a content-addressable peer-to-peer hypermedia distribution protocol. With the rise of blockchain, IPFS has been developed, and more and more projects have begun to use IPFS. The uses can be roughly divided into two categories: one is to use the blockchain consensus mechanism to do some shared storage, identity authentication and other tasks; the other is to use the characteristics of IPFS itself to build a distributed storage network. Because of the demand for IPFS network by various projects, the rapid construction of IPFS network is very important.
[0003] There are many Linux distributions currently on the market, and the traditional manual construction of IPFS requires manual modification of configuration files, key generation, and connection to front-end development framework nodes, which makes the traditional manual construction process too cumbersome and prone to errors.
[0004] Therefore, a method to quickly build and deploy an IPFS network is needed. Summary of the invention
[0005] One or more embodiments of this specification provide a method, device, equipment and medium for automatically deploying an IPFS network, which are used to solve the following technical problem: how to provide a method for quickly building and deploying an IPFS network.
[0006] One or more embodiments of this specification adopt the following technical solutions:
[0007] One or more embodiments of this specification provide a method for automatically deploying an IPFS network, the method comprising:
[0008] Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package;
[0009] According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node;
[0010] Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0011] According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network;
[0012] Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0013] Optionally, in one or more embodiments of the present specification, before packaging the IPFS installation file into a preset software package based on a pre-installed packaging tool, the method further includes:
[0014] Install the packaging tool and development environment into a Linux system to obtain a Linux system that meets the requirements; wherein the Linux system that meets the requirements is a Linux system that has all software packages and all language development environments installed;
[0015] In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged as the IPFS installation file; wherein the second configuration file includes: the main node of the IPFS network, the keys of each IPFS node, and the storage sharing path.
[0016] Optionally, in one or more embodiments of the present specification, in the Linux system that meets the requirements, packaging the IPFS program package and the second configuration file into the IPFS installation file specifically includes:
[0017] Creating an output folder in the maximized installed Linux system according to a preset Linux command;
[0018] Copy the IPFS program package and the second configuration file to the output folder;
[0019] The output file is packaged according to the packaging tool to obtain the IPFS installation file.
[0020] Optionally, in one or more embodiments of the present specification, determining the automatic deployment program including the first configuration file according to the preset installation steps of the specified device specifically includes:
[0021] Obtain the Linux system version of the specified device, and determine the installation file directory of the IPFS network and the control flow of each device node in the specified device according to the Linux system version;
[0022] Determine the preset installation steps of the specified device according to the installation file directory of the IPFS network and the control process;
[0023] Determining a first configuration file according to preset installation steps of the designated device;
[0024] The automatic deployment procedure is determined according to a preset grammar and the first configuration file.
[0025] Optionally, in one or more embodiments of the present specification, connecting the device nodes according to the connection information of the IPFS network nodes and the IPFS installation file to obtain the initial IPFS network specifically includes:
[0026] According to the second configuration file in the IPFS installation file, obtain the master node of the IPFS network, and determine the device node corresponding to the master node of the IPFS network;
[0027] According to the connection information of the IPFS network node and the key, the device node corresponding to the master node of the IPFS network is connected to each device node in turn to obtain an initial IPFS network.
[0028] Optionally, in one or more embodiments of the present specification, after performing deployment processing on each device node according to the execution command of each node and obtaining the deployed IPFS network, the method further includes:
[0029] Obtain the operation log of each device node in the deployed IPFS network, and store the operation log in a preset file directory;
[0030] The deployment status of each device node is obtained according to the preset file directory.
[0031] Optionally, in one or more embodiments of the present specification, the preset packaging software is AppImage, and the pre-installed packaging tools are linuxdeployqt and patchelf.
[0032] One or more embodiments of this specification provide a device for automatically deploying an IPFS network, the device comprising:
[0033] The packaging unit is used to package the IPFS installation file into the preset packaging software based on the pre-installed packaging tool to obtain the software file package;
[0034] A determination unit, configured to determine an automatic deployment program including a first configuration file according to preset installation steps of a specified device; wherein the first configuration file includes: connection information of an IPFS network node and an execution command of each node;
[0035] A sending unit, configured to send the preset package file to each device node based on the automatic deployment program, and start the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0036] A connection unit, configured to connect the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
[0037] The deployment unit is used to deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0038] One or more embodiments of this specification provide a device for automatically deploying an IPFS network, the device comprising:
[0039] at least one processor; and,
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0042] Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package;
[0043] According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node;
[0044] Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0045] According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network;
[0046] Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0047] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0048] Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package;
[0049] According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node;
[0050] Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0051] According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network;
[0052] Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0053] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0054] Packing the IPFS installation file into the preset packaging software to obtain the software file package makes it possible for the device to configure the IPFS network without reinstalling the operating environment, and only the software file package is needed to complete the configuration, which realizes the rapid installation process and improves the user experience. In addition, the automatic deployment program realizes the automatic deployment of the IPFS network, avoiding the errors that are easy to occur in the traditional manual configuration process, and saving the technical staff the development process of the IPFS network installation program. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0056] Figure 1 A schematic diagram of a method for automatically deploying an IPFS network provided in an embodiment of this specification;
[0057] Figure 2 A process diagram of automatically deploying an IPFS network in a certain application scenario provided in an embodiment of this specification;
[0058] Figure 3 A schematic diagram of the internal structure of an automated IPFS network device provided in an embodiment of this specification;
[0059] Figure 4A schematic diagram of the internal structure of an automated IPFS network device provided in an embodiment of this specification;
[0060] Figure 5 A non-volatile storage medium provided in an embodiment of this specification. DETAILED DESCRIPTION
[0061] The embodiments of this specification provide a method, apparatus, device and medium for automatically deploying an IPFS network.
[0062] The rise of blockchain has driven the development of the InterPlanetary File System. More and more projects have begun to use IPFS, and the uses can be roughly divided into two categories. One is to use the consensus mechanism of blockchain to do some shared storage, identity authentication and other tasks, and the other is to use the characteristics of IPFS itself to build a distributed storage network. Therefore, the installation of IPFS network has become more common.
[0063] There are many Linux distributions currently on the market. If you need to build an IPFS network, system compatibility issues will inevitably arise. Manually building IPFS also requires manual configuration files, key generation, and connecting network nodes. The process is very cumbersome and prone to program errors.
[0064] In order to solve the above technical problems, the embodiment of this specification provides a method for automatically deploying an IPFS network. By packaging the IPFS installation files in a Linux system that meets the requirements, the deployment of IPFS does not require the installation of the operating environment in advance to achieve true plug-and-play. The IPFS installation files are packaged into the preset packaging software to obtain the software file package, so that the device can write to IPFS by simply deleting the software file package, which improves the user experience. Through the automatic deployment program, automatic deployment is achieved to avoid errors that are prone to occur in the traditional manual configuration process.
[0065] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0066] like Figure 1 As shown, an embodiment of this specification provides a flow chart of a method for automatically deploying an IPFS network.
[0067] In one or more embodiments of this specification, the execution subject is the server or execution unit that needs to deploy the IPFS network. Figure 1 It can be seen that the method includes the following steps:
[0068] S101: Based on the pre-installed packaging tool, the IPFS installation file is packaged into the preset packaging software to obtain a software file package.
[0069] At present, because the IPFS network is deployed in different Linux systems, it is necessary to install the corresponding language development environment to obtain the corresponding dependency data to solve the problem of system compatibility. However, this process makes the deployment process of the IPFS network too complicated, and the system compatibility problem is not easy to solve. Therefore, in one or more embodiments of the present specification, the packaging tool and the development environment can be pre-installed in the Linux system to obtain a Linux system that meets the requirements for installing all software packages and all language development environments. Then, the IPFS program package and the second configuration file are packaged into an IPFS installation file package from the Linux system that meets the requirements. Among them, the packaging process of IPFS is: enter a preset command in the command line of the Linux system that meets the requirements, create a folder, for example: based on the mkdir output command, thereby creating an output folder, and then copy the IPFS program package and the second configuration file to the output folder, and package based on the command of the preset packaging tool to obtain the IPFS installation file.
[0070] like Figure 2 As shown in the process diagram, after obtaining the IPFS installation file, it is necessary to package IPFS into the preset packaging software to obtain the software file package. In one or more embodiments of this specification, the preset packaging software is AppImage, and the pre-installed packaging tools are linuxdeployqt and patchelf. Among them, it should be noted that AppImage is a software packaging method under Linux. For developers, developers use AppImage to encapsulate and package their own software, which can be run directly on the mainstream distribution, and no longer need to compile a version for each mainstream Linux distribution with severe fragmentation.
[0071] AppImage encapsulates the operating environment and dependent libraries required by the application in the package, solving the complex dependency and compatibility issues in different versions of Linux systems. In addition, the packaging process of Appimage is also very simple. You can directly convert binary programs into AppImage applications, such as binary files contained in tar.gz, deb, and rpm packages. You can package your online hosted continuous integration service version applications, applications built by continuous integration tools, etc. into AppImage. It also supports applications based on cross-platform C++ applications and UI development libraries, and cross-platform desktop applications built using JavaScript, HTML, and CSS, which can be packaged into AppImage, and even the entire software directory can be packaged into AppImage.
[0072] The preset packaging software in the following embodiment steps of this specification is described as AppImage, and the packaging tool is described as linuxdeployqt.
[0073] S102: Determine an automatic deployment program including a first configuration file according to preset installation steps of a specified device; wherein the first configuration file includes: connection information of IPFS network nodes and execution commands of each node.
[0074] In one or more embodiments of the present specification, according to the preset installation steps of the specified device, an automatic deployment program including a first configuration file is determined, specifically including the following steps: First, the Linux system version of the specified device needs to be obtained, so as to determine the installation file directory of IPFS and the control flow of each device node according to the version of the Linux system. For example, control multiple devices and execute upload, download, decompression, run and other commands. Then, according to the installation file directory of IPFS and the control flow of each device node, the preset installation steps of the IPFS network in the specified device are obtained. According to the preset installation steps, a first configuration file containing information such as connection information of IPFS network nodes and execution commands of each node is determined. Thus, an automatic deployment program is obtained according to the preset syntax and the first configuration file, wherein the preset syntax can be the shell syntax of the Linux system, so that the automatic deployment program can be flexibly used.
[0075] S103: Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file.
[0076] After obtaining the software file package AppImage file and the automatic deployment program based on steps S101-S102. Figure 2As shown, based on the automatic deployment program, the AppImage file can be uploaded to each node device that needs to deploy the IPFS network to realize batch automatic deployment of each device node. Specifically, first upload the software file package to each device node through the automatic deployment program, that is, upload the AppImage file to each device node. Then, based on the automatic deployment program, remote batch call the startup command of the software file package AppImage file to realize the unified configuration of the IPFS network of each device node, set the role, key and storage path of each device node to realize the construction of a distributed network.
[0077] S104: Connect the device nodes according to the connection information of the IPFS network nodes and the IPFS installation file to obtain an initial IPFS network.
[0078] In one or more embodiments of the present specification, the device nodes are connected according to the connection information of the IPFS network node and the IPFS installation file to obtain the initial IPFS network, which specifically includes the following process: First, based on the second configuration file of the IPFS installation file, the master node of the IPFS network can be obtained, and the device node corresponding to the master node can be determined, so that the device node is used as the master node in the IPFS network. According to the connection information of the IPFS network node in the first configuration information and the key in the second configuration file, the master node in the IPFS network is connected to other devices in sequence to obtain the IPFS network. That is, the first node starts automatically as a bootstrap node, and subsequent nodes automatically join the ipfs local area network. Finally, all device nodes, that is, IPFS nodes, form a distributed network, in which it should be noted that each node can store files.
[0079] S105: Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0080] After obtaining the IPFS network, the automatic deployment program can modify the parameters of the first configuration file to batch execute upload, download, decompress, run and other commands on multiple machines, thereby obtaining the deployed IPFS network. In this application, AppImage is packaged in a Linux system that meets the requirements, so that the packaged file comes with the dependent environment data, which effectively solves the software incompatibility caused by differences in the Linux system environment in the traditional way, and improves the efficiency and success rate of deployment. In addition, the installation based on the automatic deployment program solves the program error problems and time cost waste problems that are easily caused by the traditional manual configuration process.
[0081] In one or more embodiments of the present specification, after obtaining the deployed IPFS network, the method further includes: obtaining the operation log of each device node in the deployed IPFS network, and storing the operation log in a preset file directory, so that the deployment status of each device node can be obtained based on the preset file directory, thereby realizing the monitoring of the IPFS network deployment status in each device node.
[0082] like Figure 3 As shown, in one or more embodiments of the present specification, a schematic diagram of the internal structure of a device for automatically deploying an IPFS network is provided.
[0083] Depend on Figure 3 It can be seen that a device for automatically deploying an IPFS network includes:
[0084] The packaging unit 301 is used to package the IPFS installation file into the preset packaging software based on the pre-installed packaging tool to obtain a software file package;
[0085] The determination unit 302 is used to determine an automatic deployment program including a first configuration file according to preset installation steps of a specified device; wherein the first configuration file includes: connection information of IPFS network nodes and execution commands of each node;
[0086] A sending unit 303 is used to send the preset package file to each device node based on the automatic deployment program, and start the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0087] A connection unit 304 is used to connect the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
[0088] The deployment unit 305 is used to perform deployment processing on each device node according to the execution command of each node to obtain the deployed IPFS network.
[0089] In one or more embodiments of this specification, the device further includes: an installation unit; an IPFS packaging unit;
[0090] The installation unit is used to install the packaging tool and the development environment into the Linux system to obtain a Linux system that meets the requirements; wherein the Linux system that meets the requirements is a Linux system in which all software packages and all language development environments are installed;
[0091] The IPFS packaging unit is used to package the IPFS program package and the second configuration file into the IPFS installation file in the Linux system that meets the requirements; wherein the second configuration file includes: the main node of the IPFS network, the keys of each IPFS node, and the storage sharing path.
[0092] In one or more embodiments of this specification, the IPFS packaging unit specifically includes: a creation unit; a copy unit; an output file packaging unit;
[0093] The creation unit is used to create an output folder in the Linux system that meets the requirements according to a preset Linux command;
[0094] The copying unit is used to copy the IPFS program package and the second configuration file to the output folder;
[0095] The output file packaging unit is used to package the output file according to the packaging tool to obtain the IPFS installation file.
[0096] In one or more embodiments of the present specification, the determining unit specifically includes: a first acquisition unit; a step determination unit; a file determination unit; a program determination unit;
[0097] The first acquisition unit is used to acquire the Linux system version of the designated device, and determine the installation file directory of the IPFS network and the control flow of each device node in the designated device according to the Linux system version;
[0098] The step determination unit is used to determine the preset installation steps of the specified device according to the installation file directory of the IPFS network and the control process;
[0099] The file determination unit is used to determine a first configuration file according to the preset installation steps of the designated device;
[0100] The program determination unit is used to determine the automatic deployment program according to a preset syntax and the first configuration file.
[0101] In one or more embodiments of this specification, the connection unit specifically includes: a second acquisition unit, a node connection unit;
[0102] The second acquisition unit is used to acquire the master node of the IPFS network according to the second configuration file in the IPFS installation file, and determine the device node corresponding to the master node of the IPFS network;
[0103] The node connection unit is used to connect the device node corresponding to the master node of the IPFS network with each device node in sequence according to the connection information of the IPFS network node and the key to obtain an initial IPFS network.
[0104] In one or more embodiments of this specification, the device further includes: a storage unit, a third acquisition unit;
[0105] The storage unit is used to obtain the operation log of each device node in the deployed IPFS network, and store the operation log in a preset file directory;
[0106] The third acquisition unit is used to acquire the deployment status of each device node according to the preset file directory.
[0107] like Figure 4 As shown, a schematic diagram of the internal structure of a device for automatically deploying an IPFS network is provided in one or more embodiments of this specification.
[0108] Depend on Figure 4 It can be seen that a device for automatically deploying an IPFS network includes:
[0109] at least one processor 401; and,
[0110] A memory in communication with the at least one processor 401; wherein,
[0111] The memory 402 stores instructions that can be executed by the at least one processor 401. The instructions are executed by the at least one processor 401 to enable the at least one processor 401 to:
[0112] Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package;
[0113] According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node;
[0114] Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0115] According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network;
[0116] Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0117] like Figure 5 As shown, an embodiment of the present specification provides a schematic diagram of the internal structure of a non-volatile storage medium.
[0118] Depend on Figure 5 It can be known that a non-volatile storage medium includes computer executable instructions 501, characterized in that the executable instructions 501 include:
[0119] Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package;
[0120] According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node;
[0121] Sending the preset package file to each device node based on the automatic deployment program, and starting the preset package file based on the automatic deployment program to obtain the IPFS installation file;
[0122] According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network;
[0123] Deploy each device node according to the execution command of each node to obtain the deployed IPFS network.
[0124] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0125] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0126] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A method for automatically deploying an IPFS network, characterized in that: The method comprises: Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package; According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node; Sending the software file package to each device node based on the automatic deployment program, and starting the software file package based on the automatic deployment program to obtain the IPFS installation file; According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network; Deploy each device node according to the execution command of each node to obtain the deployed IPFS network; Wherein, before packaging the IPFS installation file into a preset software package based on a pre-installed packaging tool, the method further includes: Install the packaging tool and development environment into a Linux system to obtain a Linux system that meets the requirements; wherein the Linux system that meets the requirements is a Linux system in which all software packages and all language development environments are installed; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file; wherein the second configuration file includes: the master node of the IPFS network, the key of each IPFS node, and the storage sharing path; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file, specifically including: Create an output folder in the Linux system that meets the requirements according to the preset Linux command; Copy the IPFS program package and the second configuration file to the output folder; Packaging the output file according to the packaging tool to obtain an IPFS installation file; Connecting the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain the initial IPFS network specifically includes: According to the second configuration file in the IPFS installation file, obtain the master node of the IPFS network, and determine the device node corresponding to the master node of the IPFS network; According to the connection information of the IPFS network node and the key, the device node corresponding to the master node of the IPFS network is connected to each device node in turn to obtain an initial IPFS network; According to the preset installation steps of the specified device, an automatic deployment program including the first configuration file is determined, specifically including: Obtain the Linux system version of the specified device, and determine the installation file directory of the IPFS network and the control flow of each device node in the specified device according to the Linux system version; Determine the preset installation steps of the specified device according to the installation file directory of the IPFS network and the control process; Determining a first configuration file according to preset installation steps of the designated device; Determine the automatic deployment program according to a preset grammar and the first configuration file; Among them, based on the automatic deployment program, the AppImage file can be uploaded to each node device that needs to deploy the IPFS network to realize batch automatic deployment of each device node; specifically, first upload the software file package to each device node through the automatic deployment program, that is, upload the AppImage file to each device node; then based on the automatic deployment program, remotely batch call the startup command of the software file package AppImage file to realize the unified configuration of the IPFS network of each device node, set the role, key and storage path of each device node to realize the construction of a distributed network.
2. A method for automatically deploying an IPFS network according to claim 1, characterized in that: After performing deployment processing on each device node according to the execution command of each node and obtaining the deployed IPFS network, the method further includes: Obtain the operation log of each device node in the deployed IPFS network, and store the operation log in a preset file directory; The deployment status of each device node is obtained according to the preset file directory.
3. A method for automatically deploying an IPFS network according to claim 1, characterized in that: The preset packaging software is AppImage, and the pre-installed packaging tools are linuxdeployqt and patchelf.
4. A device for automatically deploying an IPFS network, characterized in that: The device comprises: The packaging unit is used to package the IPFS installation file into the preset packaging software based on the pre-installed packaging tool to obtain the software file package; A determination unit, configured to determine an automatic deployment program including a first configuration file according to preset installation steps of a specified device; wherein the first configuration file includes: connection information of an IPFS network node and an execution command of each node; A sending unit, configured to send the software file package to each device node based on the automatic deployment program, and start the software file package based on the automatic deployment program to obtain the IPFS installation file; A connection unit, configured to connect the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network; A deployment unit, used to perform deployment processing on each device node according to the execution command of each node to obtain a deployed IPFS network; Wherein, before packaging the IPFS installation file into the preset software package based on the pre-installed packaging tool, it also includes: Install the packaging tool and development environment into a Linux system to obtain a Linux system that meets the requirements; wherein the Linux system that meets the requirements is a Linux system in which all software packages and all language development environments are installed; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file; wherein the second configuration file includes: the master node of the IPFS network, the key of each IPFS node, and the storage sharing path; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file, specifically including: Create an output folder in the Linux system that meets the requirements according to the preset Linux command; Copy the IPFS program package and the second configuration file to the output folder; Packaging the output file according to the packaging tool to obtain an IPFS installation file; Connecting the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain the initial IPFS network specifically includes: According to the second configuration file in the IPFS installation file, obtain the master node of the IPFS network, and determine the device node corresponding to the master node of the IPFS network; According to the connection information of the IPFS network node and the key, the device node corresponding to the master node of the IPFS network is connected to each device node in turn to obtain an initial IPFS network; According to the preset installation steps of the specified device, an automatic deployment program including the first configuration file is determined, specifically including: Obtain the Linux system version of the specified device, and determine the installation file directory of the IPFS network and the control flow of each device node in the specified device according to the Linux system version; Determine the preset installation steps of the specified device according to the installation file directory of the IPFS network and the control process; Determining a first configuration file according to preset installation steps of the designated device; Determine the automatic deployment program according to a preset grammar and the first configuration file; Among them, based on the automatic deployment program, the AppImage file can be uploaded to each node device that needs to deploy the IPFS network to realize batch automatic deployment of each device node; specifically, first upload the software file package to each device node through the automatic deployment program, that is, upload the AppImage file to each device node; then based on the automatic deployment program, remotely batch call the startup command of the software file package AppImage file to realize the unified configuration of the IPFS network of each device node, set the role, key and storage path of each device node to realize the construction of a distributed network.
5. A device for automatically deploying an IPFS network, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Based on the pre-installed packaging tool, package the IPFS installation file into the preset packaging software to obtain the software file package; According to the preset installation steps of the specified device, determine the automatic deployment program including the first configuration file; wherein the first configuration file includes: connection information of the IPFS network node and the execution command of each node; Sending the software file package to each device node based on the automatic deployment program, and starting the software file package based on the automatic deployment program to obtain the IPFS installation file; According to the connection information of the IPFS network node and the IPFS installation file, connect the device nodes to obtain the initial IPFS network; Deploy each device node according to the execution command of each node to obtain the deployed IPFS network; Wherein, before packaging the IPFS installation file into the preset software package based on the pre-installed packaging tool, it also includes: Install the packaging tool and development environment into a Linux system to obtain a Linux system that meets the requirements; wherein the Linux system that meets the requirements is a Linux system in which all software packages and all language development environments are installed; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file; wherein the second configuration file includes: the master node of the IPFS network, the key of each IPFS node, and the storage sharing path; In the Linux system that meets the requirements, the IPFS program package and the second configuration file are packaged into the IPFS installation file, specifically including: Create an output folder in the Linux system that meets the requirements according to the preset Linux command; Copy the IPFS program package and the second configuration file to the output folder; Packaging the output file according to the packaging tool to obtain an IPFS installation file; Connecting the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain the initial IPFS network specifically includes: According to the second configuration file in the IPFS installation file, obtain the master node of the IPFS network, and determine the device node corresponding to the master node of the IPFS network; According to the connection information of the IPFS network node and the key, the device node corresponding to the master node of the IPFS network is connected to each device node in turn to obtain an initial IPFS network; According to the preset installation steps of the specified device, an automatic deployment program including the first configuration file is determined, specifically including: Obtain the Linux system version of the specified device, and determine the installation file directory of the IPFS network and the control flow of each device node in the specified device according to the Linux system version; Determine the preset installation steps of the specified device according to the installation file directory of the IPFS network and the control process; Determining a first configuration file according to preset installation steps of the designated device; Determine the automatic deployment program according to a preset grammar and the first configuration file; Among them, based on the automatic deployment program, the AppImage file can be uploaded to each node device that needs to deploy the IPFS network to realize batch automatic deployment of each device node; specifically, first upload the software file package to each device node through the automatic deployment program, that is, upload the AppImage file to each device node; then based on the automatic deployment program, remotely batch call the startup command of the software file package AppImage file to realize the unified configuration of the IPFS network of each device node, set the role, key and storage path of each device node to realize the construction of a distributed network.
6. A non-volatile storage medium comprising computer executable instructions, characterized in that: The executable instructions can execute the method described in any one of claims 1 to 3.
