Is the environment (nginx plus php) required for web services in the production environment compiled and installed, or is yum installed?

  question

I believe many small partners have the same question as me. Whether the www service in the production environment is yum or compiled and installed must be very tangled (skipping old hand). I will express my personal views and brainstorm to find a more suitable deployment scheme (for small and medium-sized enterprises)

1. Problems in compilation and deployment

  • The source code version upgrade is troublesome, the compilation process takes a long time, and the efficiency is low.

  • If compilation source code is not optimized properly, it is not as good as yum’s performance.

2. yum, Package Management and Installation Issues

  • The version of official source-related services is not updated in time to keep up with the new version (correctness of third-party source warehouse to be verified)

  • The installation of yum results in scattered directory structure of services, which is not conducive to maintenance (except for old hand)

  • It is not convenient to customize the corresponding optimization parameters.

The author basically chose yum installation now (it is suggested to study the directory structure of yum installation services in depth for easy mainte nance) . The reason is that the author has obsessive-compulsive disorder of updating and will update the corresponding services regularly (it is a disease, I don’t know whether there is any medicine to cure). Because his yum update has also dug a lot of holes, but it has also brought some benefits to the author (for example, zabbix, jenkins, gitlab and other services). Through yum or package management installation, the corresponding services will be updated regularly in the later period, and the new functional features of the corresponding services can be used in a timely manner.

The installation of yum results in scattered directory structure of services, which is not conducive to maintenance (except for old hand)

Directly using the command, you can view the directory structure of yum installation.

yum -ql httpd

-divide-divide-line-
Docker is quite popular. Now you can use docker!