ITPub博客

首页 > IT职业 > IT图书 > Linux下查看nginx,apache,mysql,php的编译参数

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

IT图书 作者:bigstarr 时间:2021-09-09 09:19:44 0 删除 编辑

查看apache版本

 /usr/sbin/apachectl -v

httpd -v

安装目录,使用apachectl -v

 

查看mysql版本

mysql –help | grep Distrib
mysql -V
mysql/bin/mysql -u root -p -e “select version()”

/bin mysqladmin version

 

查看linux版本

 lsb_release -a

head -n1 /etc/issue
cat /etc/redhat-release (redhat)

rpm -q redhat-release        (redhat)

 

查看内核版本

cat /proc/version

uname -a
uname -r

 

查看php版本

php -v

phpinfo();

 

查看nginx版本

nginx -V

 

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

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

2、apache编译参数:
# cat /usr/local/apache/build/config.nice

#/usr/local/apache/bin/apachectl -V

#cat $apachehome$/build/config.nice

3、php编译参数:
# /usr/local/php/bin/php -i |grep configure

#$PHP$/bin/php -i | grep configure

# /usr/local/php/bin/php-config 

4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure

 

5、smartd编译参数:

#/usr/sbin/smartctl -V|grep configure


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3330/viewspace-2809489/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-14

  • 博文量
    83
  • 访问量
    1109