您好,欢迎访问三七文档
当前位置:首页 > 财经/贸易 > 资产评估/会计 > 查看系统中常用软件的编译参数-v01-BY-Stephen
查看CentOS系统中的常用软件的编译参数,本文未完成,处于待完善状态。文本版本号:version0.1文本修改时间:2015年1月9日0:06:48目录查看系统安装的软件:...........................................................................................................1查看nginx的编译参数:........................................................................................................1查看php的编译参数:..........................................................................................................3查看mysql的编译参数:.......................................................................................................3查看系统安装的软件:yumgrouplist查看各种软件的编译参数:※前提是:软件的安装方式为编译安装。查看nginx的编译参数:/application/nginx/sbin/nginx-V[root@lnmp~]#/application/nginx/sbin/nginx-Vnginxversion:nginx/1.6.2builtbygcc4.4.720120313(RedHat4.4.7-4)(GCC)TLSSNIsupportenabledconfigurearguments:--user=nginx--group=nginx--prefix=/application/nginx--with-http_stub_status_module--with-http_ssl_module[root@lnmp~]#查看apache的编译参数#①/application/apache/bin/apachectl-V##此命令可以查看一部分,但是不太全。[root@lamp~]#/application/apache/bin/apachectl-VServerversion:Apache/2.2.27(Unix)Serverbuilt:Oct16201401:50:29Server'sModuleMagicNumber:20051115:33Serverloaded:APR1.5.0,APR-Util1.5.3Compiledusing:APR1.5.0,APR-Util1.5.3Architecture:64-bitServerMPM:Workerthreaded:yes(fixedthreadcount)forked:yes(variableprocesscount)Servercompiledwith....-DAPACHE_MPM_DIR=server/mpm/worker-DAPR_HAS_SENDFILE-DAPR_HAS_MMAP-DAPR_HAVE_IPV6(IPv4-mappedaddressesenabled)-DAPR_USE_SYSVSEM_SERIALIZE-DAPR_USE_PTHREAD_SERIALIZE-DSINGLE_LISTEN_UNSERIALIZED_ACCEPT-DAPR_HAS_OTHER_CHILD-DAP_HAVE_RELIABLE_PIPED_LOGS-DDYNAMIC_MODULE_LIMIT=128-DHTTPD_ROOT=/application/apache2.2.27-DSUEXEC_BIN=/application/apache2.2.27/bin/suexec-DDEFAULT_SCOREBOARD=logs/apache_runtime_status-DDEFAULT_ERRORLOG=logs/error_log-DAP_TYPES_CONFIG_FILE=conf/mime.types-DSERVER_CONFIG_FILE=conf/httpd.conf#②通过查看apache安装目录下的build目录下的config.nice就比较清晰了。cat/application/apache/build/config.nice[root@lamp~]#cat/application/apache/build/config.nice#!/bin/sh##Createdbyconfigure./configure\--prefix=/application/apache2.2.27\--enable-deflate\--enable-expires\--enable-headers\--enable-modules=most\--enable-so\--with-mpm=worker\--enable-rewrite\$@[root@lamp~]#查看php的编译参数:/application/php/bin/php-i|grepconfigure##通过php-i参数可以看到很多的信息,过滤configure即可看到详细的编译参数。[root@lamp~]#/application/php/bin/php-i|grepconfigureConfigureCommand='./configure''--prefix=/application/php5.3.27''--with-apxs2=/application/apache/bin/apxs''--with-mysql=/application/mysql''--with-xmlrpc''--with-openssl''--with-zlib''--with-freetype-dir''--with-gd''--with-jpeg-dir''--with-png-dir''--with-iconv=/usr/local/libiconv''--enable-short-tags''--enable-sockets''--enable-zend-multibyte''--enable-soap''--enable-mbstring''--enable-static''--enable-gd-native-ttf''--with-curl''--with-xsl''--enable-ftp''--with-libxml-dir'PHPWarning:Unknown:Itisnotsafetorelyonthesystem'stimezonesettings.Youare*required*tousethedate.timezonesettingorthedate_default_timezone_set()function.Incaseyouusedanyofthosemethodsandyouarestillgettingthiswarning,youmostlikelymisspelledthetimezoneidentifier.Weselected'Asia/Chongqing'for'CST/8.0/noDST'insteadinUnknownonline0[root@lamp~]#查看mysql的编译参数:5.5以下的版本:①通过过滤/application/mysql/bin/mysqlbug中的CONFIGURE_LINE来查看。grepCONFIGURE_LINE/application/mysql/bin/mysqlbug下图即为mysql5.1.27的编译参数的查看:②5.5及以上的版本(用cmake安装的mysql):可以进到mysql源码目录下,执行cmake.-L查看当时编译时生成的的cache。[root@mysql~]#cd/home/thatsit/tools/[root@mysqltools]#cdmysql-5.5.32[root@mysqlmysql-5.5.32]#pwd/home/thatsit/tools/mysql-5.5.32[root@mysqlmysql-5.5.32]#cmake.-L--Runningcmakeversion2.8.8--MySQL5.5.32--Packagingas:mysql-5.5.32-Linux-x86_64--Configuringdone--Generatingdone--Buildfileshavebeenwrittento:/home/thatsit/tools/mysql-5.5.32--CachevaluesCMAKE_BUILD_TYPE:STRING=RelWithDebInfoCMAKE_INSTALL_PREFIX:PATH=/application/mysql-5.5.32COMMUNITY_BUILD:BOOL=ONENABLED_PROFILING:BOOL=ONENABLE_DEBUG_SYNC:BOOL=ONENABLE_GCOV:BOOL=OFFINSTALL_LAYOUT:STRING=STANDALONEMYSQL_DATADIR:PATH=/application/mysql-5.5.32/dataMYSQL_MAINTAINER_MODE:BOOL=OFFWITHOUT_EXAMPLE_STORAGE_ENGINE:BOOL=ONWITHOUT_PARTITION_STORAGE_ENGINE:BOOL=ONWITH_ARCHIVE_STORAGE_ENGINE:BOOL=OFFWITH_BLACKHOLE_STORAGE_ENGINE:BOOL=ONWITH_DEBUG:BOOL=0WITH_EMBEDDED_SERVER:BOOL=1WITH_EXTRA_CHARSETS:STRING=allWITH_FEDERATED_STORAGE_ENGINE:BOOL=ONWITH_INNOBASE_STORAGE_ENGINE:BOOL=ONWITH_LIBEDIT:BOOL=OFFWITH_LIBWRAP:BOOL=OFFWITH_PERFSCHEMA_STORAGE_ENGINE:BOOL=ONWITH_PIC:BOOL=OFFWITH_READLINE:BOOL=1WITH_SSL:STRING=noWITH_UNIT_TESTS:BOOL=ONWITH_VALGRIND:BOOL=OFFWITH_ZLIB:STRING=bundled[root@mysqlmysql-5.5.32]###mancmake-L[A][H]Listnon-advancedcachedvariables.ListcachevariableswillrunCMakeandlistallthevari-ablesfromtheCMakecachethatarenotmarkedasINTERNALorADVANCED.ThiswilleffectivelydisplaycurrentCMakesettings,whichcanbethenchangedwith-Doption.Changingsomeofthevariablemayresultinmorevariablesbeingcre-ated.IfAisspecified,thenitwilldisplayalsoadvancedvariables.IfHisspecified,itwillalsodisplayhelpforeachvariable.##L参数后可以加A参数,显示扩展的变量;加H参数,同时显示每个变量的帮助信息[root@mysqlmysql-5
本文标题:查看系统中常用软件的编译参数-v01-BY-Stephen
链接地址:https://www.777doc.com/doc-2291912 .html