广告
返回顶部
首页 > 资讯 > 数据库 >Linux下如何查看nginx、apache、mysql和php的编译参数
  • 259
分享到

Linux下如何查看nginx、apache、mysql和php的编译参数

2023-07-04 23:07:52 259人浏览 安东尼
摘要

今天小编给大家分享一下linux下如何查看Nginx、apache、mysql和PHP的编译参数的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们

今天小编给大家分享一下linux下如何查看Nginx、apache、mysqlPHP的编译参数的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。

快速查看服务器软件的编译参数:
1、nginx编译参数:

your_nginx_dir/sbin/nginx -v

2、apache编译参数:

cat your_apache_dir/build/config.nice

3、php编译参数:

your_php_dir/bin/php -i |grep configure

4、Mysql编译参数:

cat your_mysql_dir/bin/mysqlbug |grep configure

以下是完整的实操例子:

查看获取nginx的编译参数:

[root@www ~]# /usr/local/nginx/sbin/nginx -vnginx: nginx version: nginx/1.0.8nginx: 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的编译参数:

[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的编译参数:

[root@www ~]# grep configure /usr/local/mysql/bin/mysqlbug# this is set by configureconfigure_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的编译参数:

[root@www ~]# /usr/local/php5/bin/php -i |grep configureconfigure 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下如何查看nginx、apache、mysql和php的编译参数”这篇文章的所有内容,感谢各位的阅读!相信大家阅读完这篇文章都有很大的收获,小编每天都会为大家更新不同的知识,如果还想学习更多的知识,请关注编程网数据库频道。

您可能感兴趣的文档:

--结束END--

本文标题: Linux下如何查看nginx、apache、mysql和php的编译参数

本文链接: https://www.lsjlt.com/news/348522.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Linux下查看nginx apache mysql php的编译参数
    由于工作的需要,有时候需要在一台不是你参与编译的环境调试环境,这就需要知道nginx,apache,mysql,php的编译参数,以下小方法能快速让你了解默认的服务器里的编译参数快速查看服务器软件的编译参数:1、nginx编译参数:&nbs...
    99+
    2023-06-05
  • Linux下如何查看nginx、apache、mysql和php的编译参数
    今天小编给大家分享一下Linux下如何查看nginx、apache、mysql和php的编译参数的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们...
    99+
    2023-07-04
  • Linux下查看Nginx、Apache、MySQL、PHP的编译参数命令
    Nginx /usr/local/nginx/sbin/nginx -V Apache cat /opt/httpd/build/config.nice MySQL cat /usr/local/mysql/bi...
    99+
    2022-05-20
    Apache Linux MySQL Nginx PHP 命令 编译参数
  • Linux下怎么查看nginx,apache,mysql,php的编译参数
    这篇文章主要介绍“Linux下怎么查看nginx,apache,mysql,php的编译参数”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“Linux下怎么查看ngi...
    99+
    2022-10-19
  • 查看mysqk,php,apache,nginx编译参数
    由于服务器经过多个人维护,没有文档,需要迁移。但是必须知道编译参数才行下面列举几个常用的线上mysql编译参数:cat /usr/local/mysql/bin/mysqlbug|grep configure "./co...
    99+
    2023-01-30
    参数 php mysqk
  • Linux下如何查看.so和可执行文件是否debug编译
    这篇文章将为大家详细讲解有关Linux下如何查看.so和可执行文件是否debug编译,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。如何判断一个.so是否是debug编译的。我记得以前自己是用file来查看...
    99+
    2023-06-09
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作