Linux下查看nginx,apache,mysql,php的編譯參數

查看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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章