One: Check the installation path:
1, nginx Installation path:
Ps-ef | grep nginx
Press ENTER to appear as a slice:
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
See Installation paths and compilation parameters for Nginx, MySQL, and PHP under Linux