Yum Installation Software

Source: Internet
Author: User
Yum Installation Software-Linux Enterprise Application-Linux server application information. The following is a detailed description. [I = s] This post was last edited by shuming at, January 1 ,.

Install apache Software with yum:
Yum-y install httpd
After the installation is complete, you can view the yum software installation process and installation path.

First, understand YUM: Based on RPM package management, you can download and automatically install RPM packages from a specified server, process dependencies automatically, and install all dependent packages at a time.
This avoids the trouble of manual installation (find resources and download; put them in the specified directory for installation; process dependencies and download dependency packages for installation)
Therefore, the yum installation is essentially based on RPM installation, so instructions on RPM query information are available.

1. After installing apache, use RPM to query all installation-related paths and files:
[Root @ localhost www] # rpm-ql httpd ---------------> query all directories and files installed with httpd, list many file directories, and separate all directories for explanation
(1) Put the configuration file under/etc/httpd -----------> root directory of the configuration file
/Etc/httpd/conf
/Etc/httpd/conf. d/etc/httpd/conf. d/README/etc/httpd/conf. d/proxy_ajp.conf
/Etc/httpd/conf. d/welcome. conf/etc/httpd/conf/httpd. conf
/Etc/httpd/conf/magic/etc/httpd/logs/etc/httpd/modules/etc/httpd/run
/Etc/logrotate. d/httpd
/Etc/rc. d/init. d/httpd
/Etc/sysconfig/httpd -------------> comment out the basic configuration information of httpd)
(2). All httpd installation programs are installed in the/usr directory, and different parts are installed in different directories.
(1). Basic USER commands used by httpd are stored in/usr/bin.
/Usr/bin/AB/usr/bin/htdbm/usr/bin/htdigest/usr/bin/htpasswd/usr/bin/logresolve
(2) modules and integrated function libraries to be called by the httpd program are stored in the/usr/lib directory.
/Usr/lib/httpd ------------> httpd calls the root directory of the function library and integration module
/Usr/lib/httpd/modules
/Usr/lib/httpd/modules/mod_actions.so
/Usr/lib/httpd/modules/mod_alias.so
...............................
/Usr/lib/httpd/modules/mod_vhost_alias.so
(3) All the system commands required by httpd are stored in the/usr/sbin/directory.
/Usr/sbin/apachectl/usr/sbin/htcacheclean/usr/sbin/httpd. event
/Usr/sbin/httpd. worker/usr/sbin/httxt2dbm/usr/sbin/rotatelogs/usr/sbin/suexec
(4) Some shared files required by httpd are installed under the/usr/share directory.
/Usr/share/doc/httpd-2.2.3/usr/share/doc/httpd-2.2.3/ABOUT_APACHE
....................
/Usr/share/man/man8/suexec.8.gz
(5). The data to be changed during the running of the program is installed under the/var directory and installed under different directories according to different content.
/Var/cache/mod_proxy ------------> cache
/Var/lib/dav
/Var/log/httpd ------------> log
(6) As a web server, apache requires a directory for publishing web pages./var/www is a directory for storing web pages.
---> The default directory DocumentRoot =/var/www/html in httpd. conf
/Var/www -----------------> web server root directory
/Var/www/cgi-bin
/Var/www/error -----------> file for processing errors on the web Server
.............................
/Var/www/error/noindex.html
/Var/www/html ---------------> root directory of the static network of the web Server
/Var/www/icons ---------------> default images required by web servers (apache and tomcat)
/Var/www/icons/README
......................................
/Var/www/icons/world2.png

2. Use rpm-qa httpd to query all the installation packages containing the httpdd string in the installation package, and then use this package to uninstall, update, and delete it.
[Root @ localhost www] # rpm-qa httpd
Httpd-2.2.3-45.el5.centos.1
3. Use rpm-q httpd to query the full name of the installation package for httpd program installation:
[Root @ localhost www] # rpm-q httpd
Httpd-2.2.3-45.el5.centos.1
4. find the path of the installation package in the root directory with the find/-name httpd-2.2.3-45.el5.centos.1.

==========================================================
I am a cainiao. I understand the above content. If not, please kindly advise. Thank you.
==========================================================
Related Article

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.