Home  >  Article  >  Backend Development  >  Server - How to deploy the same self-compiled php7 on multiple machines?

Server - How to deploy the same self-compiled php7 on multiple machines?

WBOY
WBOYOriginal
2016-08-04 09:19:121085browse

For example, I have several cloud servers, and I want to deploy my own compiled php7 to these machines. I don’t want to compile and install php7 on these machines, so what should I do so that these machines all have the same environment of php7? ?

Reply content:

For example, I have several cloud servers, and I want to deploy my own compiled php7 to these machines. I don’t want to compile and install php7 on these machines, so what should I do so that these machines all have the same environment of php7? ?

Docker

If the distribution version is the same (Linux), you can compile it on one VPS first, then package the compiled files (deb/rpm) and install it on other VPS.

vagrant is also available

If you are an operation and maintenance person and have the ability to write your own shell scripts, then it is recommended to write an environment that can be installed with one click. Refer to this http://lnmp.org/. The advantage is that it does not rely on infrastructure, whether it is a cloud service or Self-built computer room, managed hosting, VPS server, etc. are all available

If you are using Alibaba Cloud and you are not professional in operation and maintenance, or you are just a back-end person who knows a little bit about Linux, then it is recommended

Custom image: generated based on user system snapshot, including initial system environment, application environment and related software configuration. Choose a custom image to create a cloud server to save you time on repeated configurations.

There are some other options
Server - How to deploy the same self-compiled php7 on multiple machines?

One of the uses of

docker seems to be the case of LZ. It is worth studying. It is also equivalent to mastering one more skill~~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn