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