网站推广优化张店,买网站注册人数,网页微信二维码不能直接识别,合肥网站开发公司电话大家是否遇到过去了新公司#xff0c;公司内的LAMP#xff0c;LNMP等所有的环境都是配置好的#xff08;已经在提供服务了#xff09;#xff0c;公司又没有留下部署文档#xff0c;甚至安装LAMP#xff0c;LAMP等环境的人已经和你交接完离职了#xff0c;那么线上服务… 大家是否遇到过去了新公司公司内的LAMPLNMP等所有的环境都是配置好的已经在提供服务了公司又没有留下部署文档甚至安装LAMPLAMP等环境的人已经和你交接完离职了那么线上服务器lamp,lnmp的编译环境等就成了黑盒如果不改造还好当服务器需要迁移改造时我们新手的你没有老的环境编译情况就会很郁闷生怕编译错了影响线上程序运行。其实很多时候是可以看到软件的编译的情况的下面老男孩就以lamp,lnmp环境为例为大家一一道来。1查看web服务的编译参数 a.查看nginx的编译参数 /home/linuxidc/run/nginx/sbin/nginx -V 范例1[rootVM-001 ~]# /home/linuxidc/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/nginx 提示/home/linuxidc/run/为普通用户起的nginx服务命令路径 b.查看apache的编译参数 cat /home/linuxidc/run/apache/build/config.nice 范例2[rootVM-002 ~]# cat /home/linuxidc/run/apache/build/config.nice #! /bin/sh # # Created by configure ./configure \ --prefix/app/apache2.2.9 \ --enable-deflate \ --enable-headers \ --enable-modulesso \ --enable-so \ --with-mpmworker \ --enable-rewrite \ --enable-cgi \ $ 提示/home/linuxidc/run/为普通用户起的apache服务命令路径2)查看MySQL数据库的编译参数grep CONFIGURE_LINE /app/mysql/bin/mysqlbug 提示还发现很多人先cat在grep很不专业应杜绝。 范例3[rootVM-001~]# grep CONFIGURE_LINE /app/mysql/bin/mysqlbug CONFIGURE_LINE./configure --prefix/app/mysql/ --enable-assembler --with-extra-charsetscomplex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-pluginspartition,innobase --with-plugin-PLUGIN test -n $CONFIGURE_LINE echo Configure command: $CONFIGURE_LINE 提示/app为mysql服务安装路径3查看php编译参数/app/php/bin/php -i|grep configure 范例4[rootVM-001 ~]# /app/php/bin/php -i|grep configure Configure Command ./configure --prefix/app/php --with-apxs2/app/apache/bin/apxs --with-mysqlshared,/app/mysql --with-ttfshared --with-freetype-dir --with-gd --with-zlib --with-jpeg-dir --with-png-dir --with-iconv/app/libiconv --enable-short-tags --enable-sockets --enable-zend-multibyte --enable-soap --with-openssl --enable-mbstring --enable-static --enable-gd-native-ttf --with-curl --with-xsl --enable-ftp --with-libxml-dir 提示/app为php服务安装路径 转载于:https://blog.51cto.com/zzxtbl/1619772