We often have to look at the programs that we've already installed. Some of the compilation parameters he had at the time, especially for the installation of multiple servers, and to ensure that the software version and installation parameters on other servers must be consistent, this view is necessary. To see the compilation parameters of each program, the command is as follows:
To view nginx compilation parameters:C + + Code copy content to clipboard
- /usr/local/nginx/sbin/nginx-v
To view Apache compilation parameters:C + + Code copy content to clipboard
- Cat/usr/local/apache/build/config.nice
To view PHP compilation parameters:C + + Code copy content to clipboard
- /usr/local/php/bin/php-i |grep Configure
To view MySQL compilation parameters:C + + Code copy content to clipboard
- Cat/usr/local/mysql/bin/mysqlbug|grep Configure
How to view their compilation parameters for an already installed Apache/php/mysql/nginx program