CN108984215A - A kind of method, apparatus, equipment and the storage medium of automatic carry NFS - Google Patents

A kind of method, apparatus, equipment and the storage medium of automatic carry NFS Download PDF

Info

Publication number
CN108984215A
CN108984215A CN201810707639.1A CN201810707639A CN108984215A CN 108984215 A CN108984215 A CN 108984215A CN 201810707639 A CN201810707639 A CN 201810707639A CN 108984215 A CN108984215 A CN 108984215A
Authority
CN
China
Prior art keywords
configuration file
script
automatic carry
booting
nfs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810707639.1A
Other languages
Chinese (zh)
Inventor
宋慧敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810707639.1A priority Critical patent/CN108984215A/en
Publication of CN108984215A publication Critical patent/CN108984215A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to method, apparatus, equipment and the storage mediums of a kind of automatic carry NFS, comprising: the script of the automatic carry Network File System of creation booting;Creation booting executes the configuration file of the script automatically;The script and the configuration file are moved under the specified directory that launchd process can be read;The permission of script described in the automatic carry of the configuration file is set.The present invention realizes the automatic carry NFS of booting by the script of creation booting carry NFS and the configuration file of booting perform script.After configuration successful, without user have too many technical support or experience booting can automatic carry NFS, save a large amount of manpower and high brain tactic.

Description

