- 1、怎么查看编译mysql时使用了那些参数
- 2、如何查看apache,php,mysql的编译参数
- 3、怎么查mysql5.5,用cmake安装时的编译参数
- 4、如何查看mysql可用编译参数
查看nginx编译参数:/usr/local/nginx/sbin/nginx -V查看apache编译参数:cat /usr/local/apache2/build/config.nice查看mysql编译参数:cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE查看php编译参数:/usr/local/php/bin/php -i | grep configure会有更专业的人来为您解答。如果我的回答没能帮助您,请继续追问。
查看nginx编译参数:/usr/local/nginx/sbin/nginx -V
查看apache编译参数:cat /usr/local/apache2/build/config.nice
查看mysql编译参数:cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE
查看php编译参数:/usr/local/php/bin/php -i | grep configure
# cd /usr/local/mysql5.5/docs
# vim INFO_BIN (其中 Pointer size: 4 一行之后的内容就是所要的参数,需要注意的是,这里的参数的书写格式并不是在执行 cmake 命令时参数的标准格式 ,使用的时候要去掉 :BOOL或 PATH: 等字符)
===== Information about the build process: =====
Build was run at 2014-09-13 23:14:29 on host ‘rhel5-8-1.breeze.com’
Build was done on Linux-2.6.18-308.el5 using i686
Build was done using cmake 3.0.2
===== Compiler flags used (from the ‘sql/’ subdirectory): =====
# compile C with /usr/bin/cc
# compile CXX with /usr/bin/c++
C_DEFINES = -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DMYSQL_SERVER
CXX_DEFINES = -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DMYSQL_SERVER
Pointer size: 4
===== Feature flags used: =====
— Cache values
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql5.5
COMMUNITY_BUILD:BOOL=ON
如何查看mysql可用编译参数
查看nginx编译参数:/usr/local/nginx/sbin/nginx -V查看apache编译参数:cat /usr/local/apache2/build/config.nice查看mysql编译参数:cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE查看php编译参数:/usr/local/php/bin/php -i | grep configure