Apache
TOP1: Installing Apache Services
The programs that provide Web services are: Apache, Nginx, IIS
Windows:iis (HTTP, FTP, NMTP, SMTP only available under Win)
Nginx: A lightweight Web services software, due to its stability and rich features, its low system resources, less memory, and strong concurrency
Apache: Fast, reliable, extensible API extensions.
Support for IP-or domain-based virtual hosts
Support for HTTP authentication in multiple ways
Integrated Proxy Server Module
Secure Socket Layer (SSL)
Ability to view service status and custom logs in real time
Support for multiple modules
Tomcat: Lightweight Web services software, typically used to develop and debug JSP code, usually considered tomcat to be an Apache extender
Install Apache Service software:
To configure the local Yum Source:
[Email protected] ~]# cd/etc/Yum. repos.d/[[Email protected]Yum. repos.d]#RM-RF *[[Email protected]Yum. repos.d]#ls[[Email protected]Yum. repos.d]# vim Rhel7.repo [RHEL7] name=Rhel7 BaseURL=file:///Media/cdromenabled=1Gpgcheck=0[[Email protected]Yum. repos.d]#lsRhel7.repo[[email protected]Yum. repos.d]# CD ~[[Email protected]~]#mkdir-p/media/cdrom/[[Email protected]~]#Mount/dev/cdrom/media/cdrom/Mount:/dev/sr0 isWrite-protected, mounting read-Only[[email protected]~]#Yum-y clean all[[email protected]~]#YumMakecache
To install Apache services:
Yum Install httpd
To start the Apache service:
[Email protected] ~]# systemctl start httpd
Set Apache to boot from:
[Email protected] ~grep"httpd" httpd.service enabled
Set firewall rules to allow HTTPD services:
[Email protected] ~]# firewall-cmd--permanent--add-service=~]# firewall-cmd--Reload success
Results:
linux[Basic]-29-[apache Service]-[install Apache service]-[01]