linux下查看Nginx,Apache,Mysql,PHP的编译参数

linux下查看Nginx,Apache,Mysql,PHP的编译参数

1、Nginx编译参数:
/usr/local/nginx/sbin/nginx -V

2、Apache查看版本编译参数
Apache版本
httpd -v

Apache编译参数:
cat /usr/local/apache2/build/config.nice

3、查看php版本及编译参数
php编译参数:
/usr/local/php/bin/php -i |grep configure

php -v

4、查看mysql版本及参数
查看mysql版本:
mysql -V
mysql Ver 14.14 Distrib 5.6.38, for Linux (x86_64) using EditLine wrapper
或者
mysql --help|grep Distrib
mysql Ver 14.14 Distrib 5.6.38, for Linux (x86_64) using EditLine wrapper

或者登录执行status;
MySQL [mysql]> status;
--------------
mysql Ver 14.14 Distrib 5.6.38, for Linux (x86_64) using EditLine wrapper

Connection id: 10738
Current database: mysql
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.6.38-log Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /tmp/mysql.sock
Uptime: 7 days 20 hours 34 min 26 sec

Threads: 19 Questions: 4301148 Slow queries: 0 Opens: 234 Flush tables: 1 Open tables: 227 Queries per second avg: 6.335
--------------

评论已关闭。