6
2011
查看apache,nginx,mysql,linux,php版本
查看apache版本
/usr/sbin/apachectl -v
httpd -v
安装目录,使用apachectl -c
mysql版本查看
mysql –help | grep Distrib
mysql -V
mysql/bin/mysql -u root -p -e “select version()”
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)
cat /etc/redhat-release (redhat)
rpm -q redhat-release (redhat)
查看内核版本
cat /proc/version
uname -a
uname -r
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
3、php编译参数:
# /usr/local/php/bin/php -i |grep configure
4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
#/usr/local/nginx/sbin/nginx -V
2、apache编译参数:
# cat /usr/local/apache/build/config.nice
3、php编译参数:
# /usr/local/php/bin/php -i |grep configure
4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
本文连接地址: http://www.fresker.com/old2/archives/381 (转载注明出处)
目前暂无评论