发布网友 发布时间:2022-04-19 14:42
共3个回答
热心网友 时间:2022-04-07 14:56
查看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查看apache版本
/usr/sbin/apachectl -v httpd -v 安装目录,使用apachectl -vmysql版本查看mysql –help | grep Distrib mysql -V mysql/bin/mysql -u root -p -e “select version()” /bin mysqladmin version 查看php版本php -v phpinfo(); 查看nginx版本nginx -V Linux下查看nginx,apache,mysql,php的编译参数 1、nginx编译参数:built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
configure arguments: --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_mole --with-openssl=/usr/local/openssl
2、apache编译参数:
#! /bin/sh
# Created by configure
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-included-apr" \
"--enable-so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--disable-userdir" \
"$@"
# This is set by configure
CONFIGURE_LINE="./configure '--prefix=/usr/local/MySQL' '--localstatedir=/var/lib/mysql' '--with-comment=Source' '--with-server-suffix=-H863' '--with-mysqld-user=mysql' '--without-debug' '--with-big-tables' '--with-charset=gbk' '--with-collation=gbk_chinese_ci' '--with-extra-charsets=all' '--with-pthread' '--enable-static' '--enable-thread-safe-client' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--enable-assembler' '--without-isam' '--without-innodb' '--without-ndb-debug'"
热心网友 时间:2022-04-07 16:14
rpm -qa|grep php-mysql热心网友 时间:2022-04-07 17:49
rhel5的系统光盘里就有这些包都在Server目录下