A kind of method, apparatus, equipment and the storage medium of automatic carry NFS
Technical field
The invention belongs to Network File System technical fields, and in particular to a kind of method, apparatus of automatic carry NFS is set Standby and storage medium.
Background technique
Network File System (NFS) mainly realizes the file-sharing between system and system.NFS's is characterized in that, It can not have in programming to equipment by network come carry.In cloud computing era, Network File System is current major cloud Calculate one of the emphasis of manufacturer's research and development.
NFS is C/S framework, that is to say, that needs to build server and client side using NFS.Client is very simple, carries Uboot be added to the support to NFS client, with emphasis on building nfs server.Nfs server actually with TFTP, Samba server, Ftp server are very similar, need to use Installing of Command on Ubuntu.Build the substantially step of server Are as follows: it downloads and nfs server is installed;Human configuration nfs server;Then it saves, restarts nfs server or Ubuntu;It looks into See development board and the IP of Ubuntu, setting development board IP and the logical nfs server of ping;Needing to copy to file on development board It all copies in the catalogue being arranged just now, such as copies/work/nfs to, carry order is then executed on development board;Now Into on development board /mnt catalogue, can see the file to be transmitted on Ubuntu.
MAC system restarts needs carry NFS again every time, and carry NFS step is relatively complicated, waste a large amount of time and Manpower.
Summary of the invention
It is an object of the present invention to design a kind of automatic carry NFS's in view of the above-mentioned drawbacks of the prior art, providing Method, apparatus, equipment and storage medium, to solve the above technical problems.
In a first aspect, the embodiment of the present application provides the method for automatic carry NFS a kind of, comprising:
The script of the automatic carry Network File System of creation booting;
Creation booting executes the configuration file of the script automatically;
The script and the configuration file are moved under the specified directory that launchd process can be read;
The permission of script described in the automatic carry of the configuration file is set.
With reference to first aspect, in the first embodiment of first aspect, the method also includes:
Restart server, judge whether system being capable of automatic carry NFS:
It is no, then check the grammer of the configuration file, and using order sudo vim boot_auto_mnfs_ Mac.plist modifies to the configuration file.
With reference to first aspect and the first embodiment of first aspect, in second of embodiment of first aspect, The method also includes:
After modifying the configuration file, restarts server or reload the configuration file.
Second aspect, the embodiment of the present application provide the device of automatic carry NFS a kind of, and described device includes:
Script creating unit is configured to the script of the automatic carry Network File System of creation booting;
File creating unit is configured to the configuration file that creation booting executes the script automatically;
Designated memory cell, being configured to the script and the configuration file being moved to launchd process can be read Specified directory under;
Priority assignation unit is configured to that the permission of script described in the automatic carry of the configuration file is arranged.
In conjunction with second aspect, in the first embodiment of second aspect, described device further include:
Judging unit is configured to restart server, judges whether system being capable of automatic carry NFS;
Unit is repaired, is configured to check the grammer of the configuration file, and using order sudo vim boot_auto_ Mnfs_mac.plist modifies to the configuration file.
In conjunction with the first of second aspect and second aspect embodiment, in second of embodiment of second aspect, Described device further include:
Unit is reloaded, is configured to after modifying the configuration file, server is restarted or reloads the configuration File.
The third aspect, the embodiment of the present application provide a kind of equipment, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of places Manage method of the device execution as described in first aspect and any embodiment of first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium for being stored with computer program, should The method as described in first aspect and any embodiment of first aspect is realized when program is executed by processor.
The beneficial effects of the present invention are,
The method of automatic carry NFS provided by the invention passes through the script and booting perform script of creation booting carry NFS Configuration file, realize the automatic carry NFS of booting.After configuration successful, there are too many technical support or experience without user Booting can automatic carry NFS, save a large amount of manpower and high brain tactic.
The device of automatic carry NFS provided by the invention passes through the script for oneself carry NFS that script creating unit creates With the configuration file of the booting perform script of file creating unit creation, the automatic carry NFS of booting is realized.After configuration successful, Without user have too many technical support or experience booting can automatic carry NFS, save a large amount of manpower and high people Ability cost.
A kind of equipment provided by the invention, the method by executing automatic carry NFS provided by the invention, realizes booting Automatic carry NFS.After configuration successful, without user have too many technical support or experience booting can automatic carry NFS, section A large amount of manpower and high brain tactic are saved.
A kind of computer readable storage medium being stored with computer program provided by the invention, the program are held by processor The method that automatic carry NFS provided by the invention is realized when row, and then the automatic carry NFS that is switched on may be implemented.After configuration successful, Without user have too many technical support or experience booting can automatic carry NFS, save a large amount of manpower and high people Ability cost.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation Beneficial effect be also obvious.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the exemplary process diagram of the method for automatic carry NFS provided by the embodiments of the present application;
Fig. 2 is the exemplary process diagram of the method for automatic carry NFS provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiment of the present application provides the method for automatic carry NFS a kind of, comprising:
The script of the automatic carry Network File System of creation booting;
Creation booting executes the configuration file of the script automatically;
The script and the configuration file are moved under the specified directory that launchd process can be read;
The permission of script described in the automatic carry of the configuration file is set;
Restart server, judge whether system being capable of automatic carry NFS:
It is no, then check the grammer of the configuration file, and using order sudo vim boot_auto_mnfs_ Mac.plist modifies to the configuration file;
After modifying the configuration file, restarts server or reload the configuration file.
In order to facilitate the understanding of the present invention, below with the principle of carry NFS of the invention automatic, in conjunction with the embodiments in it is right NFS carries out the process of automatic carry, is further described to the method for detection snapshot provided by the invention.
Embodiment 1
Referring to FIG. 1, the present embodiment provides the methods of automatic carry NFS a kind of, specifically includes the following steps:
The script of S1, the automatic carry Network File System of creation booting.With reference to the following (boot_auto_mnfs_ of script Mac.sh):
S2, creation booting execute the configuration file of the script automatically.
(launchd will be responsible in carry system Launchd process as first User space process by kernel carry It is other to guard and broker program.) needing to read the plist configuration file of an xml format, creation this document is simultaneously placed At/System/Library/LaunchDaemons/ or/Library/LaunchDaemons/ catalogue.It can be in Windows Under this document is pre-created, need using support Unix format text editor (such as UltraEdit) create this document.
The wherein meaning of plist file format and each field:
Boot_auto_mnfs_mac.plist file example:
Keyword is explained:
(1) Label (essential)
The title of this service.
(2) Program (ProgramArgument be it is essential, in the case where no ProgramArgument, it is necessary to It to include Program keyword)
The path of specified executable file and title.
(3) RunAtLoad (optional)
The mark launchd executable file that carry path is specified immediately after having loaded this service.Default value is false.Being set as true can be realized booting Run Script file.
(4) WorkingDirectory (optional)
Before running executable file, the path of work at present catalogue is specified.
(5) KeepAlive (optional)
This keyword can be used to control whether to allow executable file continuous service, default value false, that is to say, that Meet after actual conditions just carry.When setting value is ture, show unconditional unlatching executable file, and be allowed to keep Within the whole system cycle of operation, false is selected herein.
All detailed operation instructions of key keyword can use order man under Mac OS x terminal Launchd.plist inquiry.
S3, the script and the configuration file are moved to specified directory that launchd process can be read (/ Library/LaunchDaemons/ under).
The permission of script described in S4, the setting automatic carry of configuration file.
sudo chown root:wheel
/Library/LaunchDaemons/boot_auto_mnfs_mac.*
sudo chmod a+x
/Library/LaunchDaemons/boot_auto_mnfs_mac.sh
sudo chmod 644
/Library/LaunchDaemons/boot_auto_mnfs_mac.plist
Embodiment 2
Referring to FIG. 2, the present embodiment provides the methods of automatic carry NFS a kind of, specifically includes the following steps:
The script of S1, the automatic carry Network File System of creation booting.With reference to the following (boot_auto_mnfs_ of script Mac.sh):
S2, creation booting execute the configuration file of the script automatically.
(launchd will be responsible in carry system Launchd process as first User space process by kernel carry It is other to guard and broker program.) needing to read the plist configuration file of an xml format, creation this document is simultaneously placed At/System/Library/LaunchDaemons/ or/Library/LaunchDaemons/ catalogue.It can be in Windows Under this document is pre-created, need using support Unix format text editor (such as UltraEdit) create this document.
The wherein meaning of plist file format and each field:
Boot_auto_mnfs_mac.plist file example:
Keyword is explained:
(1) Label (essential)
The title of this service.
(2) Program (ProgramArgument be it is essential, in the case where no ProgramArgument, it is necessary to It to include Program keyword)
The path of specified executable file and title.
(3) RunAtLoad (optional)
The mark launchd executable file that carry path is specified immediately after having loaded this service.Default value is false.Being set as true can be realized booting Run Script file.
(4) WorkingDirectory (optional)
Before running executable file, the path of work at present catalogue is specified.
(5) KeepAlive (optional)
This keyword can be used to control whether to allow executable file continuous service, default value false, that is to say, that Meet after actual conditions just carry.When setting value is ture, show unconditional unlatching executable file, and be allowed to keep Within the whole system cycle of operation, false is selected herein.
All detailed operation instructions of key keyword can use order man under Mac OS x terminal Launchd.plist inquiry.
S3, the script and the configuration file are moved to specified directory that launchd process can be read (/ Library/LaunchDaemons/ under).
The permission of script described in S4, the setting automatic carry of configuration file.
sudo chown root:wheel
/Library/LaunchDaemons/boot_auto_mnfs_mac.*
sudo chmod a+x
/Library/LaunchDaemons/boot_auto_mnfs_mac.sh
sudo chmod 644
/Library/LaunchDaemons/boot_auto_mnfs_mac.plist
S5, the editor of configuration file and inspection.
Restart server, judge whether system being capable of automatic carry NFS:
It is no, then check the grammer of the configuration file, and using order sudo vim boot_auto_mnfs_ Mac.plist modifies to the configuration file.
S6, carry service are simultaneously loaded into plsit file.
After modifying the configuration file, restarts server or reload the configuration file.
The embodiment of the present application provides the device of automatic carry NFS a kind of, comprising:
Script creating unit is configured to the script of the automatic carry Network File System of creation booting;
File creating unit is configured to the configuration file that creation booting executes the script automatically;
Designated memory cell, being configured to the script and the configuration file being moved to launchd process can be read Specified directory under;
Priority assignation unit is configured to that the permission of script described in the automatic carry of the configuration file is arranged.
Wherein, described device further include:
Judging unit is configured to restart server, judges whether system being capable of automatic carry NFS;
Unit is repaired, is configured to check the grammer of the configuration file, and using order sudo vim boot_auto_ Mnfs_mac.plist modifies to the configuration file.
Described device further include:
Unit is reloaded, is configured to after modifying the configuration file, server is restarted or reloads the configuration File.
The embodiment of the present application provides a kind of equipment, comprising: one or more processors;Memory, for store one or Multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of Processor executes method provided by the embodiments of the present application.
The embodiment of the present application provides a kind of computer readable storage medium for being stored with computer program, which is characterized in that The program realizes method provided by the embodiments of the present application when being executed by processor.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and Retouching, should all be within the scope of the present invention.

