1、查看linux的内核版本,系统信息,常用的有四种办法:
# uname -a
# more /etc/issue
# cat /proc/version
# more /etc/redhat-release
2、nginx编译参数:
# /usr/local/nginx/sbin/nginx -V
3、apache查看版本编译参数
apache版本:
# httpd -v
apache编译参数:
# cat /usr/local/apache2/build/config.nice
4、查看php版本及编译参数
php编译参数:
# /usr/local/php/bin/php -i |grep configure
# php -v
5、查看mysql版本及参数
查看mysql版本:
# mysql -v 或者是 --help|grep Distrib来查看;
进入数据库
# mysql > select version(); 或者 status; 或者/s;
mysql编译参数:
# cat "/usr/local/mysql/bin/mysqlbug"|grep configure