olga 发表于 2018-9-29 12:07:46

linux下查看nginx,apache,mysql,php的编译参数

  搜集整理于此
  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来查看;
  进入数据库
  select version(); 或者status;或者/s;
  mysql编译参数:
  # cat "/usr/local/mysql/bin/mysqlbug"|grep configure

页: [1]
查看完整版本: linux下查看nginx,apache,mysql,php的编译参数