Linux下查看nginx apache mysql php的編譯參數(shù)
更新時間:2014年03月03日 16:38:37 作者:
由于工作的需要,有時候需要在一臺不是你參與編譯的環(huán)境調(diào)試環(huán)境,這就需要知道nginx,apache,mysql,php的編譯參數(shù),以下小方法能快速讓你了解默認的服務器里的編譯參數(shù)
快速查看服務器軟件的編譯參數(shù):
1、nginx編譯參數(shù):
your_nginx_dir/sbin/nginx -v
2、apache編譯參數(shù):
cat your_apache_dir/build/config.nice
3、php編譯參數(shù):
your_php_dir/bin/php -i |grep configure
4、mysql編譯參數(shù):
cat your_mysql_dir/bin/mysqlbug |grep configure
以下是完整的實操例子:
查看獲取nginx的編譯參數(shù):
復制代碼 代碼如下:
[root@www ~]# /usr/local/nginx/sbin/nginx -V
nginx: nginx version: nginx/1.0.8
nginx: built by gcc 4.3.2 (Debian 4.3.2-1.1)
nginx: configure arguments: –user=www-data –group=www-data –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_gzip_static_module
查看獲取apache的編譯參數(shù):
復制代碼 代碼如下:
[root@www ~]# cat /usr/local/apache2/build/config.nice
#! /bin/sh
#
# Created by configure
"./configure" \
"–prefix=/usr/local/apache2″ \
"–enable-so" \
"–enable-modules=all" \
"–enable-mods-shared=all" \
"–enable-layout=Apache" \
"–enable-ssl=static" \
"–with-ssl=/usr/local/openssl" \
"–enable-rewrite" \
"–enable-suexec" \
"–with-suexec-logfile=/www/logs/suexec.log" \
"–with-suexec-uidmin=500″ \
"–with-suexec-gidmin=100″ \
"–with-suexec-caller=nobody" \
"–with-suexec-docroot=/www" \
查看獲取mysql的編譯參數(shù):
復制代碼 代碼如下:
[root@www ~]# grep configure /usr/local/mysql/bin/mysqlbug
# This is set by configure
CONFIGURE_LINE="./configure '–prefix=/usr/local/mysql4′ '–sysconfdir=/etc' '–enable-assembler' '–without-debug' '–with-client-ldflags=-all-static' '–with-mysqld-ldflags=-all-static' '–localstatedir=/www/mysql' '–with-big-tables' '–with-low-memory' '–with-extra-charsets=all' '–enable-thread-safe-client' '–with-pthread' '–with-unix-socket-path=/tmp/mysql.sock'"
# This is set by configure
CONFIGURE_LINE="./configure '–prefix=/usr/local/mysql4′ '–sysconfdir=/etc' '–enable-assembler' '–without-debug' '–with-client-ldflags=-all-static' '–with-mysqld-ldflags=-all-static' '–localstatedir=/www/mysql' '–with-big-tables' '–with-low-memory' '–with-extra-charsets=all' '–enable-thread-safe-client' '–with-pthread' '–with-unix-socket-path=/tmp/mysql.sock'"
參看獲取php的編譯參數(shù):
復制代碼 代碼如下:
[root@www ~]# /usr/local/php5/bin/php -i |grep configure
Configure Command => './configure' '–prefix=/usr/local/php5′ '–enable-exif' '–enable-mbstring' '–with-iconv' '–with-curl=/usr' '–with-gdbm' '–with-gettext' '–enable-calendar' '–enable-magic-quotes' '–enable-wddx' '–enable-ftp' '–enable-inline-optimization' '–with-gd=/usr/local' '–with-zlib' '–enable-gd-native-ttf' '–with-t1lib=/usr/local' '–with-zlib-dir=/usr' '–with-ttf' '–with-freetype-dir=/usr' '–with-gd' '–with-png-dir=/usr' '–with-jpeg-dir=/usr' '–with-mysql=/usr/local/mysql4′ '–enable-force-cgi-redirect' '–with-apxs2=/usr/local/apache2/bin/apxs' '–with-pdo-mysql=/usr/local/mysql4′ '–enable-sockets' '–with-openssl=/usr/local/openssl'
您可能感興趣的文章:
- linux下安裝apache與php;Apache+PHP+MySQL配置攻略
- linux Apache CGI 安裝配置
- linux下apache開啟url重寫的方法(詳細說明)
- linux apache下虛擬主機配置方法
- Linux下apache日志分析與狀態(tài)查看方法
- Linux下Apache安裝/增加mod_rewrite模塊的方法
- 阿里云linux服務器下安裝Apache的簡單方法
- 禁止IP訪問網(wǎng)站的多種方法分享(linux,php,nginx,apache)
- 在Linux系統(tǒng)上查看Apache服務器的錯誤日志
- CentOS(Linux)下的apache服務器配置與管理方法分享
- linux下apache、mysql、php安裝配置詳細筆記
- CentOS Linux 下配置Apache2+PHP5+MySQL5+GD庫的方法
- centos下yum搭建安裝linux+apache+mysql+php環(huán)境的方法
- Linux下PHP+MYSQL+APACHE配置過程 (摘)
- centos下yum搭建安裝linux+apache+mysql+php環(huán)境教程
- Linux下將Python的Django項目部署到Apache服務器
- Linux下 php5 MySQL5 Apache2 phpMyAdmin ZendOptimizer安裝與配置[圖文]
- 解決Linux+Apache服務器URL區(qū)分大小寫問題
相關文章
linux VPS主機上備份網(wǎng)站和數(shù)據(jù)庫的方法
現(xiàn)在看到越來越多的VPSer開始使用VPS,在使用VPS的時候一個很重要的任務就是VPS提供備份,雖然一些IDC也提供VPS的備份服務,但要不就是收費,都不太適合我們這些VPSer們使用。2010-12-12

