查看Nginx安装编译参数
查看
Nginx
安装编译参数, 可以使用-V
选项
[root@lightserver ~]$ 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
[root@lightserver ~]$ ps -aux | grep mysql
or
[root@lightserver ~]$ 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
来过虑
[root@lightserver ~]$ 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'