LNMP 環境檢視各個軟體編譯選項
阿新 • • 發佈:2018-12-11
檢視Nginx安裝編譯引數
檢視
Nginx
安裝編譯引數, 可以使用-V
選項
[[email protected] ~]$ nginx -V
nginx version: nginx/1.15.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
built with OpenSSL 1.1.1-pre8 (beta) 20 Jun 2018
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx --conf-path= /etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_dav_module --with-http_flv_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_stub_status_module --with-http_sub_module --with-http_random_index_module --with-http_degradation_module --with-http_secure_link_module --with-http_gzip_static_module --with-http_perl_module --add-module= ../nginx-sticky-module --with-pcre=../pcre-8.42 --with-zlib=../zlib-1.2.11 --with-openssl=../openssl-1.1.1-pre8 --with-debug --with-file-aio --with-mail --with-mail_ssl_module --http-client-body-temp-path=/var/tmp/nginx/client_body --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path= /var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-stream --with-ld-opt=-Wl,-E
檢視MySQL安裝編譯引數
檢視
MySQL
安裝編譯引數, 可能通過檢視程序命令ps -ef | grep mysql
或ps -aux | grep mysql
[[email protected] ~]$ ps -aux | grep mysql
or
[[email protected] ~]$ ps -ef | grep mysql
mysql 1301 849 0 Sep16 ? 00:02:57 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --wsrep_on=1 --wsrep_provider=none --log-error=/data/mysql/lightserver.cn.err --pid-file=/data/mysql/lightserver.cn.pid
檢視PHP安裝編譯引數
檢視
PHP
安裝編譯引數, 可能通過php
選項-ini
再加grep
來過慮
[[email protected] ~]$ find | php -ini | grep configure
Configure Command => './configure' '--prefix=/usr/local/php' '--exec-prefix=/usr/local/php' '--bindir=/usr/local/php/bin' '--sbindir=/usr/local/php/sbin' '--includedir=/usr/local/php/include' '--libdir=/usr/local/php/lib/php' '--mandir=/usr/local/php/php/man' '--with-config-file-path=/usr/local/php/etc' '--with-mysql-sock=/var/run/mysql/mysql.sock' '--with-mhash' '--with-openssl' '--with-mysqli=shared,mysqlnd' '--with-pdo-mysql=shared,mysqlnd' '--with-gd' '--with-iconv' '--with-zlib' '--enable-zip' '--enable-inline-optimization' '--disable-debug' '--disable-rpath' '--enable-shared' '--enable-xml' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-mbregex' '--enable-mbstring' '--enable-ftp' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-soap' '--without-pear' '--with-gettext' '--enable-session' '--with-curl' '--with-jpeg-dir' '--with-freetype-dir' '--enable-opcache' '--enable-fpm' '--with-fpm-user=nginx' '--with-fpm-group=nginx' '--without-gdbm' '--enable-fast-install' '--disable-fileinfo'