See Installation paths and compilation parameters for Nginx, MySQL, and PHP under Linux

Source: Internet
Author: User

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

    1. 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

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.