Default RPM installation path in CentOS

Source: Internet
Author: User
For RPM packages, the data files in/usr/bin or/usr/sbin/usr/lib are named under/usr/share: rpm-pql [rpm file name] to check which files are contained in an rpm package, that is, the installation path. if it is installed from the source code, you can select the installation path: Use this command to check the parameters. /con for RPM packages
Generally
Put the command in/usr/bin or/usr/sbin.
The library is under/usr/lib
The data file is under/usr/share /.

Name:
Rpm-pql [rpm file name] to view the files in an rpm package, that is, the installation path.


If you are installing from the source code, you can select the installation path:
Use this message to View parameters
./Configure -- help
./Configure -- prefix =/opt/fcitx

 

In addition:

MySQL installed in the rpm package will not install the/etc/my. cnf file,
As to why MySQL can be started and used normally without this file, there are two points,
The first statement is that my. cnf is only a parameter file during MySQL startup, but it does not exist. in this case, MySQL will start with the built-in default parameter,
Second, MySQL automatically uses the my-medium.cnf file under the/usr/share/mysql directory at startup, which is limited to MySQL installed in rpm packages,
Solution: Copy the. cnf file under the/usr/share/mysql directory to the/etc directory and change it to my. cnf.

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.