CN106598634A - Method and device for deploying Moodle platform - Google Patents

Method and device for deploying Moodle platform Download PDF

Info

Publication number
CN106598634A
CN106598634A CN201510684624.4A CN201510684624A CN106598634A CN 106598634 A CN106598634 A CN 106598634A CN 201510684624 A CN201510684624 A CN 201510684624A CN 106598634 A CN106598634 A CN 106598634A
Authority
CN
China
Prior art keywords
moodle
platforms
virtual machine
needed
database
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
CN201510684624.4A
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510684624.4A priority Critical patent/CN106598634A/en
Publication of CN106598634A publication Critical patent/CN106598634A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention provides a method and device for deploying a Moodle platform. The method comprises the following steps: establishing an application server necessary for deploying the Moodle platform in a first virtual machine; establishing a database necessary for deploying the Moodle platform in a second virtual machine; and establishing a cache file necessary for deploying the Moodle platform in a third virtual machine, wherein the first virtual machine, the second virtual machine and the third virtual machine are application container engines Docker. According to the embodiment of the invention, the application server, the database and the cache file necessary for deploying the Moodle platform are separately established on different virtual machines to prevent the mutual access of the application server, the database and the cache file, and thus the security of the Moodle platform is improved.

Description

The dispositions method and device of Moodle platforms
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of dispositions method of Moodle platforms And device.
Background technology
Moodle is a course management system of increasing income (CMS), also referred to as learning management system (LMS) Or collaborative virtual learning environment (VLE).It is by one kind that all over the world educator likes that it has become deep The instrument of online dynamic website is set up in life.In order to normally run Moodle, it needs to be installed in Web clothes On business device.
In prior art, the deployment of Moodle platforms needs application server, data base and cache file, But, application server, data base and cache file are deployed on native operating sys-tern, application service Mutual access between device, data base and cache file can reduce the safety of Moodle platforms.
The content of the invention
The embodiment of the present invention provides a kind of dispositions method and device of Moodle platforms, to improve Moodle The safety of platform.
The one side of the embodiment of the present invention is to provide a kind of dispositions method of Moodle platforms, including:
Application server needed for deployment Moodle platforms is set up in the first virtual machine;
By the Database disposed needed for the Moodle platforms in the second virtual machine;
The cache file disposed needed for the Moodle platforms is set up in the 3rd virtual machine;
Wherein, first virtual machine, second virtual machine and the 3rd virtual machine are application container Engine Docker.
The other side of the embodiment of the present invention is to provide a kind of deployment device of Moodle platforms, including:
First sets up module, for the application server needed for deployment Moodle platforms to be set up into empty first Plan machine;
Second sets up module, and the Database for disposing needed for the Moodle platforms is empty second Plan machine;
3rd sets up module, for the cache file disposed needed for the Moodle platforms to be set up the 3rd Virtual machine;
Wherein, first virtual machine, second virtual machine and the 3rd virtual machine are application container Engine Docker.
The dispositions method and device of Moodle platforms provided in an embodiment of the present invention, by the way that Moodle will be disposed Application server, data base and cache file needed for platform is set up respectively on different virtual machines, is prevented Only the mutual access between application server, data base and cache file, improves the peace of Moodle platforms Quan Xing.
Description of the drawings
Fig. 1 is the dispositions method flow chart of Moodle platforms provided in an embodiment of the present invention;
Fig. 2 is the structure chart of the deployment device of Moodle platforms provided in an embodiment of the present invention;
The structure chart of the deployment device of the Moodle platforms that Fig. 3 is provided for another embodiment of the present invention.
Specific embodiment
Fig. 1 is the dispositions method flow chart of Moodle platforms provided in an embodiment of the present invention.The present invention is implemented Example is deployed on native operating sys-tern for application server, data base and cache file, application service Mutual access between device, data base and cache file can reduce the safety of Moodle platforms, there is provided The dispositions method of Moodle platforms, the method is comprised the following steps that:
Step S101, by deployment Moodle platforms needed for application server set up in the first virtual machine;
In embodiments of the present invention, the Dockerfile files of application server container are created, and execution should Dockerfile files to set up the virtual machine different from native operating sys-tern, hold by virtual machine specially application Device engine Docker.
The Dockerfile files of application server container are as follows:
FROM centos:centos6
MAINTAINER Fanbin Kong kongxx@hotmail.com
RUN yum update-y>/dev/null&&yum install-y http://ftp.rike n.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm&&curl -L-o/etc/yum.repos.d/hop5.repo http://www.hop5.in/yum/el6/hop5. repo
RUN yum install-y python-meld3http://dl.fedoraproject.org/pu b/epel/6/i386/supervisor-2.1-8.el6.noarch.rpm
RUN["yum","-y","install","nginx","php","php-mysql","php-dev el","php-gd","php-pecl-memcache","php-pspell","php-snmp","php -xmlrpc","php-xml","hhvm"]
RUN mkdir-p/var/www/html&&chmod a+r/var/www/html&&echo "<php phpinfo();>">/var/www/html/index.php
set-e-x
echo"starting supervisor in foreground"
supervisord-n
ADD scripts/run.sh/run.sh
RUN chmod a+x/run.sh
EXPOSE 22 80
ENTRYPOINT["/run.sh"]
Step S102, by the Database disposed needed for the Moodle platforms in the second virtual machine;
In embodiments of the present invention, the Dockerfile files of database container are created, and execution should Dockerfile files to set up the virtual machine different from native operating sys-tern, hold by virtual machine specially application Device engine Docker.
The Dockerfile files of database container are as follows:
FROM centos:centos6
MAINTAINER Fanbin Kong kongxx@hotmail.com
RUN yum install-y mysql-server mysql
RUN/etc/init.d/mysqld start&&\
Mysql-e " grant all privileges on*.*to'root'@' %'identified by'letmein';"&&\
mysql-e"grant all privileges on*.*to'root'@'localhost'i dentified by'letmein';"&&\
mysql-u root-pletmein-e"show databases;"
EXPOSE 3306
CMD["/usr/bin/supervisord"]
Step S103, the cache file disposed needed for the Moodle platforms is set up in the 3rd virtual machine;
Wherein, first virtual machine, second virtual machine and the 3rd virtual machine are application container Engine Docker.
In embodiments of the present invention, the Dockerfile files of cache file container are created, and execution should Dockerfile files to set up the virtual machine different from native operating sys-tern, hold by virtual machine specially application Device engine Docker.
The deployment of Moodle platforms needs application server, data base and cache file, by application server, Data base and cache file are set up respectively on different virtual machines.
The embodiment of the present invention is by by application server, data base and caching needed for deployment Moodle platforms File is set up respectively on different virtual machines, is prevented between application server, data base and cache file Mutual access, improve the safety of Moodle platforms.
On the basis of above-described embodiment, also include:First virtual machine, described second virtual is set Access rights in machine and the 3rd virtual machine between any two virtual machine.
In embodiments of the present invention, first virtual machine, second virtual machine and institute can also be set The access rights between any two virtual machine in the 3rd virtual machine are stated, for example, first virtual machine can To access second virtual machine, and the 3rd virtual machine cannot be accessed, play isolation two virtual The effect of machine, further increases the safety of Moodle platforms.
The file of the access rights between setting any two virtual machine is as follows:
sudo docker run--name DB-d-p 3306:3306-e MYSQL_DATABASE=moodle - e MYSQL_USER=moodle-e MYSQL_PASSWORD=moodle centurylink/mysql
sudo docker run-d-P--name MOODLE--link DB:DB-e MOODLE_URL=http://yourhost.cloudapp.net-p 80:80 jauer/moodle.
Application server needed for the Moodle platforms by deployment is set up in the first virtual machine, including:
Application server needed for deployment Moodle platforms is set up in multiple first virtual machines;
It is described by the Database disposed needed for the Moodle platforms in the second virtual machine, including:
By the Database disposed needed for the Moodle platforms in multiple second virtual machines;
It is described the cache file disposed needed for the Moodle platforms to be set up in the 3rd virtual machine, including:
The cache file disposed needed for the Moodle platforms is set up in multiple 3rd virtual machines.
In embodiments of the present invention, specifically application server can be set up in multiple first virtual machines, with The disposal ability of Moodle platform access request is improved, by Database in multiple second virtual machines, with The data storage and data read capability of Moodle platforms are improved, cache file is set up into empty multiple three Plan machine, improves the file cache ability of Moodle platforms.
The data base includes read from database and writes data base;It is described to dispose needed for the Moodle platforms Database in multiple second virtual machines, including:The reading needed for the Moodle platforms will be disposed According to storehouse and write data base and set up respectively in the second different virtual machines.
Data base includes read from database and writes data base, i.e. data base and specifically can be used for reading and writing, Read-only data base and the data base for only writing are set up respectively in the second different virtual machines, to improve data The efficiency for reading and writing.
The file-sharing server disposed needed for the Moodle platforms is set up in the 4th virtual machine. The deployment of Moodle platforms also needs to file-sharing server, and file-sharing server is set up into empty the 4th Plan machine.
The embodiment of the present invention is further increased by arranging the access rights between any two virtual machine The safety of Moodle platforms;Application server is set up in multiple first virtual machines, to improve Moodle The disposal ability of platform access request, by Database in multiple second virtual machines, to improve Moodle The data storage and data read capability of platform, cache file is set up in multiple 3rd virtual machines, improves The file cache ability of Moodle platforms.
Fig. 2 is the structure chart of the deployment device of Moodle platforms provided in an embodiment of the present invention.It is of the invention real Applying the deployment device of the Moodle platforms of example offer can perform the dispositions method embodiment of Moodle platforms The handling process of offer, as shown in Fig. 2 the deployment device 20 of Moodle platforms sets up mould including first Block 21, second are set up module 22 and the 3rd and set up module 23, wherein, first set up module 21 for will Application server needed for deployment Moodle platforms is set up in the first virtual machine;Second sets up module 22 uses In the Database that will be disposed needed for the Moodle platforms in the second virtual machine;3rd sets up module 23 are used to the cache file disposed needed for the Moodle platforms is set up in the 3rd virtual machine;Wherein, First virtual machine, second virtual machine and the 3rd virtual machine are application container engine Docker.
The embodiment of the present invention is by by application server, data base and caching needed for deployment Moodle platforms File is set up respectively on different virtual machines, is prevented between application server, data base and cache file Mutual access, improve the safety of Moodle platforms.
The structure chart of the deployment device of the Moodle platforms that Fig. 3 is provided for another embodiment of the present invention.Upper On the basis of stating embodiment, the deployment device 20 of Moodle platforms also includes access rights setup module 24, Wherein, access rights setup module 24 is used to arrange first virtual machine, second virtual machine and institute State the access rights between any two virtual machine in the 3rd virtual machine.
First sets up module 21 specifically for the application server needed for deployment Moodle platforms is set up Multiple first virtual machines;Second sets up module 22 specifically for disposing needed for the Moodle platforms Database is in multiple second virtual machines;3rd sets up module 23 specifically for disposing the Moodle Cache file needed for platform is set up in multiple 3rd virtual machines.
The data base includes read from database and writes data base;Second sets up module 22 specifically for disposing Read from database needed for the Moodle platforms and write data base and set up respectively in the second different virtual machines.
The deployment device 20 of Moodle platforms also sets up module 25 including the 4th, and the 4th sets up module 25 uses In the file-sharing server foundation that will be disposed needed for the Moodle platforms in the 4th virtual machine.
The deployment device of Moodle platforms provided in an embodiment of the present invention can be specifically for performing above-mentioned Fig. 1 The embodiment of the method for being provided, here is omitted for concrete function.
The embodiment of the present invention is further increased by arranging the access rights between any two virtual machine The safety of Moodle platforms;Application server is set up in multiple first virtual machines, to improve Moodle The disposal ability of platform access request, by Database in multiple second virtual machines, to improve Moodle The data storage and data read capability of platform, cache file is set up in multiple 3rd virtual machines, improves The file cache ability of Moodle platforms.
In sum, the embodiment of the present invention will be by disposing application server, number needed for Moodle platforms Set up respectively on different virtual machines according to storehouse and cache file, prevent application server, data base from easing up The mutual access between file is deposited, the safety of Moodle platforms is improve;It is empty by arranging any two Access rights between plan machine, further increase the safety of Moodle platforms;Application server is built Multiple first virtual machines are stood in, to improve the disposal ability of Moodle platform access request, data base is built Multiple second virtual machines are stood in, to improve the data storage and data read capability of Moodle platforms, will be slow Deposit file and set up the file cache ability that Moodle platforms are improved in multiple 3rd virtual machines.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, Can realize by another way.For example, device embodiment described above is only schematic, For example, the division of the unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode, such as multiple units or component can with reference to or be desirably integrated into another system, or Some features can be ignored, or not perform.It is another, shown or discussed coupling each other or Direct-coupling or communication connection can be the INDIRECT COUPLINGs or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
It is described as separating component explanation unit can be or may not be it is physically separate, make Can be for the part that unit shows or may not be physical location, you can with positioned at a place, Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or Person's whole unit is realizing the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a list In unit.Above-mentioned integrated unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds software The form of functional unit is realized.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in a computer In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers Order is used so that a computer equipment (can be personal computer, server, or network equipment etc.) Or processor (processor) performs the part steps of each embodiment methods described of the invention.And it is aforementioned Storage medium include:USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can be with The medium of store program codes.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each The division of functional module is illustrated, in practical application, can as desired by above-mentioned functions point With being completed by different functional modules, will the internal structure of device be divided into different functional modules, with Complete all or part of function described above.The specific work process of the device of foregoing description, can be with With reference to the corresponding process in preceding method embodiment, will not be described here.
Finally it should be noted that:Various embodiments above is only illustrating technical scheme rather than right Its restriction;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common Technical staff should be understood:It still can modify to the technical scheme described in foregoing embodiments, Either equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.

Claims (10)

1. a kind of dispositions method of Moodle platforms, it is characterised in that include:
Application server needed for deployment Moodle platforms is set up in the first virtual machine;
By the Database disposed needed for the Moodle platforms in the second virtual machine;
The cache file disposed needed for the Moodle platforms is set up in the 3rd virtual machine;
Wherein, first virtual machine, second virtual machine and the 3rd virtual machine are application container Engine Docker.
2. method according to claim 1, it is characterised in that also include:
It is empty that any two in first virtual machine, second virtual machine and the 3rd virtual machine is set Access rights between plan machine.
3. method according to claim 2, it is characterised in that it is described will deployment Moodle platforms Required application server is set up in the first virtual machine, including:
Application server needed for deployment Moodle platforms is set up in multiple first virtual machines;
It is described by the Database disposed needed for the Moodle platforms in the second virtual machine, including:
By the Database disposed needed for the Moodle platforms in multiple second virtual machines;
It is described the cache file disposed needed for the Moodle platforms to be set up in the 3rd virtual machine, including:
The cache file disposed needed for the Moodle platforms is set up in multiple 3rd virtual machines.
4. method according to claim 3, it is characterised in that the data base includes read from database With write data base;
Database needed for the Moodle platforms by deployment is in multiple second virtual machines, bag Include:
By the read from database disposed needed for the Moodle platforms and write data base and set up respectively different Second virtual machine.
5. the method according to any one of claim 1-4, it is characterised in that also include:
The file-sharing server disposed needed for the Moodle platforms is set up in the 4th virtual machine.
6. a kind of deployment device of Moodle platforms, it is characterised in that include:
First sets up module, for the application server needed for deployment Moodle platforms to be set up into empty first Plan machine;
Second sets up module, and the Database for disposing needed for the Moodle platforms is empty second Plan machine;
3rd sets up module, for the cache file disposed needed for the Moodle platforms to be set up the 3rd Virtual machine;
Wherein, first virtual machine, second virtual machine and the 3rd virtual machine are application container Engine Docker.
7. the deployment device of Moodle platforms according to claim 6, it is characterised in that also wrap Include:
Access rights setup module, for arranging first virtual machine, second virtual machine and described Access rights in 3rd virtual machine between any two virtual machine.
8. the deployment device of Moodle platforms according to claim 7, it is characterised in that described First sets up module specifically for the application server needed for deployment Moodle platforms is set up multiple the One virtual machine;
Described second sets up module specifically for disposing the Database needed for the Moodle platforms In multiple second virtual machines;
Described 3rd sets up module specifically for the cache file disposed needed for the Moodle platforms is built Stand in multiple 3rd virtual machines.
9. the deployment device of Moodle platforms according to claim 8, it is characterised in that described Data base includes read from database and writes data base;
Described second set up module specifically for by the read from database needed for the deployment Moodle platforms and Write data base to set up respectively in the second different virtual machines.
10. the deployment device of the Moodle platforms according to any one of claim 6-9, its feature exists In also including:
4th sets up module, for the file-sharing server disposed needed for the Moodle platforms to be set up In the 4th virtual machine.
CN201510684624.4A 2015-10-20 2015-10-20 Method and device for deploying Moodle platform Pending CN106598634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510684624.4A CN106598634A (en) 2015-10-20 2015-10-20 Method and device for deploying Moodle platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510684624.4A CN106598634A (en) 2015-10-20 2015-10-20 Method and device for deploying Moodle platform

Publications (1)

Publication Number Publication Date
CN106598634A true CN106598634A (en) 2017-04-26

Family

ID=58555253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510684624.4A Pending CN106598634A (en) 2015-10-20 2015-10-20 Method and device for deploying Moodle platform

Country Status (1)

Country Link
CN (1) CN106598634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483225A (en) * 2017-07-04 2017-12-15 北京奥鹏远程教育中心有限公司 Docker application process and device in education cloud platform
CN107493344A (en) * 2017-08-29 2017-12-19 郑州云海信息技术有限公司 A kind of method and system of web access Docker containers

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617034A (en) * 2013-11-21 2014-03-05 安徽农业大学 Intelligent course website generating system on basis of access of multiple terminals

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617034A (en) * 2013-11-21 2014-03-05 安徽农业大学 Intelligent course website generating system on basis of access of multiple terminals

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曾棕根: "一种基于LNMP的Moodle 2分布式计算架构", 《计算机时代》 *
邱桂华: "Moodle平台在虚拟机VmWare下的实践与应用", 《湖南农机》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483225A (en) * 2017-07-04 2017-12-15 北京奥鹏远程教育中心有限公司 Docker application process and device in education cloud platform
CN107483225B (en) * 2017-07-04 2020-11-13 北京奥鹏远程教育中心有限公司 Application method and device of Docker on education cloud platform
CN107493344A (en) * 2017-08-29 2017-12-19 郑州云海信息技术有限公司 A kind of method and system of web access Docker containers

Similar Documents

Publication Publication Date Title
JP6302049B2 (en) Data allocation based on hardware failure
Murthy et al. Apache Hadoop YARN: moving beyond MapReduce and batch processing with Apache Hadoop 2
CN106716375B (en) File system with every section verification sum
CN102546788B (en) Cloud platform management method and cloud platform
CN103677654B (en) The method and electronic equipment of a kind of data storage
CN102523304B (en) Application cloud platform and implementation method thereof
JP2019517042A (en) Providing access to hybrid applications offline
CN107967159A (en) The method and server of a kind of profileapplied
CN112395039B (en) Method and device for managing Kubernetes cluster
CN102938784A (en) Method and system used for data storage and used in distributed storage system
CN104205115A (en) Using different secure erase algorithms to erase chunks from file associated with different security levels
CN103902632A (en) File system building method and device in key-value storage system, and electronic device
CN104133775A (en) Method and apparatus for managing memory
CN103608798A (en) Clustered file service
CN108614976A (en) Authority configuring method, device and storage medium
CN107544864A (en) A kind of virtual-machine data copy method and virtual-machine data copy system
CN109587151A (en) Access control method, device, equipment and computer readable storage medium
CN106033461A (en) Sensitive information query method and apparatus
CN106326229A (en) Method and device for file storage of embedded system
CN103064957B (en) Realize method and the client of ACL
CN110266792A (en) Address conversion method, device, equipment and computer readable storage medium
CN109446754A (en) The guard method of algorithm, device, equipment and storage medium in intelligent contract
CN106598634A (en) Method and device for deploying Moodle platform
WO2021053422A1 (en) Correspondence of external operations to containers and mutation events
CN101512972A (en) Individuation of space in network circumstance

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: 20170426

RJ01 Rejection of invention patent application after publication