|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果你学不好的话,你在linux中开发的机会就很少,或者说几乎没有,它的优势就消失了,然后随着时间的流逝,你就会全部忘记她;
疾速检察服务器软件的编译参数:
1、nginx编译参数:
your_nginx_dir/sbin/nginx-v
2、apache编译参数:
catyour_apache_dir/build/config.nice
3、php编译参数:
your_php_dir/bin/php-i|grepconfigure
4、mysql编译参数:
catyour_mysql_dir/bin/mysqlbug|grepconfigure
以下是完全的实操例子:
检察猎取nginx的编译参数:
.代码以下:
[root@www~]#/usr/local/nginx/sbin/nginx-V
nginx:nginxversion:nginx/1.0.8
nginx:builtbygcc4.3.2(Debian4.3.2-1.1)
nginx:configurearguments:Cuser=www-dataCgroup=www-dataCprefix=/usr/local/nginxCwith-http_stub_status_moduleCwith-http_gzip_static_module
检察猎取apache的编译参数:
.代码以下:
[root@www~]#cat/usr/local/apache2/build/config.nice
#!/bin/sh
#
#Createdbyconfigure
"./configure"
"Cprefix=/usr/local/apache2″
"Cenable-so"
"Cenable-modules=all"
"Cenable-mods-shared=all"
"Cenable-layout=Apache"
"Cenable-ssl=static"
"Cwith-ssl=/usr/local/openssl"
"Cenable-rewrite"
"Cenable-suexec"
"Cwith-suexec-logfile=/www/logs/suexec.log"
"Cwith-suexec-uidmin=500″
"Cwith-suexec-gidmin=100″
"Cwith-suexec-caller=nobody"
"Cwith-suexec-docroot=/www"
检察猎取mysql的编译参数:
.代码以下:
[root@www~]#grepconfigure/usr/local/mysql/bin/mysqlbug
#Thisissetbyconfigure
CONFIGURE_LINE="./configureCprefix=/usr/local/mysql4′Csysconfdir=/etcCenable-assemblerCwithout-debugCwith-client-ldflags=-all-staticCwith-mysqld-ldflags=-all-staticClocalstatedir=/www/mysqlCwith-big-tablesCwith-low-memoryCwith-extra-charsets=allCenable-thread-safe-clientCwith-pthreadCwith-unix-socket-path=/tmp/mysql.sock"
参看猎取php的编译参数:
.代码以下:
[root@www~]#/usr/local/php5/bin/php-i|grepconfigure
ConfigureCommand=>./configureCprefix=/usr/local/php5′Cenable-exifCenable-mbstringCwith-iconvCwith-curl=/usrCwith-gdbmCwith-gettextCenable-calendarCenable-magic-quotesCenable-wddxCenable-ftpCenable-inline-optimizationCwith-gd=/usr/localCwith-zlibCenable-gd-native-ttfCwith-t1lib=/usr/localCwith-zlib-dir=/usrCwith-ttfCwith-freetype-dir=/usrCwith-gdCwith-png-dir=/usrCwith-jpeg-dir=/usrCwith-mysql=/usr/local/mysql4′Cenable-force-cgi-redirectCwith-apxs2=/usr/local/apache2/bin/apxsCwith-pdo-mysql=/usr/local/mysql4′Cenable-socketsCwith-openssl=/usr/local/openssl
如果你让他去用linux搭建一个web服务器,做一个linux网关,他就什么都不会了.他们把时间都浪费在了版本的转换上了. |
|