One: Check the installation path:
1, nginx installation path :
Ps-ef | grep nginx
Press ENTER to appear as a slice:
650) this.width=650; "src=" Http://hi.csdn.net/attachment/201107/6/0_13099311747NbI.gif "style=" border:none; "/>
After the master process is the Nginx directory.
2.mysql installation path :
Ps-ef|grep MySQL to produce results
Root 17659 1 0 2011? 00:00:00/bin/sh/usr/bin/mysqld_safe--datadir=/var/lib/mysql--socket=/var/lib/mysql/mysql.sock--log-error=/var/ Log/mysqld.log--pid-file=/var/run/mysqld/mysqld.pid
MySQL 17719 17659 0 2011? 03:14:57/usr/libexec/mysqld--basedir=/usr--datadir=/var/lib/mysql--user=mysql--pid-file=/var/run/mysqld/ Mysqld.pid--skip-external-locking--socket=/var/lib/mysql/mysql.sock
Usr/bin/mysql refers to: The running path of MySQL
Var/lib/mysql refers to: The storage path of MySQL database files
Usr/lib/mysql refers to: MySQL installation path
3, php Installation path:
#whereis PHP
#which PHP
#php-V View version number
Difference oneself to realize
Two: View compilation parameters:
1,nginx compilation parameters:
your_nginx_dir/sbin/nginx-v
2,Apache compilation parameters:
cat your_apache_dir/build/config.nice
3,php compilation parameters:
your_php_dir/bin/php-i |grep Configure
4.mysql compilation parameters:
Cat Your_mysql_dir/bin/mysqlbug |grep Configure
This article from "Yun Vil Szeng" blog, reproduced please contact the author!
See Installation paths and compilation parameters for Nginx, MySQL, and PHP under Linux