当前位置:首页 > 计算机科学 > 网络技术 > 正文内容

如何查看已经安装的nginx、apache、mysql和php的编译参数

fanglong2020-08-11网络技术1392

1、nginx编译参数:

$ nginx -V

#注意:需保证nginx在环境变量中,或者使用绝对路径的形式:your_nginx_dir/sbin/nginx -V

2、apache编译参数

$ cat your_apache_dir/build/config.nice

3、php编译参数:

$ php -i |grep configure

ps /usr/local/php{your_php_dir}/bin/php -v 只能查看版本信息.

#或者 your_php_dir/bin/php -i |grep configure  

#或者使用phpinfo函数输出,在第三行Configure Command查看

4、mysql编译参数:

$ cat your_mysql_dir/bin/mysqlbug |grep configure


lnmp默认为  /usr/local/softwarename


扫描二维码推送至手机访问。

版权声明:本文由人从众的博客发布,如需转载请注明出处。

本文链接:http://loulin.bid/20.html

分享给朋友:

相关文章

Nginx+PHP-FPM运行机制

CGIcommon gateway interface (公共网关接口) 请求模式:     Web Browe...

nginx报错[warn] the “ssl” directive is deprecated的解决办法

最近在复制旧机器上的nginx.conf配置文件到新机器上的时候,重启后出现这么一个报错.nginx: [warn] the “ssl” directive is deprecated, use th...

php 编译安装插件提示PHP Warning: PHP Startup: Unable to load dynamic library 报错

又或如: cannot open shared object file: No such file or directory in Unknown on line 0 PHP message...

把你的网站搬回家吧!(第一版2015年)

适用于上网有公网IP分配的人,移动可以申请光纤,电信,联通一般只封掉80和8080.所以443大有可为!免费申请SSL证书地址:1.StartSSL(https://www.startssl.com/...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。