centos8 安装http版局域网yum源
centos8 安装http版局域网yum源安装http:
dnf install -y httpd
配置http.conf文件:
修改httpd守护进程用户:
User nobody
Group nobody
<Directory "/var/www/html">
AllowOverride ALL
Require all granted
< /Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
< /Directory>
<IfModule dir_module>
DirectoryIndex index.html index.cgi index.php
< /IfModule>
配置hosts域名解析:
关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
启动/重启httpd.service服务
systemctl start httpd.service
systemctl restart httpd.service
访问:http://IP/centos
前提是修改好所有的源目录。
页:
[1]