Centos7 Apache provides file download

Source: Internet
Author: User

1 Apache Installation

# yum -yinstall httpd // 安装httpd会自动安装以下的依赖包: apr apr-util httpd-tools mailcap # rpm -qi httpd

2 Set boot up

// 设置为自动启动 # systemctl enable httpd.service 3 Modifying a configuration fileProfile Address is:/etc/httpd/conf/httpd.conf Modify profile Listen 80 for native address # vim/etc/httpd/conf/httpd.conf example: 192.168.0.130:80// 80 is the default access port 4 Specify the directory address to provide the downloadThe address shown by the Apache service Defaults to/var/www/html We enter this address # cd/var/www/html create file directory soft link input ln-s file directory address example: # Ln-s/home/downloads Downloads Var/www/html directory to create a new folder downloads, and link to/home/downloads directory to access this file directory to download the browser input http://192.168.0.130/downloads can see/home All files and folders under The/downloads directory

Centos7 Apache provides file download

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.