LAMP、LNMP环境编译参数查询

Apache编译参数:
[[email protected] data]# cat /application/apache/build/config.nice 
#! /bin/sh
#
# Created by configure

"./configure" "--prefix=/application/apache2.2.27" "--enable-deflate" "--enable-expires" "--enable-headers" "--enable-modules=most" "--enable-so" "--with-mpm=worker" "--enable-rewrite" "[email protected]"
版本:
[[email protected] data]# /application/apache/bin/apachectl -v
Server version: Apache/2.2.27 (Unix)
Server built:   Aug 22 2016 17:28:28

Nginx编译参数及版本:
[[email protected] ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.6.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) 
TLS SNI support enabled
configure arguments: 
--user=nginx 
--group=nginx 
--prefix=/application/nginx1.6.2 
--with-http_stub_status_module 
--with-http_ssl_module

MySQL:
[[email protected] ~]# grep CONFIGURE_LINE /application/mysql/bin/mysqlbug
CONFIGURE_LINE=""
`test -n "$CONFIGURE_LINE"  && echo "Configure command: $CONFIGURE_LINE"`

版本:
[[email protected] ~]# mysql -uroot -p888888
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.32-log Source distribution

PHP详细的参数:
[[email protected] ~]# /application/php/bin/php -i|grep config
Configure Command =>  
‘./configure‘  
‘--prefix=/application/php5.3.27‘ 
‘--with-mysql=/application/mysql‘ 
‘--with-iconv-dir=/usr/local/libiconv‘ 
‘--with-freetype-dir‘ ‘--with-jpeg-dir‘ 
‘--with-png-dir‘ ‘--with-zlib‘ 
‘--with-libxml-dir=/usr--enable-xml‘ 
‘--disable-rpath‘ 
‘--enable-safe-mode‘ 
‘--enable-bcmath‘ 
‘--enable-shmop‘ 
‘--enable-sysvsem‘ 
‘--enable-inline-optimization‘ 
‘--with-curl‘ ‘--with-curlwrappers‘ 
‘--enable-mbregex‘ ‘--enable-fpm‘ 
‘--enable-mbstring‘ 
‘--with-mcrypt‘ 
‘--with-gd‘ 
‘--enable-gd-native-ttf‘ 
‘--with-openssl‘ 
‘--with-mhash‘ 
‘--enable-pcntl‘ 
‘--enable-sockets‘ 
‘--with-xmlrpc‘ 
‘--enable-zip‘ 
‘--enable-soap‘ 
‘--enable-short-tags‘ 
‘--enable-zend-multibyte‘ 
‘--enable-static‘ 
‘--with-xsl‘ 
‘--with-fpm-user=nginx‘ 
‘--with-fpm-group=nginx‘ 
‘--enable-ftp‘
PHP Warning:  Unknown: It is not safe to rely on the system‘s timezone settings.
 You are *required* to use the date.timezone setting or the date_default_timezone_set() function. 
 In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 
 We selected ‘Asia/Chongqing‘ for ‘CST/8.0/no DST‘ instead in Unknown on line 0

版本:
[[email protected] data]#/application/php/bin/php -v
PHP 5.3.27 (cli) (built: Jul  9 2016 20:18:26)
时间: 2024-08-07 15:23:39

LAMP、LNMP环境编译参数查询的相关文章

获取LAMP,LNMP环境编译参数配置

备注:%服务器名称%     服务器名称为实际安装路径 查看nginx编译参数:# %nginx%/sbin/nginx -V 查看mysql编译参数:cat %mysql%/bin/mysqlbug | grep CONFIGURE_LINE 查看apache编译参数:cat %apache%/build/config.nice 查看php编译参数:%php%/bin/php -i | grep configure

LAMP,LNMP 环境编译参数配置详解

1)查看 web 服务的编译参数 a.查看 nginx 的编译参数: /home/oldboy/run/nginx/sbin/nginx -V 范例 1: [[email protected] ~]# /home/oldboy/run/nginx/sbin/nginx -V nginx version: nginx/0.8.50 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configure arguments: --prefix=/app/ng

lamp or lnmp 环境搭建之独立安装mysql数据库

lamp or lnmp 环境搭建,如果mysql 是独立安装的则需要授权: 单独一台服务器独立安装mysql 安装后,优化服务器. 授权 实例如下: 创建用户 CREATE USER demo IDENTIFIED BY "passwd123"; 授权使用mysql数据库下面的所有表 GRANT ALL PRIVILEGES ON mysql.* TO 'demo'@'%'IDENTIFIED BY 'passwd123'WITH GRANT OPTION; FLUSH PRIVIL

LAMP坏境和LNMP环境安装Nagios4.1.1和基本配置

----------------------------------------以下内容为笔者生产环境的监控,安装都是经过一步步测试的-------------------------------- 环境:LAMP :CentOS 6.8  .Apache 2.4. Mysql 5.6 . PHP 5.6.22 LNMP: CentOS 6.8  .Nginx 1.10. Mysql 5.6 . PHP 5.6.22 软件:Nagios4.1.1 .NRPE2.15.Nagios-plugins

源码搭建lamp和lnmp环境

1: lamp和lnmp解释 lampn分别代表:linux.apache.mysql.php.nginx.安装大概思路如下: linux环境安装就省略了. 1:mysql安装在两个环境都一样的. 2: lnmp环境下nginx的安装. 3: lamp环境下apache的安装. 4: php在安装的时候应该算最复杂的了吧.其中,针对不同环境的编译选项不同.apache的编译选项--with-apxs2=/usr/local/apache2/bin/apxs,这里apache的安装目录在/usr/

debian7.7快速构建lamp和lnmp环境

debian快速构建lamp和lnmp环境 操作系统环境:debian7.7 安装lamp环境 apt-get install apache2 mysql-server php5 php-pear php5-mysql php5-gd php5-curl php5-common php5-dev php5-xcache -y echo "<?php phpinfo(); ?>" > /var/www/index.php [email protected]:~# cur

LAMP和LNMP环境PHP缓存加速器的原理

LAMP环境PHP缓存加速器的原理      LAMP=Linux+Apache+MySQL+PHP 1. Apache接收客户的PHP程序请求,并根据规则过滤之. 2.Apache将PHP程序请求传送给PHP处理模块libphp5.so. 3.PHP引擎定位磁盘上的PHP文件,并将其加载到内存中解析. 4.PHP处理模块libphp5.so将PHP源代码编译成为操作码. 5.PHP处理模块libphp5.so执行操作码,然后把操作码缓存起来. 6. Apache接收客户端新的PHP程序请求,P

[开源软件] 腾讯云Linux服务器一键安装LAMP/LNMP/LANMP环境 转

本帖最后由 我本戏子 于 2015-8-13 22:00 编辑 OneinStack是非常优秀的一键PHP/JAVA安装脚本,提供以下环境:lnmp(Linux + Nginx+ MySQL+ PHP)lamp(Linux + Apache+ MySQL+ PHP)lnmpa(Linux + Nginx+ MySQL+ PHP+ Apache):Nginx处理静态,Apache(mod_php)处理动态PHPlnmt(Linux + Nginx+ MySQL+ Tomcat):Nginx处理静态

lamp和lnmp环境的搭建

本次的实验环境是 LAMP环境的搭建 首先安装apache  Apache的编译安装 rz -y(从主机上传软件包) #wget http://mirrors.bit.edu.cn/apache/httpd-2.2.7.tar.gz tar xvf httpd-2.2.27.tar.gz cd httpd-2.2.27 yum install -y zlib zlib-devel ./configure \ --prefix=/application/apache \ #指定软件安装目录 --e