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? ?
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
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~~