Claims (8)

1. a kind of method of automatic carry NFS, which is characterized in that the described method includes:
The script of the automatic carry Network File System of creation booting;
Creation booting executes the configuration file of the script automatically;
The script and the configuration file are moved under the specified directory that launchd process can be read;
The permission of script described in the automatic carry of the configuration file is set.
2. the method according to claim 1, wherein the method also includes:
Restart server, judge whether system being capable of automatic carry NFS:
It is no, then check the grammer of the configuration file, and using order sudo vim boot_auto_mnfs_mac.plist couple The configuration file is modified.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
After modifying the configuration file, restarts server or reload the configuration file.
4. a kind of device of automatic carry NFS, which is characterized in that described device includes:
Script creating unit is configured to the script of the automatic carry Network File System of creation booting;
File creating unit is configured to the configuration file that creation booting executes the script automatically;
Designated memory cell is configured to the script and the configuration file being moved to the finger that launchd process can be read Determine under catalogue;
Priority assignation unit is configured to that the permission of script described in the automatic carry of the configuration file is arranged.
5. device according to claim 4, which is characterized in that described device further include:
Judging unit is configured to restart server, judges whether system being capable of automatic carry NFS;
Unit is repaired, is configured to check the grammer of the configuration file, and using order sudo vim boot_auto_ Mnfs_mac.plist modifies to the configuration file.
6. device according to claim 4, which is characterized in that described device further include:
Unit is reloaded, is configured to after modifying the configuration file, server is restarted or reloads the configuration file.
7. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors Execute method as claimed in any one of claims 1-3.
8. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor Shi Shixian method as claimed in any one of claims 1-3.
CN201810707639.1A 2018-07-02 2018-07-02 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS Pending CN108984215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810707639.1A CN108984215A (en) 2018-07-02 2018-07-02 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810707639.1A CN108984215A (en) 2018-07-02 2018-07-02 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS

Publications (1)

Publication Number Publication Date
CN108984215A true CN108984215A (en) 2018-12-11

Family

ID=64539400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810707639.1A Pending CN108984215A (en) 2018-07-02 2018-07-02 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS

Country Status (1)

Country Link
CN (1) CN108984215A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933384A (en) * 2019-03-20 2019-06-25 浪潮商用机器有限公司 A kind of server local method and system
CN109976814A (en) * 2019-03-12 2019-07-05 浪潮商用机器有限公司 A kind of method, apparatus that building LCB server and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187927A1 (en) * 2002-02-22 2003-10-02 Winchell David F. Clustering infrastructure system and method
CN103746998A (en) * 2014-01-10 2014-04-23 中南大学 Method for realizing support of wireless network mounting by NFS (network file system)
CN104636441A (en) * 2015-01-07 2015-05-20 浪潮(北京)电子信息产业有限公司 Network file system realization method and device
CN106991067A (en) * 2017-04-14 2017-07-28 湖南威胜信息技术有限公司 Data interactive method and its embedded device for one master and multiple slaves formula network
CN107479888A (en) * 2017-08-11 2017-12-15 携程旅游信息技术(上海)有限公司 Operating system mirror image deployment services device method, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187927A1 (en) * 2002-02-22 2003-10-02 Winchell David F. Clustering infrastructure system and method
CN103746998A (en) * 2014-01-10 2014-04-23 中南大学 Method for realizing support of wireless network mounting by NFS (network file system)
CN104636441A (en) * 2015-01-07 2015-05-20 浪潮(北京)电子信息产业有限公司 Network file system realization method and device
CN106991067A (en) * 2017-04-14 2017-07-28 湖南威胜信息技术有限公司 Data interactive method and its embedded device for one master and multiple slaves formula network
CN107479888A (en) * 2017-08-11 2017-12-15 携程旅游信息技术(上海)有限公司 Operating system mirror image deployment services device method, system, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976814A (en) * 2019-03-12 2019-07-05 浪潮商用机器有限公司 A kind of method, apparatus that building LCB server and medium
CN109933384A (en) * 2019-03-20 2019-06-25 浪潮商用机器有限公司 A kind of server local method and system

Similar Documents

Publication Publication Date Title
US9411621B2 (en) Grouping and automatically propagating updates to equivalent online and offline virtual machines in a data center
US9875133B2 (en) Virtual machine disk image installation
EP2876556B1 (en) Fast restart of applications using shared memory
WO2021097397A1 (en) Container-based application data protection method and system
US8490082B2 (en) System and method for representing user processes as software packages in a software package management system
US8799893B2 (en) Method, system and computer program product for solution replication
US8549543B2 (en) Virtualize, checkpoint, and restart POSIX IPC objects during checkpointing and restarting of a software partition
US20140259008A1 (en) Performing unattended software installation
US20160283218A1 (en) Method for distributing large-sized Linux software packages
US20070101197A1 (en) System and method for representing system capabilities as software packages in a software package management system
US10534628B2 (en) Deploying updates to virtual machine images based on differences in artifacts
US9535729B2 (en) Live application mobility from one operating system level to an updated operating system level and applying overlay files to the updated operating system
US20210019171A1 (en) Physical-to-virtual migration method and apparatus, and storage medium
CN108509435B (en) Method and device for mounting remote file by example system
US10353729B1 (en) Managing service dependencies across virtual machines in a development environment
US9141385B2 (en) Managing operating system components
CN106293806A (en) Mirror image based on USB flash disk interface and the upgrade method of application program in road system
US20210182159A1 (en) System and method to enable file level recovery of virtual disks and dynamic disks
Fan et al. OPS: Offline patching scheme for the images management in a secure cloud environment
CN108984215A (en) A kind of method, apparatus, equipment and the storage medium of automatic carry NFS
US9411602B2 (en) Techniques for booting an information processing system
US20140108590A1 (en) Efficient shared image deployment
CN111273960A (en) Method for realizing cloud native MIPS architecture container cloud
US8904396B2 (en) System and method of general service management
WO2017020460A1 (en) Method and apparatus for integrating plugin

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication