linux[Basic]-29-[apache Service]-[install Apache service]-[01]

Source: Internet
Author: User
Tags http authentication

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]

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.