Default RPM installation path in Linux
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.