有時候我們管理線上伺服器時,想看看 nginx,apache,mysql,php 編譯引數,可以用的方法有,
1.nginx編譯引數
2.apache編譯引數
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[root@web ~]
# cat /usr/local/apache2/build/config.nice
#! /bin/sh
#
# created by configure
"./configure"
\
"--prefix=/usr/local/apache2"
\
"--enable-modules=so"
\
"--enable-rewrite"
\
"--enable-deflate"
\
"--disable-feature"
\
"--disable-access"
\
"--disable-auth"
\
"--disable-charset-lite"
\
"--disable-include"
\
"--disable-log-config"
\
"--disable-env"
\
"--disable-setenvif"
\
"--disable-status"
\
"--disable-autoindex"
\
"--disable-asis"
\
"--disable-cgid"
\
"--disable-cgi"
\
"--disable-negotiation"
\
"--disable-imap"
\
"--disable-actions"
\
"--disable-userdir"
\
"$@"
[root@web ~]
#
4.php編譯引數
1
2
3
root@web ~]
# /usr/local/php5/bin/php -i | grep configure
configure command =>
'./configure'
'--prefix=/usr/local/php5'
'--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysql'
'--with-pdo-mysql'
'--without-pear'
'--enable-sockets'
'--enable-pcntl'
'--enable-shared'
'--enable-static'
'--enable-shmop'
'--enable-sysvshm'
'--with-gd'
'--with-png-dir'
'--with-zlib'
'--enable-gd-native-ttf'
'--enable-zip'
'--enable-mbstring'
'--with-freetype-dir=/usr/include/freetype2/freetype/'
'--with-openssl'
'--with-libxml-dir'
'--enable-calendar'
'--with-curl'
'--enable-exif'
'--with-jpeg-dir'
'--with-xsl'
'--enable-zip'
'--enable-bcmath'
'--with-mcrypt'
[root@web ~]
#
5.mysql編譯引數
(1).mysql rpm安裝
1
cat
"/usr/bin/mysqlbug"
|
grep
configure
(2).mysql原始碼包安裝
1
2
3
4
[root@web ~]
# cat /usr/local/mysql/bin/mysqlbug|grep configure
# this is set by configure
configure_line=
"./configure '--prefix=/usr/local/mysql' '--without-debug' '--with-extra-charsets=utf8' '--with-extra-charsets=complex' '--enable-assembler' '--without-innodb' '--with-pthread' '--enable-thread-safe-client' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--enable-pdo'"
[root@web ~]
#
檢視apache mysql php編譯引數
apache編譯引數 通過編譯安裝資料夾下的cat config.status檔案進行檢視 或到安裝目錄如 usr local apache 2 build下的config.nice檔案檢視。php編譯引數 直接通過命令 usr local php bin php i grep configure ...
檢視編譯安裝引數
檢視mysql編譯引數 mysql5.4及之前版本檢視編譯安裝引數,進入到mysql安裝目錄的bin下面 cat usr local mysql bin mysqlbug grep configuremysql5.5及以上版本檢視編譯安裝引數,進入到mysql安裝目錄的docs下面 usr loca...
檢視lnmp的編譯引數和版本
一 檢視nginx的編譯引數 usr local nginx sbin nginx v檢視nginx的版本號 usr local nginx sbin nginx v二 檢視php的編譯引數 usr local php bin php i grep i configure檢視php的版本號 usr ...